Remove hardcoded supabase_admin password from init.sql
Build and Push Docker Image / build (push) Successful in 1m48s
Details
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:
parent
c8efc3859c
commit
0e93961bb9
|
|
@ -53,9 +53,8 @@ GRANT authenticated TO authenticator;
|
|||
GRANT service_role TO authenticator;
|
||||
GRANT supabase_admin TO postgres;
|
||||
|
||||
-- Set passwords (use the same as postgres password from env)
|
||||
ALTER ROLE supabase_admin WITH PASSWORD 'postgres';
|
||||
ALTER ROLE authenticator WITH PASSWORD 'postgres';
|
||||
-- Note: Passwords for supabase_admin and authenticator are set by the Supabase image
|
||||
-- based on POSTGRES_PASSWORD environment variable. Don't override them here.
|
||||
|
||||
-- Create schemas
|
||||
CREATE SCHEMA IF NOT EXISTS auth AUTHORIZATION supabase_auth_admin;
|
||||
|
|
|
|||
Loading…
Reference in New Issue