pub trait SecretsResolver {
// Required method
fn resolve_all(
&self,
specs: &[SecretSpec],
) -> Result<Vec<ResolvedSecret>, SecretsError>;
}Expand description
Strategy for fetching secret values.
Implementations must be deterministic for a given input (the dispatcher resolves all secrets up-front and fails closed on the first error). They must not log resolved values — only references.
Required Methods§
Sourcefn resolve_all(
&self,
specs: &[SecretSpec],
) -> Result<Vec<ResolvedSecret>, SecretsError>
fn resolve_all( &self, specs: &[SecretSpec], ) -> Result<Vec<ResolvedSecret>, SecretsError>
Resolve every secret in specs. On any failure, return immediately
— the dispatcher discards everything and aborts before spawning.