Docs/Platform/Security Profiles
Security Profiles
Configure policy rules, RBAC, DLP patterns, and risk thresholds for every project.
A security profile is a named set of policy rules attached to a project. Every API key inherits the policies of its project's active security profile. Profiles are evaluated in real time — changes take effect on the next request.
Built-in profiles
permissiveDLP scanning only. No topic blocking. Suitable for internal tools.
standardDLP + jailbreak detection + common injection patterns. Default for new projects.
strictAll classifiers enabled, conservative thresholds. Recommended for customer-facing products.
Custom profiles
Create a custom profile when the built-in options are too broad or too restrictive. Profiles are defined as JSON or via the dashboard.
{
"name": "healthcare-strict",
"description": "HIPAA-aligned profile for healthcare AI",
"risk_threshold": 0.2, // block if score ≥ 0.2
"dlp": {
"mode": "block", // block | redact | warn
"patterns": ["ssn", "phi", "credit_card", "email"]
},
"classifiers": {
"injection": true,
"jailbreak": true,
"toxicity": true,
"pii": true
},
"topic_blocks": [
"competitor pricing",
"employee compensation"
],
"rbac": {
"require_role": ["analyst", "admin"]
}
}Rule evaluation order
When multiple conditions could apply, the decision engine uses strict precedence:
- RBAC check — if the calling user lacks the required role, block immediately.
- Topic block list — if the prompt matches a blocked topic, block.
- DLP scan — if PII or secrets are found, apply the configured DLP mode.
- Risk score threshold — if the composite risk score exceeds the threshold, block or warn.
- Allow — all checks passed; forward to model.
risk_threshold of 0.7 is intentionally permissive for initial setup. Tighten to 0.3–0.4 for production customer-facing systems. Monitor false positive rates in the Observability dashboard for the first 48 hours after tuning.DLP patterns
GovernanceAI ships with 30+ pre-built regex patterns. You can extend with custom patterns using standard Python regex syntax.
{
"dlp": {
"custom_patterns": [
{
"name": "internal_ticket",
"regex": "TICK-[0-9]{6}",
"action": "warn"
},
{
"name": "employee_id",
"regex": "EMP[0-9]{5}",
"action": "redact"
}
]
}
}