Skip to main content

Crate chio_api_protect

Crate chio_api_protect 

Source
Expand description

Zero-code reverse proxy that protects HTTP APIs with Chio signed receipts.

chio api protect reads an OpenAPI spec, generates a default Chio policy, and proxies all requests to the upstream API. Every request produces a signed HttpReceipt. Side-effect routes (POST/PUT/PATCH/DELETE) require a capability token; safe routes (GET/HEAD/OPTIONS) pass with audit receipts.

Structs§

EvaluationResult
Evaluated result for a single HTTP request.
ProtectConfig
Configuration for the protect proxy.
ProtectProxy
The protect proxy.
RequestEvaluator
The request evaluator holds the loaded route table and shared HTTP authority.
RouteEntry
Route information extracted from the OpenAPI spec.

Enums§

ProtectError
Errors produced by the protect proxy.

Functions§

discover_spec
Try to discover the OpenAPI spec from the upstream server.
load_spec_from_file
Load an OpenAPI spec from a file path or URL.