Expand description
Security Module
Provides a trait-based security interface for A3S Code sessions.
External consumers implement SecurityProvider to plug in their own
security logic (sanitization, taint tracking, injection detection, etc.).
Re-exports§
pub use config::SecurityConfig;pub use default::DefaultSecurityConfig;pub use default::DefaultSecurityProvider;pub use default::SensitivePattern;
Modules§
Structs§
- NoOp
Security Provider - No-op security provider (default when security is disabled)
- Security
Label - Tainted
Value - A label travels with its value until an explicit boundary consumes it. These labels describe provenance; they never grant execution permission.
Enums§
- Redaction
Strategy - Redaction strategy
- Sanitization
State - Whether the configured provider has processed the complete value.
- Sensitivity
Level - Sensitivity level for classified data
- Taint
Label - Taint classification is independent of instruction authority and redaction.
- Trust
Level - Trust provenance assigned by the owning adapter, never inferred from text.
Traits§
- Security
Provider - Trait for pluggable security providers.
Functions§
- sanitize_
agent_ event - Sanitize every data-bearing field of an agent event while preserving the identifiers and discriminants used to correlate the event stream.
- sanitize_
tainted_ json - Process complete JSON string values while retaining keys and protocol shape. Keys are protocol field names, not a channel for arbitrary output text.
- sanitize_
tainted_ text - Apply output sanitization without promoting trust or declassifying taint.
- sanitize_
text - Convenience adapter for text values that enter the egress boundary without an existing wrapper.