GLOSSARY

SpiceDB and Zanzibar Glossary

Plain-language definitions of the terms you meet in relationship-based access control, Google's Zanzibar paper and SpiceDB, from arrows and caveats to ZedTokens and the new enemy problem.

Last reviewed November 2026.

ABAC (attribute-based access control)
An access control model that decides access by evaluating attributes of the user, the resource and the request context, such as department, classification, time or device. In SpiceDB, attribute-style rules are expressed as caveats.Learn more
Arrow (->)
A schema operator that follows a relation to another object and checks a permission there. parent->view means "anyone who can view this object's parent can view this object". It is how inheritance through folders, organizations and hierarchies is expressed. Zanzibar calls this a tuple-to-userset rewrite.
Authentication
Establishing who someone is, usually through an identity provider with single sign-on and multi-factor authentication. It answers "who are you?" and comes before authorization.
Authorization
Deciding what an authenticated person, service or AI agent is allowed to do: "can this subject perform this action on this object?". SpiceDB is an authorization system.
Caveat
A condition attached to a relationship and evaluated at check time with context supplied by the application, such as an amount, a time window or an IP range. If required context is missing, SpiceDB returns CONDITIONAL and names the missing fields.
CheckPermission
The SpiceDB API that answers whether a subject has a permission on an object. It returns yes, no or conditional, and can explain the relationship path behind the answer.
Consistency modes
Per-request choices for how fresh an answer must be: minimize_latency (the default, served from cache where possible), at_least_as_fresh (at least as recent as a given ZedToken), at_exact_snapshot and fully_consistent.
Datastore
The database where SpiceDB stores relationships. Supported production datastores are PostgreSQL, CockroachDB, Google Cloud Spanner and MySQL; an in-memory datastore is available for development.
Definition
A schema block describing one object type, such as definition document { ... }, with its relations and permissions.
Dispatch
How SpiceDB scales checks across a cluster: a check is split into sub-problems, which are routed to nodes chosen by consistent hashing so that each sub-problem is computed and cached once, as described in the Zanzibar paper.
Exclusion (-)
A schema operator that removes subjects from a permission, such as permission view = viewer - blocked. Useful for legal holds, ethical walls and "everyone except" rules.
Expiring relationship
A relationship written with an expiration time, after which SpiceDB stops using it automatically. Suited to contractor, auditor and support access that should end without a cleanup job.
Intersection (&)
A schema operator that grants a permission only when both sides are true, such as access that requires both team membership and an active licence.
Leopard index
The component of Google's Zanzibar that precomputes deeply nested group memberships so the most expensive checks stay fast. AuthZed Materialize takes inspiration from it.Learn more
LookupResources
The SpiceDB API that returns every object of a type a subject can access, such as all documents Alice can view. It powers permission-aware lists, search and AI retrieval.
LookupSubjects
The SpiceDB API that returns every subject with a permission on an object, such as everyone who can view a document. Useful for sharing dialogs, notifications and access reviews.
Materialize
AuthZed Materialize, available on AuthZed Dedicated, keeps selected permissions precomputed and current as relationships change, and streams them to search indexes, databases, warehouses and vector stores.Learn more
New enemy problem
The failure the Zanzibar paper describes where a user who was just removed still sees content added after the removal, because a check was answered from stale data. ZedTokens prevent it.Learn more
Object
Anything you protect, such as a document, folder, project, account or conversation, written as type:id, for example document:roadmap. Also called a resource.
Permission
A computed rule in a schema, such as permission view = viewer + parent->view. Permissions are derived from relations and are never written directly.
Playground
A browser-based environment for writing a SpiceDB schema, adding relationships and testing checks without installing anything, at play.authzed.com.
Quantization window
For default low-latency reads, SpiceDB rounds the revision it reads at to a short interval (5 seconds by default) so many requests share cached results. Requests that need fresher answers pass a ZedToken.
RBAC (role-based access control)
An access control model where users receive roles and roles carry permissions. Simple and auditable, but it struggles with per-object access and leads to role explosion. Roles can be modeled as relations in SpiceDB.Learn more
ReBAC (relationship-based access control)
An access control model that computes access from relationships between people, groups and objects, such as ownership, membership, sharing and hierarchy. It is the model behind Google Zanzibar and SpiceDB.Learn more
Relation
A stored kind of relationship declared in a schema, such as relation viewer: user | team#member, including which subject types are allowed.
Relationship
A stored fact connecting a subject to an object through a relation, such as document:roadmap#viewer@user:alice. Zanzibar calls it a relation tuple.
Schema
The definitions, relations, permissions and caveats that describe how access works in your product. In SpiceDB it is written in a short, readable language and can be validated in CI.Learn more
SpiceDB
An open-source, Apache 2.0 licensed permissions database inspired by Google's Zanzibar. It stores relationships, computes permissions, and answers checks and lookups at scale. Created by AuthZed.Learn more
Subject
Whoever or whatever is asking for access: a user, a service account, an AI agent, or a group of subjects through a subject set.
Subject set
A group of subjects defined by a relation on another object, such as team:engineering#member. Granting access to a subject set grants it to every member, including nested ones. Zanzibar calls it a userset.
Union (+)
A schema operator that grants a permission if any side is true, such as permission view = viewer + editor + owner.
Watch API
A SpiceDB stream of every relationship change, used to keep caches, search indexes and data warehouses in step with the source of truth.
Wildcard
A subject that matches everyone of a type, such as user:*, used for public access or, with an exclusion, to block everyone at once.
Zanzibar
Google's internal authorization system, described in the 2019 paper "Zanzibar: Google's Consistent, Global Authorization System". It stores trillions of access entries and inspired SpiceDB.Learn more
zed
The SpiceDB command-line client, used to write schemas and relationships, run checks and lookups, and validate schemas in CI.Learn more
ZedToken
A consistency token returned by every SpiceDB write. Passing it with a later request guarantees an answer at least as fresh as that write. It is SpiceDB's version of Zanzibar's zookie.Learn more

See the terms in action

The quickstart uses most of these terms in ten minutes, and the interactive demos show them working inside real applications.

Explore SpiceDB demos ยท Try the quickstart