pub struct SecurityPolicyV1 {Show 16 fields
pub excluded_paths: Option<Vec<String>>,
pub block_secrets: Option<bool>,
pub pii: Option<PolicyActionV1>,
pub classification: Option<PolicyActionV1>,
pub blocked_labels: Option<Vec<String>>,
pub allowed_models: Option<Vec<Vec<String>>>,
pub external_model_excluded_classes: Option<Vec<String>>,
pub confidential_out_of_sharing: Option<bool>,
pub blocked_model_origins: Option<Vec<String>>,
pub blocked_host_countries: Option<Vec<String>>,
pub vendor_direct_cn: Option<bool>,
pub allowed_providers: Option<Vec<String>>,
pub require_proxy: Option<bool>,
pub readable_roots: Option<Vec<String>>,
pub never_send: Option<Vec<String>>,
pub other: BTreeMap<String, Value>,
}Expand description
security of an effective policy. Absent member = no level sets it.
Fields§
§excluded_paths: Option<Vec<String>>§block_secrets: Option<bool>§pii: Option<PolicyActionV1>§classification: Option<PolicyActionV1>§blocked_labels: Option<Vec<String>>§allowed_models: Option<Vec<Vec<String>>>§external_model_excluded_classes: Option<Vec<String>>§confidential_out_of_sharing: Option<bool>§blocked_model_origins: Option<Vec<String>>Countries of origin whose model weights are never used (catalog
origin_country), whatever the host.
blocked_host_countries: Option<Vec<String>>Countries where no model request is processed (catalog
host_country, vendors’ own APIs included).
vendor_direct_cn: Option<bool>false forbids the local opt-in to a vendor’s own API processed in
CN (x-merge: false_wins).
allowed_providers: Option<Vec<String>>ent2: upstream providers the proxy may forward to (anthropic,
openai, bedrock, local, …); x-merge: intersect.
require_proxy: Option<bool>ent2: agent model traffic must go through the LeanCTX proxy;
x-merge: or.
readable_roots: Option<Vec<String>>ent2: path globs ({project} and ~ allowed) LeanCTX tools and
hooked native reads may read; x-merge: intersect.
never_send: Option<Vec<String>>ent2: gitignore globs whose content is never read into context nor
sent to a model or Cloud; x-merge: union.
other: BTreeMap<String, Value>Members this crate does not know (reported as unenforced).