Commit 814d1e6
authored
Feat: ResourcePool Authorization via Authzed/SpiceDB (#1266)
* Feat: move resource pools check to authz (#1248)
* feat: update schema for authzed
* feat(authz): add ResourcePool as a supported authorization resource
* feat(authz): add member and prohibited relationship types
* feat(db): add ResourcePool authz schema migration, copy membership
* chore(authz): update schema tests for resource pools
* feat(authz): add the USE Scope
* chore(tests): update the authorization tests for resource pools
* squashme: copy-paste artifact
* squashme: format
* refactor: use vars instead of magic strings
* fix: move migration head
* feat: add test for migration
* refactor: harmonize nomenclature
* Feat: authz resource pools feature parity (#1256)
* 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
* feat: support PROHIBITED role with bidirectional Relation mapping
* refactor: allow Member to represent non-group resources
* refactor: unify resource pool membership under single ResourceType
* refactor: rename default resource pool create function
* refactor: use TypeVar for resource_id1 parent ad7bb15 commit 814d1e6
18 files changed
Lines changed: 1475 additions & 160 deletions
File tree
- bases/renku_data_services
- data_api
- k8s_cache
- components/renku_data_services
- authz
- base_models
- crc
- migrations/versions
- notebooks/config
- test
- bases/renku_data_services/data_api
- components/renku_data_services/authz
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
66 | | - | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | | - | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
329 | 333 | | |
330 | | - | |
331 | 334 | | |
332 | 335 | | |
333 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| 97 | + | |
94 | 98 | | |
95 | 99 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
41 | 49 | | |
42 | | - | |
| 50 | + | |
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
| |||
0 commit comments