Remove hardcoded supabase_admin password from init.sql
Build and Push Docker Image / build (push) Successful in 1m48s Details

The Supabase postgres image sets these passwords based on POSTGRES_PASSWORD.
Hardcoding 'postgres' caused the image's migrate.sh to fail.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Matt 2026-01-26 12:20:46 +01:00
parent c8efc3859c
commit 0e93961bb9
1 changed files with 2 additions and 3 deletions

View File

@ -53,9 +53,8 @@ GRANT authenticated TO authenticator;
GRANT service_role TO authenticator; GRANT service_role TO authenticator;
GRANT supabase_admin TO postgres; GRANT supabase_admin TO postgres;
-- Set passwords (use the same as postgres password from env) -- Note: Passwords for supabase_admin and authenticator are set by the Supabase image
ALTER ROLE supabase_admin WITH PASSWORD 'postgres'; -- based on POSTGRES_PASSWORD environment variable. Don't override them here.
ALTER ROLE authenticator WITH PASSWORD 'postgres';
-- Create schemas -- Create schemas
CREATE SCHEMA IF NOT EXISTS auth AUTHORIZATION supabase_auth_admin; CREATE SCHEMA IF NOT EXISTS auth AUTHORIZATION supabase_auth_admin;