Checked before it reaches a modulesimulation
- Traefikforwards to the Auth Gateway
- Auth Gatewayverifies the OIDC / JWT token
- Cerbosdecides: allow or deny
- Your modulereceives the request
Press Send to run the request.Zero-Trust Architecture at the Edge
Operating at the edge of your network, the Auth Gateway acts as an intelligent shield. It verifies OIDC/JWT tokens from your identity provider (Keycloak, Entra ID, Auth0, Okta or any other OIDC provider) and denies whatever it cannot verify.Cerbos-Based Policies & Auth Context
Define highly granular, verifiable permission rules using the Cerbos policy language. Routes and scopes are derived from each module's OpenAPI spec, unknown routes fail closed, and the gateway translates external tokens into a standardized internal context, passing it downstream safely.What the gateway reads and setsillustrative
What each service has to doillustrative
Simplify Downstream Services
By handling token validation and policy enforcement at the gateway, your individual microservices can remain lightweight, focusing purely on business logic rather than complex authentication flows. The gateway also applies per-user rate limits and standard security headers, and serves one Swagger UI for every installed module.Is Auth Gateway right for you?
Straight from the repository README, including where it is not the right tool.
A good fit if
- Several services sit behind one entry point and you want authentication and authorization decided in one place.
- You already have (or will have) an OIDC provider such as Keycloak, Entra ID, Auth0 or Okta.
- You want authorization derived from the API contract instead of hand-maintained route lists.
Probably not what you need if
- You run a single service with its own auth and no plan to add more.
- You need a general-purpose ingress or CDN: this is the authentication and authorization layer that sits next to one.
Go deeper
Design notes from the people who build it.
Feb 25, 2026Verify once at the edge: the trusted identity header contractMar 26, 2026One policy decision point, three enforcement points: authorization with CerbosApr 9, 2026Declare authorization in your OpenAPI spec: x-labs64.authAug 4, 2026OIDC discovery vs trust: pin the token issuer in your API gatewayJun 21, 2026Service-to-service auth in Kubernetes: dropping the OAuth hopFeb 10, 2026Test at the edge: black-box API regression with Robot Framework
Ready to secure your stack?
Run Auth Gateway locally as part of the guided onboarding path.