Explanation¶
These pages explain why the library works the way it does. They are for reading away from the keyboard: none of them asks you to do anything, and none of them is needed to get a first check working. For that, start with the tutorials. For a specific job, see the how-to guides. For exact names, arguments and exceptions, see the reference.
- Zanzibar and relationship-based access control
What relationship-based access control is, what Google’s Zanzibar paper contributed, and where this library and its schema language come from.
- The two backends
The library answers every question in two different ways, one that does the work when you write and one that does it when you ask. Why both exist, how a
Storecombines them, and how they are kept in agreement.- How the graph index works
Precomputing who can reach what, counting paths so that a removal can be undone exactly, and representing
user:*without listing every user.- How
andandbut notwork Why the operators cannot be precomputed like the rest, how the graph index keeps them up to date anyway, and why a relation may not recurse through them.
- Consistency: the tuple log, tokens and stalls
What a read can and cannot see after a write, especially when the index is kept up to date in the background.
- Semantics and differences from OpenFGA
Where the library behaves exactly like OpenFGA, and where it deliberately does not.
- Wildcard extensions beyond OpenFGA
Wildcard usersets, wildcard tuplesets and wildcard objects, and why using them emits a warning.
- How correctness is checked
How the two backends are tested against each other and against an independent reference, what has been proved, and what has not.
- Limits and costs
What grows with your data, and what the library refuses in order to stay bounded.