Jake
05/05/2022, 2:01 PMdefinition thing {
relation registered_user: user:*
permission view = registered_user
}
Jake
05/05/2022, 3:09 PMwilliamdclt
05/05/2022, 4:18 PMthing:XXX#registered_user@user:*
for each thing
. That seem unnecessary, I'd just like to statically defined that the view
permission is given for any user
(or possibly any subject at all)Jake
05/05/2022, 4:20 PMplatform
objectJake
05/05/2022, 4:20 PMwilliamdclt
05/05/2022, 4:27 PMplatform
object would work indeed, but it's still an additional concept and relations for a use-case that doesn't really need it π it's a lot of friction I find. Not the biggest of deals, but it means I have to make sure that all my `thing`s have a relation to platform
, it's one more thing to implement and maintainJoey
05/05/2022, 4:33 PMJoey
05/05/2022, 4:33 PMwilliamdclt
05/05/2022, 4:35 PMJoey
05/05/2022, 4:35 PMpermission someperm = nil
which always returns no permissionJoey
05/05/2022, 4:35 PMJoey
05/05/2022, 4:35 PMJoey
05/05/2022, 4:36 PMpermission someperm = always
or somesuchwilliamdclt
05/05/2022, 4:37 PMJoey
05/05/2022, 4:41 PMdantheman
05/06/2022, 3:12 AMJake
05/06/2022, 3:13 AMdantheman
05/06/2022, 3:14 AMJake
05/06/2022, 3:16 AMJake
05/06/2022, 3:16 AMdantheman
05/06/2022, 3:18 AMdantheman
05/06/2022, 3:22 AMJake
05/06/2022, 3:25 AMJake
05/06/2022, 3:26 AMJake
05/06/2022, 3:27 AMdantheman
05/06/2022, 3:50 AMcrafterix
05/06/2022, 6:20 AMwilliamdclt
05/06/2022, 8:42 AMExpandPermissionTree
endpoint. I'd expect it to return all subjects who have the given permission on the given resource, but that doesn't seem to be the case: it returns a tree of set operations where the leaves are the subjects. That means that if I want to know which subject actually has the permission, I'd need to apply the operations myself?
For example:
$ zed permission expand caregivers_csv_upload agency:63ed361f-a0b7-41fc-9c4b-143e0fe792ad
agency:63ed361f-a0b7-41fc-9c4b-143e0fe792ad->caregivers_csv_upload
βββ exclusion
βββ agency:63ed361f-a0b7-41fc-9c4b-143e0fe792ad->account_manager
β βββ user:f71c18fc-fd2f-4a96-ab65-020cb00670c5
β βββ user:f9ed57f2-c881-4c3c-9fd5-f67043de3118
β βββ user:fdf84719-e48f-4637-b5c4-2efa32948602
βββ agency:63ed361f-a0b7-41fc-9c4b-143e0fe792ad->flag_rostering_integration
βββ user:*
There's an exclusion operation with user:*
so I'd expect SpiceDB to tell me that 0 subjects have this permission. But nothing in the ExpandPermissionTree response seems to contain this information. Am I missing something?crafterix
05/06/2022, 9:01 AMwilliamdclt
05/06/2022, 9:06 AM