qmetrics.net

OPA

General-purpose policy engine with declarative Rego rules

OPA screenshot

Open Policy Agent centralizes authorization and policy decisions across your stack. Services query OPA instead of hardcoding rules, using the Rego language and JSON input data.

Overview

Open Policy Agent (OPA) is a general-purpose policy engine for unified, context-aware enforcement across applications and infrastructure. You express rules in the declarative Rego language to answer questions such as whether a user may call an API, which cluster may run a workload, or which tags a resource needs before creation.

Integrating services offload those decisions: when a policy choice is required, the service sends a query with input context and optional data documents; OPA evaluates policies and returns allow, deny, or structured guidance. This pattern suits API authorization, Kubernetes admission, Terraform plans, container policies, SSH access, and similar controls described in project documentation.

OPA offers a local CLI for development, REST APIs for polyglot integration, and Go SDKs at varying abstraction levels. A browser-based Rego Playground helps author and share policies. The project is a graduated CNCF member with community extensions listed in its ecosystem directory.

Policies remain decoupled from application code, so security and compliance teams can evolve rules independently while services enforce results consistently at decision time.

Key features

  • Rego policy language
  • Decoupled policy decisions
  • REST and Go integrations
  • CLI for local evaluation
  • JSON input and data documents
  • Kubernetes and Terraform examples
  • Rego Playground authoring
  • CNCF graduated project

Use cases

  • API request authorization
  • Kubernetes admission control
  • Infrastructure as code guardrails
  • Microservice permission checks
  • Compliance rule enforcement

Does the same job as

OPA doesn't name these products itself, but its own description shows it does the same job.

Tags

Compare OPA

Similar software

Keycloak

Identity and access management for applications and services

Keycloak adds authentication and single sign-on to applications so they do not store or verify users themselves. It supports standard protocols and central admin tools.

  • Single sign-on across applications
  • OpenID Connect, OAuth 2.0, and SAML
  • Social login and identity brokering
JavaDockerDetails →
★ 38.2k⟳ todayApache-2.0
Open Source Alternative to:Amazon CognitoAuth0+7

JumpServer

Open-source bastion host for privileged access

JumpServer is a privileged access management platform that unifies secure access to SSH, RDP, Kubernetes, databases, and web assets.

  • SSH and RDP session access
  • Kubernetes pod connections
  • Database connector via web
PythonWeb, Linux, DockerDetails →
★ 32.1k⟳ todayGPL-3.0
Open Source Alternative to:BeyondTrust

Better Auth

Composable TypeScript authentication and authorization framework

Better Auth is a framework-agnostic authentication and authorization framework for TypeScript. You configure it in code and extend it with plugins for flows like social login, organizations, and enterprise SSO.

  • TypeScript auth configuration in code
  • Email and password sessions
  • Social OAuth providers
TypeScriptDetails →
★ 31k⟳ todayMIT
Open Source Alternative to:Amazon CognitoAuth0+3

Authelia

Self-hosted SSO portal with multi-factor authentication

Authentication and authorization server that sits in front of reverse proxies. Provides a web portal for login, OpenID Connect, and granular access rules with several second-factor methods.

  • OpenID Connect and OAuth 2.0 provider
  • WebAuthn passkeys and FIDO2 keys
  • TOTP and Duo push second factors
GoWeb, DockerDetails →
★ 29.8k⟳ todayApache-2.0
Open Source Alternative to:Amazon CognitoAuth0+7

Auth.js

Web authentication libraries for JavaScript frameworks

Auth.js (NextAuth) adds sign-in, sessions, and OAuth to modern JavaScript apps. Packages target Next.js, SvelteKit, Express, Qwik, and other runtimes.

  • OAuth 2.0 and OIDC providers
  • Email and passwordless sign-in
  • WebAuthn passkey support
TypeScriptDetails →
★ 28.4k⟳ 4 months agoISC
Open Source Alternative to:Amazon CognitoAuth0+4

authentik

Self-hosted identity provider for SSO protocols

authentik centralizes authentication with SAML, OAuth2, OIDC, LDAP, RADIUS, and related flows. It targets small labs through production clusters you deploy yourself.

  • SAML and OAuth2/OIDC
  • LDAP and RADIUS
  • Application proxy
PythonDockerDetails →
★ 26.6k⟳ todayMIT · open core
Open Source Alternative to:Amazon CognitoAuth0+7