pub enum SecretSource {
Env,
Stored,
}Expand description
Where Ordinary will look for the secret.
Variants§
Env
Name of the host provided environment variable/secret.
Env secrets are available to every tenant for a given
API server (when running in “multi” mode).
This is useful in scenarios where a provider running the API 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
Name of a stored secret.
Stored secrets are application scoped, and can be set
through an API 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
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for SecretSource
impl ComposeSchema for SecretSource
Source§impl Debug for SecretSource
impl Debug for SecretSource
Source§impl<'de> Deserialize<'de> for SecretSource
impl<'de> Deserialize<'de> for SecretSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SecretSource
impl Serialize for SecretSource
Auto Trait Implementations§
impl Freeze for SecretSource
impl RefUnwindSafe for SecretSource
impl Send for SecretSource
impl Sync for SecretSource
impl Unpin for SecretSource
impl UnsafeUnpin for SecretSource
impl UnwindSafe for SecretSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more