pub struct ProxyConfig {Show 14 fields
pub upstream: UpstreamConfig,
pub descriptors: Vec<DescriptorSource>,
pub listen: ListenConfig,
pub service: ServiceConfig,
pub aliases: Vec<AliasConfig>,
pub openapi: Option<OpenApiConfig>,
pub auth: Option<AuthConfig>,
pub shield: Option<ShieldConfig>,
pub oidc_discovery: Option<OidcDiscoveryConfig>,
pub maintenance: MaintenanceConfig,
pub cors: CorsConfig,
pub logging: LoggingConfig,
pub metrics_classes: Vec<MetricsClassConfig>,
pub forwarded_headers: Vec<String>,
}Expand description
Top-level proxy configuration (loaded from YAML).
Fields§
§upstream: UpstreamConfigUpstream gRPC service(s).
descriptors: Vec<DescriptorSource>Proto descriptor sources.
listen: ListenConfigListen addresses.
service: ServiceConfigService identity (for health endpoint, metrics namespace).
aliases: Vec<AliasConfig>Path aliases (e.g., /oauth2/* → /v1/oauth2/*).
openapi: Option<OpenApiConfig>OpenAPI generation.
auth: Option<AuthConfig>Auth configuration (JWT, forward auth, AuthZ).
shield: Option<ShieldConfig>Rate limiting (Shield).
oidc_discovery: Option<OidcDiscoveryConfig>OIDC discovery (optional — for IdP proxies).
maintenance: MaintenanceConfigMaintenance mode.
cors: CorsConfigCORS configuration.
logging: LoggingConfigLogging.
metrics_classes: Vec<MetricsClassConfig>Metrics endpoint classification (path patterns → class labels).
forwarded_headers: Vec<String>Headers to forward from HTTP to gRPC metadata.
Implementations§
Trait Implementations§
Source§impl Clone for ProxyConfig
impl Clone for ProxyConfig
Source§fn clone(&self) -> ProxyConfig
fn clone(&self) -> ProxyConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProxyConfig
impl Debug for ProxyConfig
Source§impl<'de> Deserialize<'de> for ProxyConfig
impl<'de> Deserialize<'de> for ProxyConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProxyConfig
impl RefUnwindSafe for ProxyConfig
impl Send for ProxyConfig
impl Sync for ProxyConfig
impl Unpin for ProxyConfig
impl UnsafeUnpin for ProxyConfig
impl UnwindSafe for ProxyConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request