1
0
Fork 0
fahrPool/docs/superpowers
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
..
plans docs: fix RLS role-gating gaps found by automated security review 2026-07-05 11:18:58 +02:00
specs docs: add design spec for Auftragsverwaltung sub-project 2026-07-05 10:36:08 +02:00