Feat: move resource pools check to authz#1248
Conversation
c19e6d0 to
d4c7f78
Compare
Coverage Report for CI Build 24656849513Warning No base build found for commit Coverage: 86.387%Details
Uncovered Changes
Coverage RegressionsRequires a base build to compare against. How to fix this → Coverage Stats
💛 - Coveralls |
sgaist
left a comment
There was a problem hiding this comment.
I am no specialist of Authz but the code in itself looks good.
Just some minor things.
7dab40e to
378a7a0
Compare
olevski
left a comment
There was a problem hiding this comment.
Overarching comment the target is main can this go to a feature branch? Mainly because I think we should test the migration on a ci deployment we artificially put a lot of users into. And then see if the migration is quick enough. So for now we can merge into a feature branch and you can continue with your work and then when we merge the feature branch to main we do the test.
|
For example on renkulab.io we have a total of 598 resource pool member entries spread across 34 resource pools. We can use this info to test. |
84d72b3 to
f9f5b0b
Compare
leafty
left a comment
There was a problem hiding this comment.
Can we merge this into a feature branch? This code is not "usable" as is in main.
63522bf to
aa3ad41
Compare
* feat: add ResourcePool and membership types * feat: add ResourcePool as a supported authorization resource * feat: add member and prohibited relationships * refactor: authz_change decorator for multiple APIUser args * fix: session commit responsibility to session creator * refactor: move authorization logic to authz schema * feat: wire Authz into dependency graphs * feat: update blueprint func for single rp * fix: use proper non admin user in visibility tests * feat: visibility toggle test for rp * feat: update test utils setup for rp_repo with authz * refactor: update functions for authz usage * feat: new authorization tests * fix: use NonCachingAuthz in nb_config for tests * squashme: remove debug print * squashme: fix comments * fix: edge case for noop visibility change * refactor: authz consistency * fix: call spicedb only on authz updates * chore: fix error message * refactor: DRY some stuff * squashme: remove commented out code * fix: await resource pool creation with authz
|
You can access the deployment of this PR at https://renku-ci-ds-1248.dev.renku.ch |
15bfb56
into
Feat/Move-Resource-Pool-Authorization-To-Authzed
|
Tearing down the temporary RenkuLab deployment for this PR. |
Summary
This PR implements ResourcePool authorization in SpiceDB/Authzed, enabling centralized access control while maintaining feature parity with the DB-based implementation.
What Changed
Authzed Schema (v9):
Supporting Code:
Migration:
Tests
zed validateconfirms v9 schema correctnessDeferred Items
PR stack
/deploy renku=salimkayal-add-AUTHZ-config-to-k8s-watcher