pub enum SecretSource {
Env(String),
Stored(String),
}Expand description
Where Ordinary will look for the secret.
Variants§
Env(String)
Name of the host provided environment variable/secret.
Env secrets are available to every tenant for a given
admin server (when running in “multi” mode).
This is useful in scenarios where a provider running the admin server would like to expose convenient integrations with 3rd parties, for which it only wants to maintain a single set of credentials.
Env secrets are also useful when you’re running a standalone
application and do not need a more complicated secrets management
paradigm.
Stored(String)
Name of a stored secret.
Stored secrets are application scoped, and can be set
through an admin server on which the application runs.
Stored secrets live in their own database and are only
accessible to components with permissions.
Trait Implementations§
Source§impl Clone for SecretSource
impl Clone for SecretSource
Source§fn clone(&self) -> SecretSource
fn clone(&self) -> SecretSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more