# open-policy-agent/opa

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/open-policy-agent-opa).**

11,860 stars · 1,592 forks · Go · Apache-2.0

## Links

- GitHub: https://github.com/open-policy-agent/opa
- Homepage: https://www.openpolicyagent.org
- awesome-repositories: https://awesome-repositories.com/repository/open-policy-agent-opa.md

## Topics

`authorization` `cloud-native` `compliance` `declarative` `json` `opa` `open-policy-agent` `policy`

## Description

This project is a unified, cloud-native policy engine designed to decouple authorization and security logic from application codebases. It functions as a centralized authorization service that evaluates structured input data against declarative rules, enabling consistent policy enforcement across microservices, infrastructure, and continuous integration pipelines.

The engine utilizes a specialized logic programming language to express complex constraints, which are compiled into an optimized intermediate representation for high-performance evaluation. By supporting both sidecar-based deployment and direct library embedding, it allows for local, low-latency policy checks. The system further distinguishes itself through bundle-based distribution, which synchronizes versioned policy sets across distributed instances to maintain a consistent authorization state at scale.

Beyond core evaluation, the platform provides a comprehensive suite of tools for the entire policy lifecycle, including development assistance, linting, testing, and partial evaluation for portable logic execution. It also features robust observability capabilities, such as query execution tracing, performance metrics reporting, and request provenance verification, to ensure transparency and auditability in decision-making.

The engine exposes a programmable HTTP interface for real-time authorization queries and supports dynamic data injection to facilitate context-aware decision-making.

## Tags

### Security & Cryptography

