-
Notifications
You must be signed in to change notification settings - Fork 927
feat: add template RBAC/groups #4235
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
Changes from all commits
Commits
Show all changes
161 commits
Select commit
Hold shift + click to select a range
5a47132
feat: Add ACL list support to rego objects
Emyrk 03f69bf
Add unit tests
Emyrk 91a358d
Rename ACL list
Emyrk 8f837b7
Flip rego json to key by user id
Emyrk 8378c9b
feat: add template ACL
sreya 54a0d13
add down migration
sreya 72ea751
remove unused file
sreya d533a16
undo insert templates query change
sreya f56fcf9
add patch endpoint tests
sreya f162694
Unit test use shadowed copied value
Emyrk ea25c08
Allow wildcards for ACL list
Emyrk 5a081eb
fix authorize bug
sreya 072b3e4
feat: Allow filter to accept objects of multiple types
Emyrk 205c36c
add support for private templates
sreya ba32928
go.mod
sreya 5c6344f
Merge branch 'main' into resource_acl_list
sreya ef15908
fix rbac merge woes
sreya 8ab5200
update migration
sreya c040e8e
fix workspaces_test
sreya 1f4ceee
remove sqlx
sreya 7cc71e1
fix audit
sreya 131d5ed
fix lint
sreya 8c3ee6a
Revert "remove sqlx"
sreya fe2af91
add test for list templates
sreya 0218c4e
fix error msg
sreya 6883106
fix sqlx woes
sreya 4fbd9be
fix lint
sreya c96a6ca
fix audit
sreya 57ba8b3
make gen
sreya c66d247
Merge branch 'main' into resource_acl_list
sreya 0af367a
fix merge woes
sreya f6c3f51
fix test template
sreya 6e72286
fmt
sreya 44bcbde
Add base layout
BrunoQuaresma 0f80beb
Add table
BrunoQuaresma d274d62
Add search user
BrunoQuaresma 943c76b
Add user role
BrunoQuaresma 7f7f1d3
Add update and delete
BrunoQuaresma 967a1a9
Fix summary view
BrunoQuaresma 1324991
Merge branch 'resource_acl_list' of github.com:coder/coder into resou…
BrunoQuaresma bd34d20
Merge branch 'resource_acl_list' of github.com:coder/coder into resou…
sreya 5982dd3
add schema for groups
sreya c759d99
add skeleton for group API routes
sreya 4169569
add create group endpoint
sreya a8943c9
add group httpmw
sreya 9fbc15f
add patch group endpoint
sreya baaf445
add test pkg for opening database
sreya 4f1a308
test: Add unit test to exercise roles query with multiple orgs
Emyrk f98c3b7
feat: Add group support to rego policy
Emyrk 930cdf6
Add query to include group fetch
Emyrk b26cd97
Fix auth query
Emyrk bf13f37
add patch group endpoint w/ tests
sreya eea0aee
add get group endpoint w/ tests
sreya d70911b
add groups endpoint with tests
sreya ba1953a
Add groups to rego objects
Emyrk 7544e37
fix: Group ACL list fixed
Emyrk ff9d968
add delete group endpoint
sreya 7f2de03
Merge branch 'groups' of github.com:coder/coder into groups
sreya 8cf12e9
Merge remote-tracking branch 'origin/main' into groups
Emyrk ea84bc6
Fix authorize calls for group endpoints
Emyrk f28156f
Merge remote-tracking branch 'origin/main' into groups
Emyrk 759bddf
Fix FE errors
BrunoQuaresma 0e2cb22
Fix migration name
BrunoQuaresma 41b79b6
Scopes broke ACL. Fixing unit tests.
Emyrk 7297c3c
fix: Fix acl list rego policy
Emyrk dc65257
Remove need to be in the org for the group to work in the rego
Emyrk d50a0c5
Add group ACL unit test
Emyrk 7375484
update uuid -> id
sreya d70664d
make gen
sreya 3dac95a
Add index page for groups
BrunoQuaresma 5ac06fb
Merge branch 'groups' of github.com:coder/coder into groups
BrunoQuaresma 2c4fd8d
Add create group page
BrunoQuaresma cb1464f
Remove filter's ability to filter multiple object types
Emyrk c2e1196
Merge remote-tracking branch 'origin/main' into groups
Emyrk afe328b
groups changes
sreya 85e05c3
Merge branch 'groups' of github.com:coder/coder into groups
BrunoQuaresma e0ea8ec
Add user auto complete component
BrunoQuaresma 82b1faf
add groups acl
sreya 6505039
Add member to the group
BrunoQuaresma 7e98ca8
Refactor loader
BrunoQuaresma 4bb1e5f
Add empty state
BrunoQuaresma cba7065
Remove members from group
BrunoQuaresma d6b7f42
Merge branch 'main' of github.com:coder/coder into groups
BrunoQuaresma 9dee125
Fix migrations
BrunoQuaresma 883b28c
Merge branch 'groups' of github.com:coder/coder into groups
sreya a27d364
Update autocomplete and update verbiage
BrunoQuaresma 11690bc
Adjust autocomplete height
BrunoQuaresma c18379e
Merge branch 'groups' of github.com:coder/coder into groups
sreya 53ff126
prevent duplicate group adds
sreya 5180608
Delete a group
BrunoQuaresma 7770498
Merge branch 'groups' of github.com:coder/coder into groups
BrunoQuaresma 9aa686b
Add group settings
BrunoQuaresma 5e956c1
Fix loader
BrunoQuaresma d08bd75
Add implied all_users to org members
Emyrk 876a7c7
Move groups to users page with tabs
BrunoQuaresma 9c9e9c0
Improve groups table
BrunoQuaresma 3ee20a3
add all users group
sreya 3ea5793
add endpoints for patching template groups
sreya fc4c275
Merge branch 'groups' of github.com:coder/coder into groups
sreya 6379c7b
make gen
sreya 6aa1712
Merge branch 'main' into groups
sreya b0fc388
fix tests
sreya 7d1ce8b
fix migration
sreya 200ea81
fix migration (again)
sreya 9f344fc
feat: move groups/template RBAC to enterprise folder (#4236)
sreya b763bc2
chore: update TemplateRole names (#4248)
sreya 0ba4465
add custom group access test (#4254)
sreya 9662a3b
refactor all users to behave the same as any other group (#4266)
sreya 58679e5
filter deleted/suspended users (#4271)
sreya 248a3f3
Update FE to use Template ACL and Groups (#4267)
BrunoQuaresma a0c8571
Merge branch 'main' of github.com:coder/coder into groups
BrunoQuaresma 08805b3
allow org members to read all groups (#4277)
sreya 845d81f
populate template acl group with members (#4279)
sreya 564928e
chore: Minor rego optimization by removing excessive queries (#4275)
Emyrk 38cce76
feat: Add resource_id option to authcheck (#4278)
Emyrk dac034f
Merge branch 'main' of github.com:coder/coder into groups
BrunoQuaresma a59138a
Add group for authcheck
Emyrk a50af85
chore: Update permissions (#4337)
BrunoQuaresma 993ee32
filter deleted/suspended users for groups (#4343)
sreya a52203d
rm extraneous filter (#4272)
sreya bfa35e3
merge main into groups (#4349)
sreya 1c461f7
add groups to license entitlements (#4345)
sreya c5ecbf4
omit all users from groups endpoint (#4350)
sreya f0f5a93
Add paywall into the entitlements
BrunoQuaresma efd1ed2
Merge remote-tracking branch 'origin/main' into groups
Emyrk cbaafca
Fix rego -> SQL in acl cases with string literals
Emyrk f20b783
Merge branch 'main' of github.com:coder/coder into groups
BrunoQuaresma cc2138d
Use rego to eval, not custom
Emyrk fd0b43a
Fix Navbar tests
BrunoQuaresma 5997317
Fix UsersPage test
BrunoQuaresma 0cf3784
Merge branch 'groups' of github.com:coder/coder into groups
BrunoQuaresma 7c76bc0
Fix Template tests
BrunoQuaresma b77eeaf
Regenerate types
BrunoQuaresma 0afc361
Remove type generation
BrunoQuaresma 461cb8a
Switch to NoACL config as those columns do not exist
Emyrk 620c384
Fix service extension
BrunoQuaresma e7f72af
Merge branch 'groups' of github.com:coder/coder into groups
BrunoQuaresma b920801
fix lint
sreya 9bfa415
add test for creating a forbidden template (#4371)
sreya 22db0d2
migrate existing templates (#4353)
sreya e0c90ef
Fix routes
BrunoQuaresma f0fd9a0
Add GroupsPage storybook
BrunoQuaresma 20670f1
Add CreateGroupPage stories
BrunoQuaresma 09c6771
Add Settings Group Page stories
BrunoQuaresma f8a7b7e
Add template permissions stories
BrunoQuaresma b86abcf
Fix FE
BrunoQuaresma 510287b
Fix repetitive results
BrunoQuaresma 21af86e
feat: Allow users to make files (#4423)
Emyrk 9e199d3
add test for template rbac admin pushing template version (#4438)
sreya b101ae7
merge main into groups (#4439)
sreya d715ea6
Revert "merge main into groups (#4439)"
sreya 413b6e1
merge main
sreya 85d0643
fix coderd/license
sreya 262bb45
fix license woes
sreya a5c6848
remove migration conflict
sreya a69c018
fix tests
sreya 1809d3e
fix merge conflict
sreya 21c078b
fix ts lint
sreya c8f6afd
make fmt
sreya ad02da0
delete old files
sreya 35aef1b
Fix types
BrunoQuaresma 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
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
Oops, something went wrong.
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.
Non-blocking: we could probably fetch by multiple IDs instead for performance. Not sure how frequently this case is hit though...