1
0
Fork 0
fahrPool/web
Jonny 59ddfe0b68 fix: service_role Grant fuer profiles-Lookup beim Username-Login + Fehlerbehandlung
Task 7's E2E-Verifikation von Task 6 fand: service_role hatte kein SELECT-Grant
auf public.profiles. Der Username-Login-Lookup in web/app/login/actions.ts laeuft
zwangslaeufig ueber den Service-Role-Client (RLS laesst anonyme profiles-Zugriffe
nicht zu), bekam aber "42501 permission denied for table profiles" -- BYPASSRLS
umgeht nur RLS, nicht die darunterliegende GRANT-Ebene. Der Fehler wurde zusaetzlich
komplett verschluckt (nur `data` destrukturiert, `error` ignoriert), sodass Login
per Benutzername fuer JEDEN Benutzernamen fehlschlug, aber mit der irrefuehrend
plausiblen generischen "nicht gefunden"-Meldung.

- Neue Migration grantet service_role SELECT (und nur SELECT) auf public.profiles.
- login() prueft jetzt den Lookup-Fehler und loggt ihn serverseitig, damit ein
  kuenftiger Regressionsfall (z.B. versehentlich entzogenes Grant) nicht wieder
  lautlos als "Benutzername nicht gefunden" maskiert wird. Die Nutzer-Antwort
  (generische LOGIN_FEHLER-Meldung) bleibt fuer beide Faelle byte-identisch, um
  die Anti-Enumeration-Eigenschaft nicht zu gefaehrden.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HCHRPWuV3bd37NJhW2NK6P
2026-08-21 01:15:24 +02:00
..
app fix: service_role Grant fuer profiles-Lookup beim Username-Login + Fehlerbehandlung 2026-08-21 01:15:24 +02:00
components feat: show and edit username in Nutzerverwaltung table 2026-08-21 00:49:04 +02:00
lib feat: allow login via username in addition to email 2026-08-21 00:53:40 +02:00
public docs: add design-system spec (mobile-first, Widmann-Branding) 2026-07-06 09:42:06 +02:00
.dockerignore feat: containerize the Next.js app and wire it into docker-compose 2026-07-05 00:25:01 +02:00
.env.local.example feat: add Supabase admin client and service-role-key wiring 2026-07-14 21:56:15 +02:00
.gitignore feat: add Supabase browser and server client helpers 2026-07-04 15:32:05 +02:00
Dockerfile feat: containerize the Next.js app and wire it into docker-compose 2026-07-05 00:25:01 +02:00
README.md docs: add root setup README and fix stale auth.user_role() reference 2026-07-05 00:45:39 +02:00
eslint.config.mjs chore: scaffold Next.js app with Vitest 2026-07-04 10:58:26 +02:00
middleware.ts feat: add auth middleware with session refresh and redirects 2026-07-04 15:57:41 +02:00
next.config.ts chore: scaffold Next.js app with Vitest 2026-07-04 10:58:26 +02:00
package-lock.json feat: add KanbanBoard with drag-and-drop for offen->zugewiesen (fahrer) and ->storniert 2026-07-08 07:36:38 +02:00
package.json feat: add KanbanBoard with drag-and-drop for offen->zugewiesen (fahrer) and ->storniert 2026-07-08 07:36:38 +02:00
postcss.config.mjs feat: add Tailwind CSS v4 with Widmann brand tokens and Inter font 2026-07-06 10:05:49 +02:00
tsconfig.json chore: scaffold Next.js app with Vitest 2026-07-04 10:58:26 +02:00
vitest.config.ts feat: add loadAuftragFotos query with sort/label logic and signed-URL origin rewrite 2026-08-18 12:49:44 +02:00

README.md

web

See the root README.md for the full setup sequence — this is a sub-directory of a larger self-hosted Supabase + Next.js project, not a standalone create-next-app.