Skip to main content

Nirvana Lab

CLOUD & DEVOPS

SpiceDB Consulting Services for Fine-Grained Permissions

Answer “can this user, team or agent do this, on this record?” in one consistent place, instead of in scattered if-statements.
ISO/IEC 27001:2022
SOC 2 Type 2
CMMI-certification
CLOUD & DEVOPS

SpiceDB Consulting Services for Fine-Grained Permissions

Answer “can this user, team or agent do this, on this record?” in one consistent place, instead of in scattered if-statements.
ISO/IEC 27001:2022
SOC 2 Type 2
CMMI-certification

What is SpiceDB?

SpiceDB is an open-source authorization database, released under the Apache 2.0 license by AuthZed and inspired by Google’s Zanzibar paper. You define a schema of resources, relations and permissions, store relationships between users, groups and objects, and ask SpiceDB whether a subject has a permission. It answers permission checks and “what can this user access?” lookups.

Nirvana Lab offers SpiceDB consulting services: modeling permissions, integrating SpiceDB with applications and identity providers, and running it reliably.

At a glance
Item Detail
What it is
Open-source, Zanzibar-inspired database and API service for relationship-based authorization
What we use it for
Fine-grained, multi-tenant permissions for portals, SaaS products and AI agents
Works with
Keycloak, PostgreSQL & pgvector, Kubernetes (Amazon EKS), Python & FastAPI, Elasticsearch & Apache Lucene
Best fit
Applications where access depends on relationships: ownership, teams, organizations, sharing, hierarchies
Official site
https://authzed.com/spicedb

When to choose SpiceDB

Roles alone no longer describe who can see what

When access depends on "member of this supplier", "owner of this folder" or "shared with this team", role lists explode. SpiceDB models these relationships directly.

Many services need the same permission answers

A central permission service keeps a portal, APIs, search and mobile apps consistent, instead of each reimplementing access rules.

You need to list what a user can access

Lookup APIs return the resources a subject can reach, which helps filter search results, dashboards and agent tool access.

When not to choose SpiceDB

If a few fixed roles cover your application and one service owns all data, your framework's role checks or your identity provider's built-in authorization is simpler. SpiceDB adds a service to run and relationships to keep in sync.

What we build with SpiceDB

Authorization alongside single sign-on

Keycloak or another identity provider proves who the user is; SpiceDB decides what they can do

Multi-tenant SaaS permissions

Tenant, organization, team and resource relationships for products built for many customers.

Supplier and partner portal access

Users see only their company's orders, documents and reports, with delegated admins per organization.

Permission-aware search

Search results filtered to what each user may open, using SpiceDB lookups or pre-computed access lists.

Governed AI agents

Agents get their own identity and relationships, so every tool call can be checked against what that agent, and the person it serves, is allowed to do.

Identity configuration

Keycloak realms, clients and roles managed as code.

spicedb-consulting-services-fine-grained-authorization-architecture

How we deliver SpiceDB consulting services

Model first, in plain language

We start from real access rules written as sentences ("a supplier admin can invite users to their supplier"), turn them into a SpiceDB schema, and validate it with test relationships and assertions before any code changes.

Keep relationships in sync

We design how relationships are written when data changes: in the same workflow as the business write, through events, or both. Out-of-sync relationships are the most common source of wrong answers, so we plan reconciliation jobs.

Choose consistency per request

SpiceDB lets each request trade freshness for speed using consistency options and ZedTokens. We use full consistency for sensitive actions and cached answers for high-volume reads.

Run it like a database

We deploy SpiceDB on Kubernetes (Amazon EKS) with a supported datastore such as PostgreSQL, set up migrations, backups, metrics and alerts, and load-test permission checks at expected volumes.

Test permissions in the pipeline

Schema changes are reviewed and validated in CI with assertion files, so a permission change can't reach production without passing its tests.

Proof

Related experience: our engineers deliver single sign-on and role-based access across Liferay DXP portals, including OneLogin IAM for a Michigan-based global manufacturer’s supplier portal serving 12 countries (/case-study/supplier-portal/).

College student
Case Study

Architecting the AI-First & Student-Centric Campus

Moving from Fragmented Legacy Platforms to an All-in-One Digital Experience Executive Summary For today’s digital-native students, a seamless, pers...
Read More
Miller Knoll Thumbnail
Case Study

A Michigan-Based Manufacturer Transforms Supplier Experience Through a Modern Digital Portal

Client Overview A Michigan-based global manufacturing company, operating across 12 countries, was facing increasing challenges with its legacy “Su...
Read More
Transforming a Global CNC Machine Manufacturer with Liferay
Case Study

Transforming a Global CNC Machine Manufacturer with Liferay

Overview A global manufacturing OEM specializing in large CNC milling machines for the automotive and heavy engineering industries set out to moderniz...
Read More

Frequently asked questions

What is SpiceDB?

SpiceDB is an open-source authorization database from AuthZed, inspired by Google Zanzibar. It stores relationships between subjects and resources, evaluates permissions defined in a schema, and answers questions such as “can Alice edit this document?” and “which documents can Alice view?” through gRPC and HTTP APIs. Applications call it instead of hard-coding access rules.

Zanzibar is Google’s global authorization system, described in a 2019 research paper. It stores access as relationships between users and objects and evaluates permissions consistently at very large scale. SpiceDB, OpenFGA and similar open-source projects implement ideas from that paper so other organizations can use the same model without building it themselves.

Relationship-based access control (ReBAC) grants access based on how a user relates to a resource: owner, member of the owning team, viewer through a shared folder, admin of the parent organization. It extends role-based access control and handles sharing, hierarchies and multi-tenant data with far fewer roles. SpiceDB is a ReBAC system.

No. They solve different problems. Keycloak handles authentication: sign-in, single sign-on, MFA and tokens. SpiceDB handles authorization: what an authenticated user may do on a specific resource. A common design uses Keycloak to identify the user and pass their ID in a token, then SpiceDB to check each action.

Open Policy Agent evaluates policies written in Rego against data you pass in, which suits attribute and rule checks such as “deny deploys on Friday”. SpiceDB stores the relationship graph itself and answers checks and lookups over it, which suits sharing, hierarchies and “what can this user see?” queries. Some teams use both.

Image

Put every permission decision in one place

Tell us how access works in your product today. We’ll map your rules to a SpiceDB model and show where it simplifies your code and audits.

Reviewed by Shashank Gupta, Head of Product · Last Updated 18 Nov, 2026

Book a Demo

Pick a time that works for you. We’ll send a calendar invite.