Skip to content

Understanding subject-set rewrites and the graph of relations #765

Answered by zepatrik
alexhanson asked this question in Q&A
Discussion options

You must be logged in to vote

It is important to distinguish subject-sets and subject-set-rewrites here. The former are supported by Keto, while the latter are not yet implemented. The examples you provided all contain subject-sets and are regular relationtuples.

Subject-set-rewrites are a global configuration that works a bit like an instruction to define tuples that are not actually stored, but deducted from the stored ones. The most straight forward example (from the zanzibar paper):

relation: {
  name: "editor"
  userset_rewrite: {
    union: {
      child: { _this: {} }
      child: { computed_userset: { relation: "owner" } }
} } }

This means that for each tuple of the format <object>#owner@<subject>, the system …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@alexhanson
Comment options

Answer selected by alexhanson
Comment options

You must be logged in to vote
2 replies
@vinckr
Comment options

@WoodyWoodsta
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants