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.
Trait Implementations§
Source§impl Clone for SecretsConfig
impl Clone for SecretsConfig
Source§fn clone(&self) -> SecretsConfig
fn clone(&self) -> SecretsConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SecretsConfig
impl Debug for SecretsConfig
Source§impl Default for SecretsConfig
impl Default for SecretsConfig
Source§fn default() -> SecretsConfig
fn default() -> SecretsConfig
Source§impl<'de> Deserialize<'de> for SecretsConfig
impl<'de> Deserialize<'de> for SecretsConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SecretsConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SecretsConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<CloudSecretsConfig> for SecretsConfig
impl From<CloudSecretsConfig> for SecretsConfig
Source§fn from(config: CloudSecretsConfig) -> SecretsConfig
fn from(config: CloudSecretsConfig) -> SecretsConfig
Source§impl Serialize for SecretsConfig
impl Serialize for SecretsConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for SecretsConfig
impl RefUnwindSafe for SecretsConfig
impl Send for SecretsConfig
impl Sync for SecretsConfig
impl Unpin for SecretsConfig
impl UnsafeUnpin for SecretsConfig
impl UnwindSafe for SecretsConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more