mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 03:15:06 +03:00
Adds a dedicated ?user= filter that scopes logs to a single user across the
sources that can be positively attributed to them:
- auth_logs via auth_event.actor_id / traits.user_email (+ raw event text,
so failed signups with no auth.users row still match on their email)
- postgres_logs when the id appears verbatim in the error text
edge/storage/realtime carry no per-user field and are auto-excluded while the
filter is active — never guessed via IP or timestamp proximity.
- ?user= is a dedicated search-param key (not the eq/neq filter array) since it
gates sources rather than filtering one column; consumed in
applySearchParamsFilter, composes with existing filters, inert when unset.
- Sidebar input (email or id; email resolves to id on submit) + persistent
notice stating coverage is partial, with an empty-state hint that auth event
logs may not be enabled. Reuses the identity-resolution queries.
- Inherits the otelUnifiedLogs endpoint/flag conditioning of the existing hooks.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>