pub struct EnvSecretManager { /* private fields */ }Expand description
A secret manager that reads from environment variables
Implementations§
Source§impl EnvSecretManager
impl EnvSecretManager
Sourcepub fn new() -> Self
👎Deprecated since 1.0.0-alpha7: Use EnvSecretManager::with_prefix("WORKFLOW_SECRET_") instead to avoid exposing all environment variables
pub fn new() -> Self
Use EnvSecretManager::with_prefix("WORKFLOW_SECRET_") instead to avoid exposing all environment variables
Creates a new EnvSecretManager without prefix
Warning: Without a prefix, all environment variables (including sensitive ones
like PATH, HOME, AWS_SECRET_ACCESS_KEY, etc.) will be exposed as $secret
expression variables. Prefer with_prefix in production.
Sourcepub fn with_prefix(prefix: impl Into<String>) -> Self
pub fn with_prefix(prefix: impl Into<String>) -> Self
Creates a new EnvSecretManager with a prefix filter
Trait Implementations§
Source§impl Debug for EnvSecretManager
impl Debug for EnvSecretManager
Source§impl Default for EnvSecretManager
impl Default for EnvSecretManager
Source§fn default() -> EnvSecretManager
fn default() -> EnvSecretManager
Returns the “default value” for a type. Read more
Source§impl SecretManager for EnvSecretManager
impl SecretManager for EnvSecretManager
Auto Trait Implementations§
impl !Freeze for EnvSecretManager
impl RefUnwindSafe for EnvSecretManager
impl Send for EnvSecretManager
impl Sync for EnvSecretManager
impl Unpin for EnvSecretManager
impl UnsafeUnpin for EnvSecretManager
impl UnwindSafe for EnvSecretManager
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