SpiceDB stores authorization relationships and answers permission checks at scale. Teams define a schema, write relationships, and query via APIs or client libraries.
Overview
SpiceDB is an open-source authorization database modeled on Google Zanzibar. Developers define a schema, store relationships, and call the service from applications to decide whether a subject may perform an action on a resource. It also supports reverse queries such as listing what a subject can do or who can access a resource.
The design stays independent of authentication: SpiceDB handles authorization only and works with any identity provider. It often runs as a shared service across microservices or product suites. Caveated relationships blend attribute-style and relationship-based access control patterns.
Client libraries, the zed CLI, gRPC, and HTTP APIs drive schema management and checks. A playground can be hosted or used online for examples and tests. Schema validation can run in real time or in CI/CD pipelines.
Binary releases cover Linux, macOS, and Windows on AMD64 and ARM64, with package repositories for Debian, RPM, and Homebrew. Container images publish to ghcr.io. Backends include Google Cloud Spanner, CockroachDB, MySQL, and PostgreSQL. Production deployment commonly uses Kubernetes, including operator-based setups.
Key features
- Schema-driven permission model
- CheckPermission and reverse queries
- Per-request consistency tuning
- Caveated relationships
- gRPC and HTTP APIs
- zed CLI and client libraries
- Multiple database backends
- Container and binary deployment
Use cases
- Central authorization for microservices
- Answer can-subject-X-do-Y-on-Z checks
- Model ReBAC and ABAC-style rules
- Replace ad-hoc ACL logic in apps
- Shared permissions across product suites
Does the same job as
SpiceDB doesn't name these products itself, but its own description shows it does the same job.