user
11/26/2021, 7:24 PMuser
11/26/2021, 7:24 PMvroldanbet
11/26/2021, 7:25 PMvroldanbet
11/26/2021, 7:25 PMcjs
11/29/2021, 3:32 PMmember
check.
definition github/organization {
...
permission create_resource = membership
}
I'm looking at the user owned case, and want to limit creating resources owned by the user to the user only.
Is there a self
relationship available in the schema language? I'd like to be able to define:
definition github/user {
...
permission create_resource = self
And then have an assertion:
assertTrue:
- github/user:cjs#create_package@github/user:cjs
assertFalse:
- github/user:cjs#create_package@github/user:rando
The alternative is to define a container that can be owned by a user (or org) that holds the create_resource
permissions.Jake
11/29/2021, 3:33 PMnamespace
Jake
11/29/2021, 3:35 PMJake
11/29/2021, 3:35 PMcreate relationship("github/user:cjs", "self", "github/user:cjs")
Jake
11/29/2021, 3:35 PMcjs
11/29/2021, 3:38 PMnamespace
concept better. You're not creating a resource on the user, but in the user's namespace
.Jake
11/29/2021, 3:41 PMJake
11/29/2021, 3:43 PMcjs
11/29/2021, 3:48 PMbusiness
that owns several organizations
each being their own namespace. Unfortunately, that has flaws (i.e. ensuring membership & teams between orgs are identical).Jake
11/29/2021, 6:07 PMJake
11/29/2021, 6:07 PMSleipnir
12/01/2021, 4:49 PMJoey
12/01/2021, 4:59 PMSleipnir
12/01/2021, 5:00 PMJake
12/01/2021, 5:01 PMSleipnir
12/01/2021, 5:32 PMuser
12/01/2021, 5:33 PMSleipnir
12/01/2021, 5:34 PMJoey
12/01/2021, 5:34 PMSleipnir
12/01/2021, 5:34 PMSleipnir
12/01/2021, 5:34 PMJoey
12/01/2021, 5:35 PMSleipnir
12/01/2021, 5:35 PMJoey
12/01/2021, 5:35 PMSleipnir
12/01/2021, 5:39 PM