-
Notifications
You must be signed in to change notification settings - Fork 881
feat: Rbac more coderd endpoints, unit test to confirm #1437
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
30 commits
Select commit
Hold shift + click to select a range
bed0f8f
feat: Enforce authorize call on all endpoints
Emyrk af6dc5f
Add more endpoints to the unit test
Emyrk 01b2c94
Merge remote-tracking branch 'origin/main' into stevenmasley/rbac_end…
Emyrk be5b0b3
Rbac users endpoints
Emyrk 970e345
Make test pass by skipping missed endpoints
Emyrk 945e9fa
Fix broken tests
Emyrk fdfef88
Import order
Emyrk 89a3678
PR comment fixes
Emyrk 29da9aa
Merge remote-tracking branch 'origin/main' into stevenmasley/rbac_end…
Emyrk 63727e0
omit another endpoint
Emyrk 96a5727
Cleanup comments
Emyrk 4b6c9b0
Do not leak if an organization name exists
Emyrk cd2fda7
Update comment
Emyrk 62ec87e
feat: Implement authorize for each endpoint
Emyrk 452c72d
Authorize per endpoint
Emyrk 307f6c0
Merge remote-tracking branch 'origin/main' into stevenmasley/rbac_end…
Emyrk 32af1e6
feat: Move all authorize calls into each handler
Emyrk 28a099f
Delete unused code
Emyrk ff7bd81
feat: Add some perms to users
Emyrk d123b9f
Drop comment
Emyrk 186eb5f
Fix 401 -> 403
Emyrk 5d32d9d
Fix using User over UserData
Emyrk 301d42a
Rename UserRole to RoleAssignment
Emyrk a989224
Refactor workspacesByUser
Emyrk ed9be78
Merge remote-tracking branch 'origin/main' into stevenmasley/rbac_end…
Emyrk 1047391
Fix some routes
Emyrk 7ad069e
Drop update User auth check from assign roles
Emyrk e68fdbf
Correct unit tests
Emyrk 1a4e7e1
Unit tests use 403 vs 401
Emyrk f250fbe
401 -> 403 in unit test
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
Drop comment
- Loading branch information
commit d123b9fafe42ebe65b19c82cc4cefd8ec09de4de
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
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.
in
object.go
it says read permission on a user means reading all their settings (emphasis mine), which I'm uncomfortable with granting to every user on a cluster.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 updated the comment. I made 2 resources
ResourceUserData
andResourceUser
.ResourceUser
is just the columns in theusers
table now.ResourceUserData
is everything else: gitssh keys, profile, etc.