pub struct SecretEntry {
pub env_var: String,
pub value: String,
pub placeholder: String,
pub allowed_hosts: Vec<HostPattern>,
pub injection: SecretInjection,
pub on_violation: Option<ViolationAction>,
pub require_tls_identity: bool,
}Expand description
A single secret entry (serializable form passed to the network engine).
Fields§
§env_var: StringEnvironment variable name exposed to the sandbox (holds the placeholder).
Must be non-empty and must not contain = or NUL. microsandbox does
not require shell-identifier syntax because Linux environment entries
only require a NAME=value shape.
value: StringThe actual secret value (never enters the sandbox).
placeholder: StringPlaceholder string the sandbox sees instead of the real value.
Must be non-empty, no longer than 1024 bytes, and must not contain NUL, CR, or LF.
allowed_hosts: Vec<HostPattern>Hosts allowed to receive this secret.
injection: SecretInjectionWhere the secret can be injected.
on_violation: Option<ViolationAction>Action on secret violation for this secret.
require_tls_identity: boolRequire verified TLS identity before substituting (default: true). When true, secret is only substituted if the connection uses TLS interception (not bypass) and the SNI matches an allowed host.
Implementations§
Source§impl SecretEntry
impl SecretEntry
Trait Implementations§
Source§impl Clone for SecretEntry
impl Clone for SecretEntry
Source§fn clone(&self) -> SecretEntry
fn clone(&self) -> SecretEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more