Skip to content

Can SpiceDB model ABAC? #1497

Answered by jzelinskie
yuchen-sun asked this question in Q&A
Discussion options

You must be logged in to vote

This is a great question.

When the terms RBAC or ABAC are used, they often assume lots of unspoken details. Today, SpiceDB is capable of modeling RBAC or ABAC with many different variations of those unspoken details.

You can implement node-based attributes by simply creating a relationship like attribute:friendly#haver@user:emilia. In this example, the subject, the user Emilia, has a relation "haver" with the attribute "friendly". I call this node-based because it is only capable of assigning this attribute to nodes, like Emilia.

There are other ways you might require attributes like on the edges (e.g. relations in SpiceDB) or or count-based which is actually not associated with any part …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jzelinskie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/docs Affects docs or metadata (e.g. README) kind/question Clarifying a question without code changes
2 participants
Converted from issue

This discussion was converted from issue #200 on August 17, 2023 16:30.