Rego security audit
rego_security_auditAudit Rego policy directories in bulk by running Regal bug and custom security rules, then report high/medium findings with remediation guidance and rule links.
Instructions
Run regal lint restricted to its bugs category plus any custom rules placed in a security category, across one or more policy directories, and return the findings grouped by severity (high/medium) with remediation guidance and a link to each rule. Use it for a periodic fleet-wide sweep rather than per-file style review. Modules that do not parse are listed in unparseable and the rest are audited. These are lint findings: a policy with none can still let a request through, so probe it with rego_eval inputs (absent, null and wrong-typed fields) for that. 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. |