Skip to content

Grant admin access to fmmusic821@gmail.com via email allowlist#63

Merged
demilt11-lab merged 1 commit into
mainfrom
claude/admin-access-fmmusic821-dl0pwg
Jul 22, 2026
Merged

Grant admin access to fmmusic821@gmail.com via email allowlist#63
demilt11-lab merged 1 commit into
mainfrom
claude/admin-access-fmmusic821-dl0pwg

Conversation

@demilt11-lab

Copy link
Copy Markdown
Owner

Summary

Grants full admin access to fmmusic821@gmail.com by adding the email to public.admin_email_allowlist, mirroring the existing founding-admin pattern.

Admin access in this project is tied to the email, not a specific auth.users id, so this grant:

  • auto-grants the admin role on sign-in via any provider (handle_new_user resolves the allowlist on account creation), and
  • survives project resets and provider switches (e.g. email/password → Google), which mint a fresh user id that would otherwise drop a direct role grant.

The allowlist table, RLS, auto-grant trigger, and role audit trigger already exist — this migration only seeds the new email and backfills the grant for the account if it exists. It is idempotent (ON CONFLICT DO NOTHING).

Changes

  • supabase/migrations/20260722170000_grant_fmmusic821_admin.sql — insert fmmusic821@gmail.com into the admin email allowlist + idempotent admin-role backfill.

Scope note

This is full admin — it unlocks all product features (search, teams, catalog, AI, recommendations, reports) and the /admin/* operational backend (role management, user signups, entity merge/split, API clients, audit logs, data-quality, health, streaming rates, governance RPCs). It does not restrict the backend.

Rollout

The equivalent grant has already been applied to the live Supabase project, so access is active. Merging this deploys the migration through the deploy-supabase Action for a reproducible, tracked change; the idempotent SQL makes re-application a no-op.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Eoi7McdsE29sJJthcn6wpY


Generated by Claude Code

Adds fmmusic821@gmail.com to public.admin_email_allowlist, mirroring the
founding-admin pattern. Admin access is tied to the email, so the role is
auto-granted on sign-in (any provider) and survives resets/provider switches.
Includes an idempotent backfill for the account if it already exists.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Eoi7McdsE29sJJthcn6wpY
@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
publisting Ready Ready Preview, Comment Jul 22, 2026 4:14pm

Request Review

@demilt11-lab
demilt11-lab merged commit 15eb527 into main Jul 22, 2026
6 of 7 checks passed
@supabase

supabase Bot commented Jul 22, 2026

Copy link
Copy Markdown

Updates to Preview Branch (claude/admin-access-fmmusic821-dl0pwg) ↗︎

Deployments Status Updated
Database ⚠️ Wed, 22 Jul 2026 16:16:52 UTC
Services ⚠️ Wed, 22 Jul 2026 16:16:52 UTC
APIs ⚠️ Wed, 22 Jul 2026 16:16:52 UTC

Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.

Tasks Status Updated
Configurations Wed, 22 Jul 2026 16:17:22 UTC
Migrations ⏸️ Wed, 22 Jul 2026 16:14:50 UTC
Seeding ⏸️ Wed, 22 Jul 2026 16:14:50 UTC
Edge Functions ⏸️ Wed, 22 Jul 2026 16:14:50 UTC

❌ Branch Error • Wed, 22 Jul 2026 16:17:22 UTC

unexpected status 400: {"message":"Resource has been removed"}
unexpected status 400: {"message":"Resource has been removed"}
unexpected status 400: {"message":"Resource has been removed"}
unexpected status 400: {"message":"Resource has been removed"}

⚠️ Warning — Service health check failed


View logs for this Workflow Run ↗︎.
Learn more about Supabase for Git ↗︎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants