Skip to content

authority_credentials

Structs

Enums


firma_sidecar::authority_credentials::RedactedPreSharedKey

Section titled “firma_sidecar::authority_credentials::RedactedPreSharedKey”

Struct

Pre-shared key wrapper with redacted debug output.

Tuple Struct: ()

Traits: Eq

Trait Implementations:

  • Clone
    • fn clone(self: &Self) -> RedactedPreSharedKey
  • PartialEq
    • fn eq(self: &Self, other: &RedactedPreSharedKey) -> bool
  • Debug
    • fn fmt(self: &Self, formatter: & mut fmt::Formatter) -> fmt::Result

firma_sidecar::authority_credentials::ResolvedSidecarCredentials

Section titled “firma_sidecar::authority_credentials::ResolvedSidecarCredentials”

Struct

Resolved Sidecar credentials ready to attach to Authority requests.

Methods:

  • fn to_proto(self: &Self) -> SidecarCredentials - Convert to the generated protobuf message.

Traits: Eq

Trait Implementations:

  • Clone
    • fn clone(self: &Self) -> ResolvedSidecarCredentials
  • PartialEq
    • fn eq(self: &Self, other: &ResolvedSidecarCredentials) -> bool
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result

firma_sidecar::authority_credentials::SidecarCredentialSource

Section titled “firma_sidecar::authority_credentials::SidecarCredentialSource”

Enum

Resolved credential source, kept for startup logging.

Variants:

  • Env(String) - PSK was read from an environment variable.
  • File(std::path::PathBuf) - PSK was read from a file.

Traits: Eq

Trait Implementations:

  • Clone
    • fn clone(self: &Self) -> SidecarCredentialSource
  • PartialEq
    • fn eq(self: &Self, other: &SidecarCredentialSource) -> bool
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result

firma_sidecar::authority_credentials::SidecarCredentialsConfig

Section titled “firma_sidecar::authority_credentials::SidecarCredentialsConfig”

Struct

Validated source for Sidecar pre-shared-key credentials.

Fields:

  • workspace_id: String - Workspace the Sidecar belongs to.
  • sidecar_id: String - Authority-assigned Sidecar identity.
  • pre_shared_key_env: Option<String> - Environment variable containing the pre-shared key.
  • pre_shared_key_path: Option<std::path::PathBuf> - File containing the pre-shared key.

Methods:

  • fn rebase_defaults(self: & mut Self, config_dir: &Path) - Re-base a relative PSK file path against the config directory.
  • fn resolve(self: &Self) -> Result<ResolvedSidecarCredentials, String> - Resolve the configured PSK source into in-memory credentials.

Traits: Eq

Trait Implementations:

  • Clone
    • fn clone(self: &Self) -> SidecarCredentialsConfig
  • PartialEq
    • fn eq(self: &Self, other: &SidecarCredentialsConfig) -> bool
  • TryFrom
    • fn try_from(schema: SchemaSidecarCredentials) -> Result<Self, <Self as >::Error>
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result

firma_sidecar::authority_credentials::SidecarCredentialsConfigError

Section titled “firma_sidecar::authority_credentials::SidecarCredentialsConfigError”

Enum

Error validating a [SidecarCredentialsConfig].

Variants:

  • EmptyWorkspaceId - workspace_id was empty.
  • EmptySidecarId - sidecar_id was empty.
  • MissingPreSharedKeySource - Neither PSK source was set.
  • MultiplePreSharedKeySources - Both PSK sources were set.

Traits: Error, Eq

Trait Implementations:

  • Clone
    • fn clone(self: &Self) -> SidecarCredentialsConfigError
  • PartialEq
    • fn eq(self: &Self, other: &SidecarCredentialsConfigError) -> bool
  • 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