Skip to main content

SecretSource

Trait SecretSource 

Source
pub trait SecretSource:
    Send
    + Sync
    + 'static {
    // Required method
    fn fetch<'a>(
        &'a self,
        key: &'a str,
    ) -> BoxFuture<'a, Result<SecretVersion, String>>;
}
Expand description

External secret backend — Vault, AWS Secrets Manager, env (dev), …

Object-safe via BoxFuture, same pattern as SessionStore.

Required Methods§

Source

fn fetch<'a>( &'a self, key: &'a str, ) -> BoxFuture<'a, Result<SecretVersion, String>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§