pub struct SecretsConfig {
pub secrets: Vec<SecretEntry>,
pub violation_action: SecretViolationAction,
/* private fields */
}Expand description
Placeholder-based secret substitution for a sandbox’s TLS-intercepted egress.
The sandbox only ever sees each secret’s placeholder; the local network
engine substitutes the real value into outbound requests bound for an
allowed host (and blocks/forwards per SecretViolationAction otherwise). Carried
in NetworkSpec::secrets.
When constructing directly, use ..Default::default() for unspecified fields.
The global passthrough_hosts field preserves historical defaults; its addition
requires updating older exhaustive struct literals and patterns.
Fields§
§secrets: Vec<SecretEntry>List of secrets to inject.
violation_action: SecretViolationActionDefault action when a placeholder leaks to a disallowed host.
Implementations§
Source§impl SecretsConfig
impl SecretsConfig
Sourcepub fn has_tls_identity_secrets(&self) -> bool
pub fn has_tls_identity_secrets(&self) -> bool
Whether any configured secret requires verified TLS identity.
Sourcepub fn contains_env_var(&self, env_var: &str) -> bool
pub fn contains_env_var(&self, env_var: &str) -> bool
Whether a secret is configured for the given environment variable.
Sourcepub fn validate(&self) -> Result<(), SecretConfigError>
pub fn validate(&self) -> Result<(), SecretConfigError>
Validate all configured secret entries.