-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config option for path to schema file
Add init mechanism that loads the schema and writes it Remove bootstrap from test container Some tests passing
- Loading branch information
Showing
10 changed files
with
149 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
definition rbac/user {} | ||
|
||
definition rbac/group { | ||
relation member: rbac/user | rbac/group#member | ||
} | ||
|
||
definition rbac/role { | ||
relation view_the_thing: rbac/user:* | ||
} | ||
|
||
definition rbac/role_binding { | ||
relation subject : rbac/user | rbac/group#member | ||
relation granted: rbac/role | ||
|
||
permission view_the_thing = subject & granted->view_the_thing | ||
} | ||
|
||
definition rbac/workspace { | ||
relation parent: rbac/workspace | ||
relation user_grant: rbac/role_binding | ||
|
||
permission view_the_thing = user_grant->view_the_thing | ||
} | ||
|
||
definition rbac/thing { | ||
relation workspace: rbac/workspace | ||
|
||
permission view = workspace->view_the_thing | ||
} |
Oops, something went wrong.