Rego security audit
rego_security_auditAudit OPA policy directories for security and bug risks using regal. Returns findings grouped by severity (high/medium) with remediation guidance. Designed for periodic fleet-wide sweeps.
Instructions
Run regal lint restricted to the security and bugs categories across one or more policy directories. Returns findings grouped by severity (high/medium) with remediation guidance. Use this for a periodic fleet-wide security 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. |