1
0
Fork 0
fahrPool/docs/superpowers/plans
Jonny b576c4e3b1 docs: fix RLS role-gating gaps found by automated security review
The fahrer UPDATE policy on auftraege, the fahrer INSERT policy on
auftrag_fotos, and the storage upload policy all lacked an explicit
public.user_role() = 'fahrer' predicate, so any authenticated role
(including the default readonly signup role) could exploit the
status='offen' clause to self-assign open orders. Also adds identity
binding (erstellt_von/uploaded_by = auth.uid()) on inserts, and a
column-lockdown check in Task 4's trigger so a fahrer can't smuggle
changes to abholort_id/zielort_id/fahrzeug_id/erstellt_von/
vorgaenger_auftrag_id into an otherwise-legitimate update.
2026-07-05 11:18:58 +02:00
..
2026-07-04-fundament-auth-rollen.md docs: correct plan for auth schema lockdown and missing grants 2026-07-04 12:00:44 +02:00
2026-07-05-auftragsverwaltung.md docs: fix RLS role-gating gaps found by automated security review 2026-07-05 11:18:58 +02:00