- [Declarative Access Control](https://awesome-repositories.com/f/security-cryptography/declarative-access-control.md) — Centralizes access control logic across applications and infrastructure to ensure consistent security decisions.
- [Authorization Services](https://awesome-repositories.com/f/security-cryptography/encryption-as-a-service/authorization-services.md) — Acts as a centralized authorization service that evaluates structured input data to make consistent access control decisions.
- [Policy-As-Code Engines](https://awesome-repositories.com/f/security-cryptography/policy-as-code-engines.md) — Provides a declarative language and framework for defining, testing, and versioning security and operational policies as code.
- [Infrastructure Policy Enforcement](https://awesome-repositories.com/f/security-cryptography/infrastructure-policy-enforcement.md) — Automates compliance checks for cloud resources and configuration files to prevent security vulnerabilities.
- [Microservices Security](https://awesome-repositories.com/f/security-cryptography/microservices-security.md) — Intercepts and validates network requests at the service level to enforce fine-grained access control.
- [Policy Propagation Systems](https://awesome-repositories.com/f/security-cryptography/policy-based-access-control/policy-propagation-systems.md) — Synchronizes policy sets and configuration data across multiple instances to maintain a consistent authorization state. ([source](https://www.openpolicyagent.org/ecosystem))
- [Policy Enforcement Engines](https://awesome-repositories.com/f/security-cryptography/policy-enforcement-engines.md) — Automates code analysis within CI/CD pipelines to verify compliance with security and operational standards. ([source](https://www.openpolicyagent.org/projects/regal))
- [Security Policy Enforcers](https://awesome-repositories.com/f/security-cryptography/infrastructure-policy-enforcement/security-policy-enforcers.md) — Provides language-specific tools and network interfaces to embed policy enforcement logic directly into diverse software stacks. ([source](https://www.openpolicyagent.org/ecosystem))
- [Dynamic Policy Evaluators](https://awesome-repositories.com/f/security-cryptography/policy-based-access-control/dynamic-policy-evaluators.md) — Exposes a programmable HTTP interface for real-time authorization queries and validation of actions. ([source](https://www.openpolicyagent.org/docs/rest-api))
- [Dynamic Policy Refreshers](https://awesome-repositories.com/f/security-cryptography/authorization-policies/dynamic-policy-refreshers.md) — Allows for the dynamic creation, update, and removal of policy files without requiring service restarts. ([source](https://www.openpolicyagent.org/docs/rest-api))
- [Network and Infrastructure Security](https://awesome-repositories.com/f/security-cryptography/network-infrastructure-security.md) — Hooks into proxies and infrastructure tools to evaluate configuration and traffic against defined security and compliance rules automatically. ([source](https://www.openpolicyagent.org/docs/envoy))
- [Policy Validators](https://awesome-repositories.com/f/security-cryptography/policy-based-access-control/policy-validators.md) — Provides testing and debugging tools for declarative policy code to ensure rules behave as expected. ([source](https://www.openpolicyagent.org/ecosystem))

### DevOps & Infrastructure

- [Policy Engines](https://awesome-repositories.com/f/devops-infrastructure/cloud-native-development-tools/policy-engines.md) — Enforces security and operational standards across infrastructure, microservices, and CI/CD pipelines in cloud-native environments.
- [Policy Distribution Systems](https://awesome-repositories.com/f/devops-infrastructure/infrastructure/configuration-policy-enforcement/policy-distribution-systems.md) — Synchronizes sets of versioned policy modules and configuration data across distributed instances to ensure consistent enforcement at scale.
- [Sidecar Proxies](https://awesome-repositories.com/f/devops-infrastructure/sidecar-proxies.md) — Deploys alongside application services to intercept network traffic and perform local authorization checks.

### Artificial Intelligence & ML

- [Logical Condition Evaluators](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/reasoning-symbolic-systems/logic-engines/logical-condition-evaluators.md) — Processes structured input data against high-level rules to generate consistent authorization decisions.

### Part of an Awesome List

- [Policy as Code](https://awesome-repositories.com/f/awesome-lists/devops/policy-as-code.md) — General-purpose engine for unified policy enforcement.
- [Access Control Frameworks](https://awesome-repositories.com/f/awesome-lists/devtools/access-control-frameworks.md) — General-purpose decision engine for policy enforcement.

### Software Engineering & Architecture

- [Expression Languages](https://awesome-repositories.com/f/software-engineering-architecture/expression-languages.md) — Uses a specialized logic programming language to express complex authorization rules as declarative constraints.
- [Contextual Data Injection](https://awesome-repositories.com/f/software-engineering-architecture/contextual-data-injection.md) — Supports injecting and updating contextual information at runtime to enable dynamic, data-driven authorization decisions. ([source](https://www.openpolicyagent.org/ecosystem))

### Web Development

- [API Query Interfaces](https://awesome-repositories.com/f/web-development/api-query-interfaces.md) — Exposes programmatic API endpoints for external services to query authorization decisions and validate actions in real-time. ([source](https://www.openpolicyagent.org/docs/rest-api))

### System Administration & Monitoring

- [Execution Tracing](https://awesome-repositories.com/f/system-administration-monitoring/monitoring-and-observability/execution-tracing-analysis/execution-tracing.md) — Generates detailed step-by-step explanations of policy evaluation to assist developers in debugging logic and understanding decision paths. ([source](https://www.openpolicyagent.org/docs/rest-api))
- [Metric and Performance Monitors](https://awesome-repositories.com/f/system-administration-monitoring/monitoring-and-observability/observability-platforms/metric-performance-monitors.md) — Collects and reports granular timing and cache statistics to identify bottlenecks and optimize policy evaluation performance. ([source](https://www.openpolicyagent.org/docs/rest-api))

### Data & Databases

- [Document Stores](https://awesome-repositories.com/f/data-databases/document-stores.md) — Provides capabilities to retrieve, create, and modify structured data documents to support complex policy evaluation. ([source](https://www.openpolicyagent.org/docs/rest-api))
- [In-Memory Databases](https://awesome-repositories.com/f/data-databases/in-memory-databases.md) — Maintains structured input and policy data in memory to enable high-performance lookups and rapid evaluation.

### Development Tools & Productivity

- [Intelligent Development Assistants](https://awesome-repositories.com/f/development-tools-productivity/ai-coding-assistants/intelligent-development-assistants.md) — Provides real-time feedback, code completion, and navigation features through a language server. ([source](https://www.openpolicyagent.org/projects/regal))
