pub struct SecurityConfig {
pub level: SecurityLevel,
pub secret_scan: Option<SecretScanMode>,
pub extra_forbidden_tools: Vec<String>,
}Expand description
Security level profile configuration (v0.15.14.4).
Sets a named preset of security defaults. Individual settings always override
the level preset. See ta_goal::SecurityProfile::from_level for the full
default table per level.
[security]
level = "mid" # "low" (default) | "mid" | "high"
# Override individual controls beyond the level preset:
# [security.secrets]
# scan = "off" # "off" | "warn" | "block"
# [security.forbidden_tools]
# extra = ["Bash(*aws*)", "Bash(*gcloud*)"]Fields§
§level: SecurityLevelSecurity level preset.
"low"(default): Frictionless solo-developer mode."mid": Sensible team defaults (sandbox on, forbidden patterns, hash chain)."high": High-assurance regulated mode (approval gate, HMAC chain, no WebSearch).
secret_scan: Option<SecretScanMode>Secret scanning mode override (individual override for [security.secrets] scan).
extra_forbidden_tools: Vec<String>Extra forbidden tool patterns added on top of the level preset.
Implementations§
Source§impl SecurityConfig
impl SecurityConfig
Sourcepub fn to_overrides(&self) -> SecurityOverrides
pub fn to_overrides(&self) -> SecurityOverrides
Convert to SecurityOverrides for use with SecurityProfile::from_level.
Trait Implementations§
Source§impl Clone for SecurityConfig
impl Clone for SecurityConfig
Source§fn clone(&self) -> SecurityConfig
fn clone(&self) -> SecurityConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 SecurityConfig
impl Debug for SecurityConfig
Source§impl Default for SecurityConfig
impl Default for SecurityConfig
Source§fn default() -> SecurityConfig
fn default() -> SecurityConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SecurityConfig
impl<'de> Deserialize<'de> for SecurityConfig
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
Auto Trait Implementations§
impl Freeze for SecurityConfig
impl RefUnwindSafe for SecurityConfig
impl Send for SecurityConfig
impl Sync for SecurityConfig
impl Unpin for SecurityConfig
impl UnsafeUnpin for SecurityConfig
impl UnwindSafe for SecurityConfig
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