Skip to content

Commit

Permalink
feat(rbac): implement a file watcher for csv reloads (janus-idp#1587)
Browse files Browse the repository at this point in the history
* feat(rbac): implement a file watcher for csv reloads

* feat(rbac): minor fixes

* feat(rbac): minor fixes

* feat(rbac): update to use new auth backend service

* fix(rbac): fix the error handling for the RBAC file watcher

Signed-off-by: Oleksandr Andriienko <[email protected]>

---------

Signed-off-by: Oleksandr Andriienko <[email protected]>
Co-authored-by: Oleksandr Andriienko <[email protected]>
  • Loading branch information
PatAKnight and AndrienkoAleksandr authored May 14, 2024
1 parent 7d9ee11 commit 62fcafc
Show file tree
Hide file tree
Showing 21 changed files with 1,063 additions and 1,508 deletions.
2 changes: 2 additions & 0 deletions plugins/rbac-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"@janus-idp/backstage-plugin-rbac-common": "1.4.2",
"@janus-idp/backstage-plugin-rbac-node": "1.1.1",
"casbin": "^5.27.1",
"chokidar": "^3.6.0",
"csv-parse": "^5.5.5",
"express": "^4.18.2",
"express-promise-router": "^4.1.1",
"knex": "^3.0.0",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ 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

p, role:default/duplication-effect, catalog-entity, update, allow
p, role:default/duplication-effect, catalog-entity, update, deny

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
g, user:default/, role:default/catalog-deleter
g, user:default/test, role:default/
p, role:default/, catalog.entity.create, use, allow
p, role:default/test, catalog.entity.create, delete, temp

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
g, user:default/guest, role:default/catalog-writer
p, role:default/catalog-writer, catalog-entity, update, allow

This file was deleted.

Loading

0 comments on commit 62fcafc

Please sign in to comment.