Technology · Agentic → IAM · Open Source · wiki:deep

Open Policy Agent

Open Policy Agent (OPA) is a CNCF-graduated, general-purpose policy engine for unified, context-aware policy enforcement across the stack. You author policies in Rego; services query OPA when they need decisions (API authz, admission control, infra tags, …) instead of hardcoding rules. Integrate via Go SDK/API, REST, WASM, and ecosystem adapters (Kubernetes Gatekeeper, Terraform, Docker authz, SSH, …). Apache-2.0.

Why it matters here

Agent and platform gates need a shared policy brain outside each agent’s prompt. OPA is the research default for declarative Rego decisions that many services can query. Prefer Cedar when you want Amazon’s authorization-language focus; prefer Keycloak for identity/SSO; prefer Earned Autonomy Protocol for how autonomy scope is earned over time.

How it works

Policies and data live with OPA (sidecar, library, or central service). On each decision point the service queries OPA; OPA evaluates Rego against input + data and returns a result the service enforces.

  1. Write Rego rules for the decision question.
  2. Deploy OPA (CLI, container, embedded).
  3. Service queries OPA with request context.
  4. Service enforces allow/deny (or richer structured answers).

Related: cedar · earned-autonomy-protocol · keycloak · topics/13-governance-policy

Flow

Scroll inside the canvas to pan

When to reach for it

  • Use when: you need stack-wide policy-as-code (authz, admission, infra) with Rego and CNCF ecosystem.
  • Skip when: you primarily need IdP/users (keycloak), Cedar-style app authz language only, or governance methodology without an engine (earned-autonomy-protocol).
  • Prefer instead: Gatekeeper for K8s admission specifically; Cedar for analyzable app permissions.

Limits

  • Rego learning curve: wrong policies fail closed or open — review like code.
  • Decision ≠ enforcement: callers must honor OPA answers.
  • Not an IdP: identity still comes from Keycloak/OIDC/etc.
  • Not the ledger: policy decisions support gates; they are not company SoR.

Linked from

What we checked

Claims below are backed by science sources on disk.

Engine / Rego role

open-policy-agent/opa · MODERATE

Open Policy Agent (OPA) is an open source, general-purpose policy engine.

Docs / integration

OPA documentation · MODERATE

OPA is a policy engine that streamlines policy management across your stack for improved development, security and audit capability.

Contrast vs Keycloak

Keycloak contrast · MODERATE

Open Source Identity and Access Management For Modern Applications and Services

In this research stack

Features and peers linked from the catalog map — not a second product surface.

Features it supports

Same cell

Stack

Document management

Source

Primary repo github.com/open-policy-agent/opa · Open Source

technologies/open-policy-agent/README.md

Research inventory

9 tags · 57 out · 59 in · 3 artifacts · 0 gaps · 44 corpus docs

Catalog tags

landscape.layer
Agentic
landscape.subcategory
IAM
license_tag
Open Source
maps.dm
present
maps.features
19
one_liner
Agentic
review.depth
science
slug
open-policy-agent
title
Open Policy Agent

Artifacts

  • dm_map · present · technologies/open-policy-agent/document-management.md
  • features_map · present · technologies/open-policy-agent/features.md
  • readme · present · technologies/open-policy-agent/README.md

Out · alternative_to

Out · dm_axis

Out · maps_to

In · alternative_to

In · dm_axis

In · in_stack

In · maps_to

Corpus tags

category
Agentic → IAM
dedication
open-source
feature
access-vs-authority
agent-identity-interoperability
autonomy-levels
exception-first-participation
governance
job-finance
job-healthcare
job-insurance
job-legal
job-security
live-work-portals
open-source
r2-13-governance-policy
r2-ecosystem-synthesis
r2-master-synthesis
security-identity-governance
wt-human-policy
wt-master-synthesis
wt-reuse-deploy-govern
kind
map_edge
tech_features
tech_quote
tech_readme
tech_science_source
tech_section
needs_deepen
false
quality
ok
section
Document management map
Evidence
Features map
GitHub map
How it works
Limits & failure modes
Links
Scientific notes
What it is
When to use / skip
Why it matters here
slug
open-policy-agent
source_id
keycloak-contrast
opa-docs
opa-github
technology
open-policy-agent

Corpus documents (44)

map_edge · 19

  • open-policy-agent → access-vs-authority
  • open-policy-agent → agent-identity-interoperability
  • open-policy-agent → autonomy-levels
  • open-policy-agent → exception-first-participation
  • open-policy-agent → governance
  • open-policy-agent → job-finance
  • open-policy-agent → job-healthcare
  • open-policy-agent → job-insurance
  • … +11 more

tech_features · 1

  • Open Policy Agent · features

tech_quote · 9

  • Open Policy Agent · keycloak-contrast
  • Open Policy Agent · keycloak-contrast
  • Open Policy Agent · keycloak-contrast
  • Open Policy Agent · opa-docs
  • Open Policy Agent · opa-docs
  • Open Policy Agent · opa-docs
  • Open Policy Agent · opa-github
  • Open Policy Agent · opa-github
  • … +1 more

tech_readme · 1

  • Open Policy Agent

tech_science_source · 3

  • Open Policy Agent · keycloak-contrast
  • Open Policy Agent · opa-docs
  • Open Policy Agent · opa-github

tech_section · 11

  • Open Policy Agent · Document management map
  • Open Policy Agent · Evidence
  • Open Policy Agent · Features map
  • Open Policy Agent · GitHub map
  • Open Policy Agent · How it works
  • Open Policy Agent · Limits & failure modes
  • Open Policy Agent · Links
  • Open Policy Agent · Scientific notes
  • … +3 more