Rego security audit
rego_security_auditDetect Rego policy bypass risks by running Regal's bugs rules and custom security checks across your policy fleet, with findings grouped by severity and remediation guidance.
Instructions
Run regal lint restricted to its bugs category, the correctness rules whose defects most often turn into policy bypasses, plus any custom rules placed in a security category, across one or more policy directories. Returns findings grouped by severity (high/medium) with remediation guidance. Use this for a periodic fleet-wide sweep rather than per-file style review. Requires regal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | Policy directories or files to audit. Each must be inside an allowed root (OPA_MCP_ALLOWED_PATHS). Pass the root of your policy fleet to scan everything at once. | |
| configFile | No | Path to a Regal config file. Useful when your repo has custom rule configuration. | |
| ignoreFiles | No | Glob patterns to exclude from the audit. |