talira

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)

You run it, Apache-2.0

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

Pricing

AuthZed Cloud

Hosted by AuthZed

usage-based, from $2/hour1

Only in this edition

  • managed SpiceDB
  • advanced observability and APIs
  • standard support

Pricing

AuthZed Dedicated

Hosted by AuthZed

by quote, reserved vCPU capacity1

Only in this edition

  • private cloud infrastructure
  • multi-region deployments
  • premium support

Pricing

AuthZed Self-Hosted Enterprise

You run it, under a commercial licence

annual licence per region and per vCPU1

Only in this edition

  • professional support

You arrange

  • infrastructure to run it on, best supported in Kubernetes

Pricing

Capabilities

Has an APIplan not known

Alternatives

The same job

These do what SpiceDB does.

  1. OpenFGA Fine-grained authorization
  2. Ory Keto Open source authorization server based on Google Zanzibar, for RBAC and ReBAC
  3. Oso Cloud A centralized authorization service built on Polar
  4. Permit.io Runtime access control for the AI era
  5. Apache Casbin An authorization library that supports access control models like ACL, RBAC, ABAC
  6. Cerbos Authorize every identity. Govern every action.

Compare SpiceDB with the top 3