SecretInjectable

Trait SecretInjectable 

Source
pub trait SecretInjectable {
    // Required methods
    fn inject_secret(&mut self, key: &str, value: String) -> Result<()>;
    fn validate_secrets(&self) -> Result<()>;
}
Expand description

trait for types that support automatic secret injection

configuration types can implement this trait to enable automatic secret injection from workspace secret files

Required Methods§

Source

fn inject_secret(&mut self, key: &str, value: String) -> Result<()>

inject a secret value for the given key

§Errors

returns error if the key is not recognized or injection fails

Source

fn validate_secrets(&self) -> Result<()>

validate all injected secrets meet security requirements

§Errors

returns error if any secret fails validation

Implementors§