Skip to main content

CredentialStore

Trait CredentialStore 

Source
pub trait CredentialStore: Send + Sync {
    // Required method
    fn resolve(&self, id: &str) -> Option<Secret>;
}
Expand description

Resolves credential ids to secrets. A trait so the in-memory store here can later be swapped for a GitHub App token minter, a KMS-backed vault, etc., with no change to the data plane.

Required Methods§

Source

fn resolve(&self, id: &str) -> Option<Secret>

The real secret for id, or None if no such credential is configured.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§