Skip to content

client

Modules

Structs

  • GatewayClient - Client for the firma-run secret resolution gateway, bound to one

Enums

Constants

  • GATEWAY_ADDR_ENV - Environment variable the Sidecar reads to locate the firma-run secret

firma_secret_provider::gateway::client::GATEWAY_ADDR_ENV

Section titled “firma_secret_provider::gateway::client::GATEWAY_ADDR_ENV”

Constant: &str

Environment variable the Sidecar reads to locate the firma-run secret gateway (unix:///path or tcp://host:port format).

firma_secret_provider::gateway::client::GatewayClient

Section titled “firma_secret_provider::gateway::client::GatewayClient”

Struct

Client for the firma-run secret resolution gateway, bound to one [ClientEndpoint].

Opens a fresh connection per call rather than pooling, since gateway calls are infrequent relative to request traffic.

Methods:

  • fn new(endpoint: ClientEndpoint, config: GatewayClientConfig) -> Self
  • fn resolve_batch(self: &Self, placeholders: &[SecretPlaceholder], domain: Authority) -> Result<Result<Vec<SecretString>, ResolveError>, GatewayClientError> - Resolve a batch of placeholder tokens to their raw secret bytes via the
  • fn push_secret(self: &Self, placeholder: SecretPlaceholder, value: SecretString, domain: HashSet<Authority>) -> Result<SecretPlaceholder, GatewayClientError> - Push a secret newly extracted from an intercepted HTTP vault response.

Trait Implementations:

  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result

firma_secret_provider::gateway::client::ResolveError

Section titled “firma_secret_provider::gateway::client::ResolveError”

Enum

Variants:

  • Base64(base64::DecodeError)
  • Utf8
  • Gateway(String)

Trait Implementations:

  • Error
    • fn source(self: &Self) -> ::core::option::Option<&dyn ::thiserror::__private18::Error>
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • Display
    • fn fmt(self: &Self, __formatter: & mut ::core::fmt::Formatter) -> ::core::fmt::Result