feat: add tenant rls policies

This commit is contained in:
Philipp
2026-06-10 16:09:47 +02:00
parent 571bde235c
commit a22c1a4171
4 changed files with 121 additions and 0 deletions
+6
View File
@@ -64,6 +64,11 @@ Arbeitsliste auf Basis von `proxmox-console-entwicklungsplan.md`. Die Entwurfsda
- [x] Tenant- und Profil-Referenzen gesetzt
- [x] Index auf `(tenant_id, created_at)` gesetzt
- [x] UPDATE/DELETE per Trigger blockiert
- [x] E2-T08: RLS-Policies
- [x] RLS auf tenant-bezogenen Tabellen aktiviert
- [x] Membership-basierte SELECT-Policies angelegt
- [x] Audit-Log auf owner/admin beschraenkt
- [x] Direkter Query als Nicht-Mitglied lokal verifiziert
## MVP-Backlog
@@ -109,3 +114,4 @@ Arbeitsliste auf Basis von `proxmox-console-entwicklungsplan.md`. Die Entwurfsda
- 2026-06-10: VMs-und-SSH-Keys-Migration `0005_vms_and_ssh_keys` angelegt und lokal gegen Supabase verifiziert.
- 2026-06-10: VMID-Allokator-Migration `0006_vmid_allocator` angelegt und mit 50 parallelen Reservierungen lokal gegen Supabase verifiziert.
- 2026-06-10: Audit-Log-Migration `0007_audit_log` angelegt und Append-only-Verhalten lokal gegen Supabase verifiziert.
- 2026-06-10: RLS-Migration `0008_rls_policies` angelegt und Mitglied/Nicht-Mitglied-Isolation lokal gegen Supabase verifiziert.