2
Allow reason/description (and ban metadata) when banning a user so audit logs capture why
Source: supabase/supabase#54087 · opened by @nicoabie
Problem Admin ban is only: That sets auth.users.banned_until, but the audit entry is a generic user_modified with traits like user_id / user_email / user_phone. There is no way to pass why the user was banned (or unbanned), so compliance / support / security review can’t rely on Auth audit alone. Apps that need ban reason/description today keep a parallel history table (e.g. reason SELFBAN, MFA_VERIFICATION_ATTEMPTS_EXCEEDED, plus free-text description). That duplicates Auth’s ban state and can diverge if GoTrue succeeds and the app’s history write fails (or the reverse). Proposal Extend admin user update (ban path) with optional fields, for example: When ban_duration is set (including "none"), include in the audit log payload / traits at least: • ban_duration (or resolved banned_until) • ban_reason (if provided) • ban_description (if provided) Ideally also a clearer action than generic user_modified, e.g. user_banned / use…
No pledges yet. Be the first to back this.
Comments
Similar requests
logging UI requests
4 votes · 0 comments
Allow Supabase MCP to access logs
22 votes · 0 comments
Log drains need ability to customize logs sent to endpoints
1 vote · 0 comments
Logs Explorer / Studio Logs page auto-runs a query on load before filters are set, inflating Log Query usage
1 vote · 0 comments
Log drains
37 votes · 0 comments
No comments yet.