pub struct PermissionsConfig {Show 13 fields
pub auto_permission: AutoPermissionConfig,
pub allow: Vec<String>,
pub ask: Vec<String>,
pub deny: Vec<String>,
pub enabled: bool,
pub resolve_commands: bool,
pub audit_enabled: bool,
pub audit_directory: String,
pub log_allowed_commands: bool,
pub log_denied_commands: bool,
pub log_permission_prompts: bool,
pub cache_enabled: bool,
pub cache_ttl_seconds: u64,
}Expand description
Permission system configuration - Controls command resolution, audit logging, and caching
Fields§
§auto_permission: AutoPermissionConfigClassifier-backed auto permission review policy and environment settings.
allow: Vec<String>Rules that allow matching tool calls without prompting.
ask: Vec<String>Rules that require an interactive prompt when they match.
deny: Vec<String>Rules that deny matching tool calls.
enabled: boolEnable the enhanced permission system (resolver + audit logger + cache)
resolve_commands: boolEnable command resolution to actual paths (helps identify suspicious commands)
audit_enabled: boolEnable audit logging of all permission decisions
audit_directory: StringDirectory for audit logs (created if not exists)
Defaults to the VT Code state directory’s audit subdirectory.
log_allowed_commands: boolLog allowed commands to audit trail
log_denied_commands: boolLog denied commands to audit trail
log_permission_prompts: boolLog permission prompts (when user is asked for confirmation)
cache_enabled: boolEnable permission decision caching to avoid redundant evaluations
cache_ttl_seconds: u64Cache time-to-live in seconds (how long to cache decisions) Default: 300 seconds (5 minutes)
Trait Implementations§
Source§impl Clone for PermissionsConfig
impl Clone for PermissionsConfig
Source§impl Debug for PermissionsConfig
impl Debug for PermissionsConfig
Source§impl Default for PermissionsConfig
impl Default for PermissionsConfig
Source§impl<'de> Deserialize<'de> for PermissionsConfig
impl<'de> Deserialize<'de> for PermissionsConfig
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>,
Source§impl JsonSchema for PermissionsConfig
impl JsonSchema for PermissionsConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more