-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rbac): csv updates no longer require server restarts (#1171)
* fix(rbac): csv updates no longer require server restarts * fix(rbac): address some of the sonarcloud issues * fix(rbac): fix build error * fix(rbac): address review suggestions * fix(rbac): make reloading configurable
- Loading branch information
1 parent
219aaa4
commit ed6fe65
Showing
18 changed files
with
1,618 additions
and
266 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
3 changes: 3 additions & 0 deletions
3
plugins/rbac-backend/src/__fixtures__/data/invalid-csv/duplicate-policies-actions.csv
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,3 @@ | ||
p, role:default/catalog-writer, catalog.entity.create, use, allow | ||
|
||
p, role:default/catalog-writer, catalog.entity.create, use, deny |
9 changes: 9 additions & 0 deletions
9
plugins/rbac-backend/src/__fixtures__/data/invalid-csv/duplicate-policy.csv
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,9 @@ | ||
g, user:default/guest, role:default/catalog-deleter | ||
g, user:default/guest, role:default/catalog-deleter | ||
|
||
g, user:default/guest, role:default/catalog-updater | ||
|
||
p, role:default/catalog-writer, catalog.entity.create, use, allow | ||
p, role:default/catalog-writer, catalog.entity.create, use, allow | ||
|
||
p, role:default/catalog-writer, catalog-entity, delete, allow |
1 change: 1 addition & 0 deletions
1
plugins/rbac-backend/src/__fixtures__/data/invalid-csv/entityref-policy.csv
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 @@ | ||
g, user:default/, role:default/catalog-deleter |
1 change: 1 addition & 0 deletions
1
plugins/rbac-backend/src/__fixtures__/data/invalid-csv/permission-policy.csv
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 @@ | ||
p, role:default/, catalog.entity.create, use, allow |
1 change: 1 addition & 0 deletions
1
plugins/rbac-backend/src/__fixtures__/data/invalid-csv/role-entityref-policy.csv
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 @@ | ||
g, user:default/test, role:default/ |
12 changes: 12 additions & 0 deletions
12
plugins/rbac-backend/src/__fixtures__/data/valid-csv/rbac-policy.csv
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,12 @@ | ||
g, user:default/guest, role:default/catalog-writer | ||
g, user:default/guest, role:default/catalog-reader | ||
g, user:default/guest, role:default/catalog-deleter | ||
|
||
p, role:default/catalog-writer, catalog-entity, update, allow | ||
p, role:default/catalog-writer, catalog-entity, read, allow | ||
p, role:default/catalog-writer, catalog.entity.create, use, allow | ||
p, role:default/catalog-deleter, catalog-entity, delete, deny | ||
|
||
p, role:default/known_role, test.resource.deny, use, allow | ||
|
||
g, user:default/known_user, role:default/known_role |
10 changes: 10 additions & 0 deletions
10
plugins/rbac-backend/src/__fixtures__/data/valid-csv/updated-rbac-policy.csv
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,10 @@ | ||
g, user:default/guest, role:default/catalog-writer | ||
g, user:default/guest, role:default/catalog-updater | ||
|
||
g, user:default/guest, role:default/catalog-tester | ||
|
||
p, role:default/catalog-writer, catalog-entity, update, allow | ||
p, role:default/catalog-writer, catalog.entity.create, use, deny | ||
p, role:default/catalog-deleter, catalog-entity, delete, allow | ||
|
||
p, role:default/catalog-writer, catalog.entity.delete, delete, allow |
Oops, something went wrong.