-
Notifications
You must be signed in to change notification settings - Fork 13k
feat: ABAC #37091
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
feat: ABAC #37091
Changes from all commits
Commits
Show all changes
125 commits
Select commit
Hold shift + click to select a range
8a2a37e
abac license module
KevLehman 518e5b9
abac global enable setting
KevLehman eab8a9b
abac package and endpoints
KevLehman dc3741f
abac model
KevLehman 7105d52
permission
KevLehman 02f6aca
lint
KevLehman 9e18534
abac flag
KevLehman b3fab5f
model
KevLehman 852afdf
abac service
KevLehman 40225c2
translations
KevLehman ff00949
tests
KevLehman 8e84b6c
attributes on room
KevLehman 277a2e4
create an abac attribute
KevLehman c6af020
Tests for other function
KevLehman 16d01e6
list attirbutes endpoint
KevLehman 5050a1b
update abac attributes
KevLehman d784d93
remove abac toggle endpoint
KevLehman 25ae969
update abac attribute or values
KevLehman 6f35def
delete
KevLehman c472c4d
move check to model
KevLehman eb6c45d
check setting
KevLehman 754a7ac
delete
KevLehman 114e6a0
attribute by id
KevLehman 6eaf317
check if attribute is in use by key
KevLehman 754bed2
abac set attributes
KevLehman 60070df
remove comments
KevLehman 2b280f9
update by key
KevLehman 73f4707
tests
KevLehman bf29c61
remove abac attr
KevLehman 5b4f686
endpoints
KevLehman b919fa7
minor changes to index
KevLehman 1aa331b
smol issues with request validators
KevLehman 2577b47
schemas again
KevLehman 114742e
endpoints
KevLehman cc70695
void insted of error
KevLehman 766cbd7
fix index usage
KevLehman 777f6c9
tests
KevLehman 27ad8b2
delete all attributes from room
KevLehman 25eaf33
ts
KevLehman fe03e23
test'
KevLehman ef11083
api
KevLehman 76b52c4
ts
KevLehman 9d1dd36
test
KevLehman 2d60839
test
KevLehman 21fb934
svc
KevLehman 5121bd9
test
KevLehman 152aa27
?
KevLehman 5dac393
I'm dum dum
KevLehman 0cd92a9
rollback this change
KevLehman f272b44
fix: Pagination not working on `abac/attributes` endpoint (#37189)
KevLehman 31e87c3
fix: `abac/attributes` endpoint filtering (#37225)
KevLehman c4dea9a
chore: Remove unused expect-error directives (#37234)
KevLehman 14d059b
chore: Replace findOne with findOneById and use removeById (#37240)
KevLehman 26e7ad7
fix: FindOneById used where key was provided
KevLehman e6a602b
fix: Unit tests
KevLehman acf89ea
restore
KevLehman b6769c7
feat: Remove users from room when new attributes are added to the roo…
KevLehman 4591ab9
chore: Prevent default room & team channels from becoming abac manage…
KevLehman d92dea1
feat: Prevent LDAP sync from adding users to abac rooms/teams (#37299)
KevLehman ac010a6
chore: Unset attributes instead of leaving empty array (#37301)
KevLehman f10bafe
chore: Re-route endpoints from `abac/room/*` to `abac/rooms/*`
tassoevan 070b66c
feat: Prevent ABAC managed rooms becoming public while ABAC is active…
KevLehman c4ce543
fix: tests using room instead of rooms
KevLehman 73289b1
feat: Prevent invite links from being generated on abac rooms (#37325)
KevLehman ca6d156
feat: Register abac service inside authz (#37333)
KevLehman ea53216
feat: Update add/join methods to use abac rules (#37339)
KevLehman f2d0032
feat: add ABAC admin settings (#37139)
MartinSchoeler e5be967
fix: GET/DELETE abac endpoints not allowing actions with setting disa…
KevLehman e49e9a8
feat: Access Checks for ABAC managed rooms (#37423)
KevLehman 16464fa
feat: New setting for showing ABAC attributes in rooms (#37465)
KevLehman c290776
fix type
KevLehman 76a5d7d
test: ABAC tests unit (#37495)
KevLehman fc2bef3
feat: ABAC Attributes LDAP integration (#37379)
KevLehman 7fdf37b
feat: ABAC Rooms attributes tab (#37408)
MartinSchoeler 98660a4
feat: New endpoint for showing ABAC managed rooms (#37536)
KevLehman a1b3382
feat: Force LDAP sync for specific users via endpoint (#37542)
KevLehman de02c9f
feat: Remove users from rooms when subject attributes no longer match…
KevLehman b2d25d2
chore: Run ABAC LDAP sync on license/setting changes (#37562)
KevLehman 5cb1f48
fix: Add `abacAttributes` to adminRooms projection (#37576)
KevLehman b34e62d
chore: fix types
KevLehman eb1f71f
fix: useHasLicenseModule return change (#37596)
MartinSchoeler 080feb5
chore: ABAC statistics (#37606)
KevLehman 8e82114
feat: Audit ABAC actions (#37565)
KevLehman 1ca9399
fix: Actor type
KevLehman 17fadf4
test: ABAC + LDAP (#37615)
KevLehman c3c14e6
chore: Add name prop to object's audit (#37655)
KevLehman 5c16351
test: Fix abac tests (#37658)
KevLehman 56583bb
move helpers to helper file
KevLehman 789c1b2
chore: Action performed audit log to happen after action
KevLehman 96a16e4
fix: broken contextualbar export (#37685)
MartinSchoeler e23eb0e
feat: ABAC Logs Tab (#37633)
MartinSchoeler 4f72d65
feat: admin ABAC rooms tab (#37557)
MartinSchoeler ed46fda
chore: update link values for ABAC (#37525)
MartinSchoeler 8559a73
chore: ABAC QoL (#37676)
KevLehman a647992
chore: Override model index
KevLehman 56d6d75
fix: properly filter abacAttributes from user enpoint return
MartinSchoeler 58b5fcd
test: snapshot fix
MartinSchoeler 588db8d
chore: Reorganize ABAC UI folders and files (#37700)
MartinSchoeler 8140430
fix: Missing abacAttributes from login call
KevLehman b811628
fix: Prevent invite when license/setting is disabled and room is abac…
KevLehman d830de3
fix: Changes because of conflict resolution because of a refactor
KevLehman b90a407
refactor: More polish (#37736)
KevLehman eae2823
regression(ABAC): Display correct values on user info (#37748)
MartinSchoeler 7aded97
regression(ABAC): Wrong default date range in ABAC Logs page (#37749)
MartinSchoeler 526ba34
test: Restructure subject attr tests
KevLehman 77c2b3b
fix: Coderabbit review (#37774)
KevLehman 64ab36f
fix: Cannot add more than 10 attribute values when creating/udpating …
KevLehman 565c2bf
regression(ABAC): missing header icon (#37779)
MartinSchoeler 0d840ee
fix: Remove ui limitation of saving 10 attribute values
KevLehman c816655
fix: Prevent submit when form is just opened and has no changes (#37781)
KevLehman 5fc2deb
regression(ABAC): Missing settings from abac -> Settings tab (#37766)
MartinSchoeler d2693a1
regression: ABAC table & form fixes (#37782)
MartinSchoeler c9c6aa3
chore: Coderabbit review (#37814)
KevLehman 202176b
chore: use correct imports
MartinSchoeler 32baee0
regression: truncate logs page cells
MartinSchoeler 953f56a
regression: missing link on callout
MartinSchoeler 1d36359
fix: Prevent audit messages from reading abac rooms (#37820)
KevLehman 976a0e6
fix: Add audit log for subject attribute changes in AbacService
KevLehman ed96c2a
fix: RoomForm returning only private rooms and not teams (#37836)
KevLehman 3cd5393
chore(ABAC): refactor room form autocompletes (#37817)
MartinSchoeler 21e92d4
feat(ABAC): add new column to ABAC logs page (#37837)
MartinSchoeler 1479924
regression(ABAC): Settings not being saved in ABAC screen (#37838)
MartinSchoeler bd28882
fix: Wrong invite error message (#37851)
KevLehman 94e3da0
fix: Add `name` to `object` being audited on access grant (#37856)
KevLehman 0f3d776
chore: merge fixes
MartinSchoeler 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| --- | ||
| '@rocket.chat/authorization-service': minor | ||
| '@rocket.chat/core-services': minor | ||
| '@rocket.chat/message-types': minor | ||
| '@rocket.chat/model-typings': minor | ||
| '@rocket.chat/core-typings': minor | ||
| '@rocket.chat/apps-engine': minor | ||
| '@rocket.chat/abac': minor | ||
| '@rocket.chat/models': minor | ||
| '@rocket.chat/i18n': minor | ||
| '@rocket.chat/jwt': minor | ||
| '@rocket.chat/meteor': minor | ||
| --- | ||
|
|
||
| Adds Attribute Based Access Control (ABAC) for private channels & private teams. | ||
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
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.
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.
Uh oh!
There was an error while loading. Please reload this page.