feat: add rbac policy matrix

This commit is contained in:
Philipp
2026-06-10 20:01:22 +02:00
parent 000c08dae7
commit 772ed6bf8d
4 changed files with 148 additions and 0 deletions
+6
View File
@@ -82,6 +82,11 @@ Arbeitsliste auf Basis von `proxmox-console-entwicklungsplan.md`. Die Entwurfsda
- [x] `profiles` wird idempotent per `insert ... on conflict` erstellt/aktualisiert
- [x] Profil-Sync-Middleware mit Unit-Tests angelegt
- [x] `/me` fuehrt Profil-Sync vor Handler-Ausfuehrung aus
- [x] E4-T02: Policy-/Permission-Funktion
- [x] Rollen und Aktionen zentral definiert
- [x] `Can(role, action)` angelegt
- [x] Tabellengetriebene Unit-Tests fuer Rollen/Aktionen angelegt
- [x] `cluster.manage` fuer Tenant-Rollen bewusst verweigert
## MVP-Backlog
@@ -131,3 +136,4 @@ Arbeitsliste auf Basis von `proxmox-console-entwicklungsplan.md`. Die Entwurfsda
- 2026-06-10: RLS-Advisor-Cleanup `0009_rls_advisor_cleanup` angelegt; alle Public-Tabellen haben RLS aktiv.
- 2026-06-10: JWT-Middleware-Tests fuer gueltige, abgelaufene, manipulierte und fehlende Tokens erfolgreich.
- 2026-06-10: Profil-Sync-Tests erfolgreich; lokaler `/me` Request legt genau ein `profiles`-Profil an.
- 2026-06-10: RBAC-Policy-Funktion mit tabellengetriebenen Rollen/Aktions-Tests erfolgreich.