Skip to main content

Crate structured_proxy

Crate structured_proxy 

Source
Expand description

Universal gRPC→REST transcoding proxy.

Config-driven: same binary, different YAML = different product proxy. Works with ANY gRPC service via proto descriptors as config.

§Usage

structured-proxy --config sid-proxy.yaml
structured-proxy --config sflow-proxy.yaml

§JWT crypto backend

Exactly one crypto backend feature must be enabled (they are mutually exclusive): rust_crypto (default, pure Rust) or aws_lc_rs (opt-in, constant-time / FIPS-capable, links aws-lc via C FFI). Enabling both or neither is rejected at compile time by the guards below.

Modules§

auth
JWT authentication and route-level authorization.
config
YAML-based proxy configuration.
oidc
OpenID Connect discovery surface.
openapi
OpenAPI 3.0 spec generation from proto descriptors.
shield
Shield: request rate limiting.
transcode
REST→gRPC transcoding layer.

Structs§

ProxyServer
Universal proxy server.
ProxyState
Shared state for all proxy handlers.