OPA Configuration

Configure OPA enforcement mode, external OPA URL, and upload custom Rego policies.

Overview

The OPA Configuration page is accessible at Settings → OPA Policy Settings (/dashboard/settings/opa). Here you configure how the OPA engine operates and upload custom Rego policies.

OPA Configuration page

Settings

Enforcement Mode

Toggle between enforcement modes:

ModeDescription
EnforceOPA decisions are applied to all tool call requests
ShadowOPA evaluates requests but does not enforce — decisions are logged for analysis

External OPA URL

If you run your own OPA instance, enter its URL here. Leave empty to use ArmorIQ's built-in OPA engine.

Custom Rego Policies

Custom Rego policy upload

Upload your own Rego policy files to extend OPA's decision logic:

  1. Click Upload Rego Policy.
  2. Select a .rego file from your system.
  3. The file uploads and appears in the list of custom policies.

Managing Uploaded Policies

ActionDescription
ViewSee the uploaded Rego file name and upload date
DeleteRemove a custom Rego policy

Saving

Click Save Configuration to apply your changes. The OPA engine picks up the new settings and policies immediately.

Custom Rego policies are evaluated alongside ArmorIQ's built-in policies. Write your Rego rules in the armoriq.authz package to integrate with the existing decision pipeline.

On this page