pub struct AuditExecContext {Show 20 fields
pub contract_name: Option<String>,
pub target: Option<String>,
pub authority_profile: Option<String>,
pub authority_namespace: Option<String>,
pub trust_level: Option<AuthorityTrustLevel>,
pub access_profile: Option<RbacProfile>,
pub inherit: Option<AuthorityInheritMode>,
pub deny_dangerous_env: Option<bool>,
pub redact_output: Option<bool>,
pub network: Option<AuthorityNetworkPolicy>,
pub allowed_secrets: Vec<String>,
pub required_secrets: Vec<String>,
pub injected_secrets: Vec<String>,
pub missing_required_secrets: Vec<String>,
pub dropped_env_names: Vec<String>,
pub env_mappings: Vec<AuditEnvMapping>,
pub target_allowed: Option<bool>,
pub target_decision: Option<AuthorityTargetDecision>,
pub matched_target: Option<String>,
pub deny_reason: Option<DenyReason>,
}Expand description
Execution-specific audit context for tsafe exec-style operations.
Fields§
§contract_name: Option<String>§target: Option<String>§trust_level: Option<AuthorityTrustLevel>§access_profile: Option<RbacProfile>§inherit: Option<AuthorityInheritMode>§deny_dangerous_env: Option<bool>§redact_output: Option<bool>§network: Option<AuthorityNetworkPolicy>§allowed_secrets: Vec<String>§required_secrets: Vec<String>§injected_secrets: Vec<String>§missing_required_secrets: Vec<String>§dropped_env_names: Vec<String>§env_mappings: Vec<AuditEnvMapping>Records each --env ENV_VAR=VAULT_KEY mapping so the audit trail shows
which vault key was sourced for each renamed env var injection.
target_allowed: Option<bool>§target_decision: Option<AuthorityTargetDecision>§matched_target: Option<String>§deny_reason: Option<DenyReason>Implementations§
Source§impl AuditExecContext
impl AuditExecContext
Sourcepub fn from_contract(contract: &AuthorityContract) -> Self
pub fn from_contract(contract: &AuthorityContract) -> Self
Seed an exec context from an authority contract without committing to a concrete target or the final injected/dropped sets yet.
pub fn with_target(self, target: impl Into<String>) -> Self
pub fn with_injected_secrets<I, S>(self, names: I) -> Self
pub fn with_missing_required_secrets<I, S>(self, names: I) -> Self
pub fn with_dropped_env_names<I, S>(self, names: I) -> Self
pub fn with_target_allowed(self, allowed: bool) -> Self
pub fn with_target_evaluation( self, evaluation: &AuthorityTargetEvaluation, ) -> Self
Trait Implementations§
Source§impl Clone for AuditExecContext
impl Clone for AuditExecContext
Source§fn clone(&self) -> AuditExecContext
fn clone(&self) -> AuditExecContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuditExecContext
impl Debug for AuditExecContext
Source§impl Default for AuditExecContext
impl Default for AuditExecContext
Source§fn default() -> AuditExecContext
fn default() -> AuditExecContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuditExecContext
impl<'de> Deserialize<'de> for AuditExecContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AuditExecContext
impl PartialEq for AuditExecContext
Source§fn eq(&self, other: &AuditExecContext) -> bool
fn eq(&self, other: &AuditExecContext) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AuditExecContext
impl Serialize for AuditExecContext
impl Eq for AuditExecContext
impl StructuralPartialEq for AuditExecContext
Auto Trait Implementations§
impl Freeze for AuditExecContext
impl RefUnwindSafe for AuditExecContext
impl Send for AuditExecContext
impl Sync for AuditExecContext
impl Unpin for AuditExecContext
impl UnsafeUnpin for AuditExecContext
impl UnwindSafe for AuditExecContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.