Implementing Fine-Grained Access Control with Ory Keto
Decouple authorization from your code using Ory Keto's relation-based access control (ReBAC). Learn how to use relation tuples and the Check API to manage fine-grained permissions.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Decouple authorization from your code using Ory Keto's relation-based access control (ReBAC). Learn how to use relation tuples and the Check API to manage fine-grained permissions.
SpiceDB’s Zookies are the safety net that guarantees causal consistency in a distributed ReBAC system. Learn how to use them to prevent New‑Enemy attacks, with a concrete schema example, write‑and‑check workflow, and best‑practice checklist.
SurrealDB table permissions can genuinely serve as the tenant-isolation boundary — if you model tenancy as an indexed field, authenticate clients via record access, keep admin credentials off clients, and probe allow/deny behavior directly.
Learn how to capture SpiceDB zedtokens from writes and use the at_least_as_fresh consistency level to guarantee that permission checks see the latest changes, avoiding stale reads after updates.
Guidance on deploying Spicedb for low‑latency permission checks, covering requirements, minimal dev setup, trust boundaries, ops checks, failure modes, and when to redesign.
SpiceDB Watch streams push real-time tuple changes over gRPC for immediate cache invalidation. A Go/Redis example shows filter design, checkpoint resume, and at-least-once delivery trade-offs.
CheckPermission answers one question: does this subject have this permission on this resource? A worked schema, tuple writes, the rewrite-tree mechanism, and the mistakes that produce wrong answers.
Learn how Spicedb’s policy caching can slash decision‑making latency, how to enable it, monitor its impact, and what trade‑offs to watch for. A step‑by‑step example shows the real‑world benefit and how to keep your system stable.
Stop creating hundreds of roles to handle conditional access. Learn how to use SpiceDB Caveats to implement Attribute-Based Access Control (ABAC) for time-bound and context-aware permissions.