CRITICAL story-supabase-backend-core-global-admin-001 5 pts
5
Story Points
Critical
Priority
Supabase Backend Core
Feature

User Story

As a Global Administrator
I want to configure and manage Supabase project settings across dev, staging, and production environments
So that So that each environment is correctly isolated, preventing dev data from contaminating production and enabling safe testing of migrations before release

Acceptance Criteria

  • Given a new environment is being provisioned, when the admin configures environment variables, then the Supabase client initializes with the correct project URL and anon key for that environment
  • Given the admin updates production credentials, when the app is deployed, then all database reads/writes route to the production Supabase project without cross-environment data leakage
  • Given dev, staging, and production environments exist, when the admin views configuration, then each environment shows distinct project IDs and connection strings
  • Given an incorrect environment variable is set, when the Supabase client initializes, then a clear configuration error is surfaced rather than a silent failure

Business Value

Environment isolation is foundational for GDPR compliance and data integrity. Without separate environments, a misconfigured deployment could expose production personal data (health records, location data, financial records) to developers or corrupt production data with test entries. This is non-negotiable for operating under Norway's data protection requirements.

Components