Open-source, Google Zanzibar-inspired database for fine-grained authorization
open coreApache-2.0self-hostablefree
SpiceDB is an open-source permissions database inspired by Google's Zanzibar paper, run as a central authorization service shared by an organization's applications and microservices. Developers define a schema of object types, the relationships between them and the permissions computed from those relationships (with Caveats for bits of policy), write relationships as data, and ask SpiceDB over gRPC or HTTP/JSON whether subject X can perform action Y on resource Z, what a subject can access or who can access a resource. Relationships are stored in Spanner, CockroachDB, PostgreSQL or MySQL, and tooling lets teams validate schema changes and test against a built-in test server. It handles authorization only and works with any identity provider. AuthZed, its maker, sells it as a managed cloud, dedicated cloud and supported self-hosted Enterprise.
Problems it solves
- fine-grained permissions like Google Docs sharing in our own app
- a central authorization service for many microservices instead of permission checks in each one
- answer which documents a user can see without loading everything and filtering
- relationship-based access control (ReBAC) at scale
- model nested teams, folders and inherited permissions
- broken access control keeps showing up in our security reviews
- a self-hosted open-source Zanzibar implementation
Features
- schema of object types, relationships and permissions
- Caveats for conditional policy
- permission checks, lookup resources and lookup subjects
- gRPC and HTTP/JSON APIs
- Spanner, CockroachDB, PostgreSQL and MySQL storage
- schema validation tooling and test server
- official and community client libraries
Ways to run it
SpiceDB (open source)
free1
Only in this edition
- community support on Discord and GitHub
You arrange
- servers or Kubernetes to run it on
- a datastore such as PostgreSQL, CockroachDB, Spanner or MySQL
AuthZed Cloud
usage-based, from $2/hour1
Only in this edition
- managed SpiceDB
- advanced observability and APIs
- standard support
AuthZed Dedicated
by quote, reserved vCPU capacity1
Only in this edition
- private cloud infrastructure
- multi-region deployments
- premium support
AuthZed Self-Hosted Enterprise
annual licence per region and per vCPU1
Only in this edition
- professional support
You arrange
- infrastructure to run it on, best supported in Kubernetes
Capabilities
| Has an API | plan not known |
|---|
Alternatives
The same job
These do what SpiceDB does.
- OpenFGA Fine-grained authorization
- Ory Keto Open source authorization server based on Google Zanzibar, for RBAC and ReBAC
- Oso Cloud A centralized authorization service built on Polar
- Permit.io Runtime access control for the AI era
- Apache Casbin An authorization library that supports access control models like ACL, RBAC, ABAC
- Cerbos Authorize every identity. Govern every action.