pub struct ProtectConfig {
pub upstream: String,
pub spec_content: Option<String>,
pub spec_path: Option<String>,
pub listen_addr: String,
pub receipt_db: Option<String>,
pub sidecar_control_token: Option<String>,
pub signer_seed_hex: Option<String>,
pub trusted_capability_issuers: Vec<PublicKey>,
}Expand description
Configuration for the protect proxy.
Fields§
§upstream: StringUpstream URL to proxy to.
spec_content: Option<String>Optional in-memory OpenAPI spec content (YAML or JSON).
spec_path: Option<String>Optional OpenAPI spec path. When omitted, the proxy auto-discovers the spec.
listen_addr: StringAddress to listen on (e.g., “127.0.0.1:9090”).
receipt_db: Option<String>Optional SQLite path for receipt persistence.
sidecar_control_token: Option<String>Optional bearer token that authorizes remote sidecar control requests.
signer_seed_hex: Option<String>Optional seed used to keep the sidecar signer stable across restarts.
trusted_capability_issuers: Vec<PublicKey>Explicit capability issuers trusted by the HTTP authority.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProtectConfig
impl RefUnwindSafe for ProtectConfig
impl Send for ProtectConfig
impl Sync for ProtectConfig
impl Unpin for ProtectConfig
impl UnsafeUnpin for ProtectConfig
impl UnwindSafe for ProtectConfig
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