user
01/11/2022, 8:48 PMfirefly
03/06/2022, 6:29 AMJoey
03/06/2022, 6:30 AMJoey
03/06/2022, 6:30 AMJoey
03/06/2022, 6:30 AMJoey
03/06/2022, 6:31 AMJoey
03/06/2022, 6:32 AMdefinition user {}
definition organization {
relation viewer: user
permission view_repos = viewer
}
definition repository {
relation org: organization
relation notallowed: user
permission view = org->view_repos - notallowed
}
Joey
03/06/2022, 6:32 AMnotallowed
relationJoey
03/06/2022, 6:32 AMJoey
03/06/2022, 6:33 AMview
permission "inherit" from the org, and have any other permissions (such as write
) be only granted to the creator
relation on the repositoryJoey
03/06/2022, 6:33 AMdefinition user {}
definition organization {
relation viewer: user
permission view_repos = viewer
}
definition repository {
relation org: organization
relation creator: user
permission write = creator
permission view = org->view_repos + creator
}
firefly
03/06/2022, 6:33 AMJoey
03/06/2022, 6:33 AMJoey
03/06/2022, 6:34 AMJoey
03/06/2022, 6:34 AMJoey
03/06/2022, 6:34 AMJoey
03/06/2022, 6:35 AMzed
tool (https://github.com/authzed/zed) to load schema, write relationships, etcJoey
03/06/2022, 6:36 AMzed import
supports taking a Playground URL too, so if you develop in the Playground, you can then directly load it into Authzed or SpiceDB that way toofirefly
03/06/2022, 6:37 AMJoey
03/06/2022, 6:38 AMJoey
03/06/2022, 6:38 AMJoey
03/06/2022, 6:38 AMfirefly
03/06/2022, 6:38 AMJoey
03/06/2022, 6:39 AMJoey
03/06/2022, 6:39 AMfirefly
03/06/2022, 6:39 AMJoey
03/06/2022, 6:39 AMfirefly
03/06/2022, 6:43 AMJoey
03/06/2022, 6:44 AMJoey
03/06/2022, 6:45 AM