Skip to content

Production auth blocked by orphan privacy_workflow_owner role #2458

Description

@twoimo

Summary

Production login/signup privacy onboarding is blocked by an orphan PostgreSQL role in Supabase project aqlcofblfxdrjhhdmarw.

Observed failures

  • 42501 permission denied for table privacy_audit_events
  • 42501 permission denied to set role "privacy_workflow_owner"
  • Role: privacy_workflow_owner (dashboard role ID 1788689)
  • Supabase migration workflow run: 30651920259
  • Support ticket: SU-436093

Impact

The audited policy publication and onboarding RPCs cannot complete. Existing authenticated users without a current privacy eligibility receipt remain fail-closed, so login returns to the sign-in surface. New password and Google signup cannot finish audited onboarding.

Required provider action

Supabase must execute the exact manifest-bound G016 migration from protected main commit 58b758470f9d07a5968548c809ecd9118fbda262, or restore the minimum ownership authority required to execute it once. Terminal state must preserve privacy_workflow_owner as NOLOGIN, NOINHERIT, NOBYPASSRLS, with zero role membership in both directions.

Prohibited mitigations

  • Do not delete or recreate the owner role.
  • Do not disable or weaken RLS/FORCE RLS.
  • Do not grant direct Data API access to retained privacy tables.
  • Do not insert privacy/consent rows directly.
  • Do not bypass auth eligibility in web code.

Execution plan

Code changes must converge all admission checks on the bounded live eligibility RPC receipt. The 16-account roster is classification-only: no age, guardian, policy, or marketing consent is fabricated. Ineligible accounts complete audited onboarding at next login.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions