Skip to content

Where to store ZedToken if the resources are in a tree structure? #1530

Answered by josephschorr
henkosch asked this question in Q&A
Discussion options

You must be logged in to vote

If user U is in G, and then gets removed, the logical place to store the zookie is in G, but if you do a permissions check for U on D, it would pass, as the zookie you would provide would be for D.

Yes, but that permission check result is fine unless the contents of the document have changed since the permission was removed, in which case, you'll (hopefully) have stored the updated Zookie/ZedToken on the document itself.

If the contents of the document have not changed, the user no longer having access (within the cache latency window) should be fine: they previously had access, so the contents have already been "seen" by that user.

Consider the following scenario:

  1. I create a document …

Replies: 15 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by josephschorr
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@vroldanbet
Comment options

@svenefftinge
Comment options

@vroldanbet
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
kind/question Clarifying a question without code changes
7 participants
Converted from issue

This discussion was converted from issue #1117 on September 08, 2023 17:10.