pub struct SecurityConfig {
pub additional_directories: Vec<String>,
pub mcp_server_allowlist: Vec<String>,
pub mcp_server_denylist: Vec<String>,
pub disable_bypass_permissions: bool,
pub env_allowlist: Vec<String>,
pub disable_skill_shell_execution: bool,
}Expand description
Security and enterprise configuration.
Fields§
§additional_directories: Vec<String>Additional directories the agent can access (beyond cwd).
mcp_server_allowlist: Vec<String>MCP server allowlist. If non-empty, only listed servers can connect.
mcp_server_denylist: Vec<String>MCP server denylist. Listed servers are blocked from connecting.
disable_bypass_permissions: boolDisable the –dangerously-skip-permissions flag.
env_allowlist: Vec<String>Restrict which environment variables the agent can read.
disable_skill_shell_execution: boolDisable inline shell execution within skill templates.
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 SecurityConfigwhere
SecurityConfig: Default,
impl<'de> Deserialize<'de> for SecurityConfigwhere
SecurityConfig: Default,
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