1
0
Fork 0
Go to file
Jonny d03052ca73 test: cover profiles UPDATE RLS boundary and privilege-escalation trigger
Final review found the RLS test suite only covered SELECT, never the
actual security-relevant path: a non-admin changing a profile's role.
Add pgTAP coverage for a fahrer's own-role UPDATE being blocked by RLS
(0 rows affected, role unchanged), the positive admin-can-update-others
case, and a regression test for handle_new_user() ignoring
raw_user_meta_data.role so a future edit reintroducing that read fails
loudly instead of quietly reopening the escalation hole.

Also add a migration giving the admin UPDATE policy an explicit
WITH CHECK (behavior unchanged, since Postgres already falls back to
USING for UPDATE policies without one) to document the pattern for
future sub-projects copying this RLS setup.
2026-07-05 00:45:27 +02:00
docs/superpowers docs: correct plan for auth schema lockdown and missing grants 2026-07-04 12:00:44 +02:00
scripts fix: add reproducible render step for kong.yml and 99-roles.sql templates 2026-07-04 15:24:49 +02:00
supabase test: cover profiles UPDATE RLS boundary and privilege-escalation trigger 2026-07-05 00:45:27 +02:00
volumes feat: add self-hosted Supabase stack via Docker Compose 2026-07-04 12:35:08 +02:00
web fix: fall back to NEXT_PUBLIC_SUPABASE_URL when SUPABASE_INTERNAL_URL is unset 2026-07-05 00:29:35 +02:00
.env.example fix: add reproducible render step for kong.yml and 99-roles.sql templates 2026-07-04 15:24:49 +02:00
.gitignore feat: add self-hosted Supabase stack via Docker Compose 2026-07-04 12:35:08 +02:00
CLAUDE.md chore: initial commit - requirements and foundation design spec 2026-07-04 10:27:07 +02:00
docker-compose.yaml feat: containerize the Next.js app and wire it into docker-compose 2026-07-05 00:25:01 +02:00