opa-authzen-plugin can serve as a standards-based PDP behind any API gateway that supports external authorization. The example/envoy-gateway/ directory demonstrates this pattern with Envoy proxy:
Client → Envoy → ext-authz-bridge → opa-authzen-plugin (AuthZEN PDP) ↓ OPA Rego policyA thin translation layer (ext-authz-bridge) converts gateway-specific protocols (e.g., Envoy ext_authz gRPC) into AuthZEN evaluation requests. The PDP itself is gateway-agnostic — it can serve any AuthZEN-compatible PEP (Kong, AWS API Gateway, Tyk, etc.) without modification.
This differs from opa-envoy-plugin, which embeds Envoy's gRPC ext_authz protocol directly into OPA. opa-authzen-plugin uses the OpenID AuthZEN standard as the protocol between the gateway and PDP.
cd example/envoy-gatewaydocker compose up --build# Testcurl -i -H "X-User: rick" http://localhost:9000/todos # → 200curl -i -X POST -H "X-User: jerry" http://localhost:9000/todos # → 403© 2026 The opa-authzen-plugin Authors. Licensed under Apache-2.0. Part of dyokto.