Joey
08/22/2022, 5:47 PMJoey
08/22/2022, 5:48 PMJoey
08/22/2022, 5:48 PMRushil
08/22/2022, 5:49 PMRushil
08/22/2022, 5:50 PMrocco
08/23/2022, 6:07 PMdefinition user {
relation self: user
permission edit = self
}
with this approach I would have to create a self
relationships for every user.
Is there any way to refer to "self" without explicitly having this relation?Joey
08/23/2022, 6:07 PMrocco
08/23/2022, 6:10 PMSingha1
08/23/2022, 7:25 PMJoey
08/23/2022, 8:03 PMSingha1
08/23/2022, 8:13 PMSingha1
08/23/2022, 8:14 PMJoey
08/23/2022, 8:15 PMJoey
08/23/2022, 8:15 PMSingha1
08/23/2022, 8:18 PMSingha1
08/23/2022, 8:20 PMSam
08/23/2022, 8:22 PMSam
08/23/2022, 8:24 PMSingha1
08/23/2022, 8:26 PMSam
08/23/2022, 8:31 PMJeroen (Speedzor)
08/24/2022, 1:23 PMLookupResources
is an excellent API to find the data a user has access to if it's a relatively small subset of the overall number of documents. What about an alternative world where most users have access to most data? Presumably I don't want to get into a scenario where LookupResources
returns 10 million IDs and I include all that in my DB lookup -- how should we handle those situations?Jake
08/24/2022, 1:24 PMJeroen (Speedzor)
08/24/2022, 1:27 PMLookupResources
API seems to only accept inclusivity: https://buf.build/authzed/api/docs/main:authzed.api.v1#authzed.api.v1.PermissionsService.LookupResources. Do you mean that we'd change the underlying idea behind the schema so that relationships indicate a lack of access instead?Jake
08/24/2022, 1:28 PMJake
08/24/2022, 1:28 PMJeroen (Speedzor)
08/24/2022, 1:33 PMJake
08/24/2022, 1:34 PMJeroen (Speedzor)
08/24/2022, 1:36 PMCheckPermission
?Jake
08/24/2022, 1:36 PMJeroen (Speedzor)
08/24/2022, 1:41 PM