-
Notifications
You must be signed in to change notification settings - Fork 993
feat: Add RBAC package for managing user permissions #929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
ab61328
WIP: This is a massive WIP
Emyrk 03e4d0f
More info in the print
Emyrk 9981291
Fix all()
Emyrk 3ab32da
reduce the amount of memoery allocated
Emyrk e1d5893
Reuse a buffer
Emyrk 84a90f3
fix: use return size over size
Emyrk 1fac0d9
WIP: don't look at this
Emyrk 1e3aac0
WIP: 🍐 auth-> testdata, refactoring and restructuring
johnstcn e977e84
testdata -> authztest
johnstcn 00a7c3f
WIP: start work on SVO
johnstcn 1f04c01
reduce allocations for union sets
Emyrk fbf4db1
fix: Fix nil permissions as Strings()
Emyrk 4946897
chore: Make all permission variant levels
Emyrk 7e6cc66
First full draft of the authz authorize test
Emyrk a0017e5
Tally up failed tests
Emyrk 4b110b3
Change test pkg
Emyrk 65ef4e3
Use an interface for the object
Emyrk d294786
fix: make authztest.Objects return correct type
johnstcn c1f8945
refactor: rename consts {Read,Write,Modify,Delete}Action to Action$1
johnstcn 01f3d40
chore: Define object interface
Emyrk de7de6e
test: Unit test extra properties
Emyrk 4c86e44
Merge remote-tracking branch 'origin/stevenmasley/rbac' into stevenma…
Emyrk 30c6568
put back interface assertion
Emyrk a419a65
Fix some compile errors from merge
Emyrk bbd1c4c
test: Roles, sets, permissions, iterators
Emyrk def010f
Test string functions
Emyrk c4ee590
test: Unit test permission string
Emyrk 84e3ab9
Add A+ and A-
Emyrk c2eec18
Parallelize tests
Emyrk 5a2834a
fix code line in readme
Emyrk 913d141
Merge remote-tracking branch 'origin/main' into stevenmasley/rbac
Emyrk 2804b92
test: ParsePermissions from strings
Emyrk 5698938
use fmt over str builder for easier to read
Emyrk 75ed8ef
Linting
Emyrk b2db661
authz: README.md: update table formatting
johnstcn 26ef1e6
Make action CRUD
Emyrk 19aba30
LevelID -> OrganizationID
Emyrk ceee9cd
feat: authztest: categorize test failures by test name
johnstcn ee8bf04
fixup! feat: authztest: categorize test failures by test name
johnstcn 44c02a1
chore: add documentation for authz and authztest
johnstcn dfb9ad1
fixup! chore: add documentation for authz and authztest
johnstcn e482d2c
chore: more authz/authztest docs
johnstcn a4e038f
Remove underscore from test names
Emyrk 9918c16
zObject does not need exported fields
Emyrk 4cf4808
checkpoint: crowd programming: define and simplify top-level API
johnstcn 359a04d
Add tabled tests for authz
Emyrk 22cf0cc
fix: made roles named and now they span all levels
johnstcn c51ddd1
fixup! fix: made roles named and now they span all levels
johnstcn 891e442
fixup! fixup! fix: made roles named and now they span all levels
johnstcn ad048dd
vscode is illiterate
johnstcn bb28930
fixup! vscode is illiterate
johnstcn 2e23a34
Remove Org & Owner obj interfaces
Emyrk 13466e1
Show a nice builder syntax
Emyrk 3ac2eaa
Add more tabled tests
Emyrk c7dc715
fixup! Add more tabled tests
Emyrk f5d95ef
correct comments
Emyrk 0868301
fixup! correct comments
Emyrk 512c09e
Address PR comments
Emyrk d9f761d
Drop unused resources & roles
Emyrk 81ca08a
Rename chaining functions
Emyrk fced411
Rename OrgOwner -> OrgID
Emyrk f620ebf
feat: Add rego policy implementation
Emyrk 07951a7
Merge remote-tracking branch 'origin/main' into cj/rbac_table_driven
Emyrk 690d41d
Update go mod with opa
Emyrk fae3314
Go mod tidy
Emyrk 856a933
Add rego comments
Emyrk e048104
Use cached rego query
Emyrk adae379
Correct user-deny perm in test
Emyrk 0e7f9fa
tabs to spaces
Emyrk b1c7df4
Rename package to rbac
Emyrk 35574ad
run golangci-lint and goimports
johnstcn 8a16947
authz_test.go: log internal error
johnstcn 2969fc1
fixup! run golangci-lint and goimports
johnstcn b22b723
to-done
johnstcn c1423d4
Merge remote-tracking branch 'origin/main' into cj/rbac_table_driven
johnstcn c2b1dde
Remove unused fields
Emyrk cfdd2cb
Add some comments to rego
Emyrk 5c113a0
Move Authorize param order
Emyrk 44a7679
Drop resources.go file
Emyrk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Rename OrgOwner -> OrgID
- Loading branch information
commit fced411a51a4831d252c47c93801680f4332564c
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be worth linking the official RBAC specification for the naming on this.
Object
on the surface level confused me until I heard it's directly associated with RBAC.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I doubt there is an official RBAC spec. Can we just link to the README in the package? The first line in
Overview
is:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough. Sure sure