OpenFGA is an authorization and permission engine with HTTP and gRPC APIs, pluggable storage, and a modeling playground for relationship-based access checks.
Overview
OpenFGA is a high-performance authorization engine inspired by Google Zanzibar. It helps application teams model fine-grained permissions and answer check queries about whether a user or subject may perform an action on a resource.
The server exposes developer-oriented HTTP and gRPC APIs. Storage backends include in-memory for quick trials, plus PostgreSQL, MySQL, and a beta SQLite adapter for persistent deployments. A built-in Playground supports modeling, visualization, and testing of authorization setups on local instances.
Operators can run prebuilt container images, Homebrew packages, or binaries, or compile from Go source. Documentation covers authorization models, relationship tuples, check calls, and adding authentication to the server. SDKs exist for common languages to embed checks alongside application code. The project is a CNCF incubating effort with community RFC and governance processes.
Key features
- Relationship-based access control modeling
- HTTP and gRPC authorization APIs
- PostgreSQL, MySQL, SQLite, in-memory stores
- Local Playground for model testing
- Docker and Docker Compose deployment
- CLI and Homebrew installation options
- SDKs for popular programming languages
- Tuple writes and authorization checks
Use cases
- Fine-grained permissions in multi-tenant apps
- ReBAC-style sharing and inheritance rules
- Central policy service for microservices
- Evaluating auth models before production
- Self-hosted alternative to hosted FGA services
Does the same job as
OpenFGA doesn't name these products itself, but its own description shows it does the same job.