Skip to content

Added auto-generate secure passwords for Supabase template#1296

Closed
jorgepedro7 wants to merge 1 commit intoeasypanel-io:mainfrom
jorgepedro7:fix/supabase-auto-generate-passwords
Closed

Added auto-generate secure passwords for Supabase template#1296
jorgepedro7 wants to merge 1 commit intoeasypanel-io:mainfrom
jorgepedro7:fix/supabase-auto-generate-passwords

Conversation

@jorgepedro7
Copy link
Copy Markdown


Título: feat(supabase): auto-generate secure passwords on install

Descrição:

## Problem
The current Supabase template ships with hardcoded insecure default passwords 
(`this_password_is_insecure_and_should_be_updated`, `your-super-secret-and-long-postgres-password`, etc.) 
that require manual intervention after every install.

## Solution
- Added `postgresPassword`, `dashboardPassword` and `jwtSecret` fields with `generatePassword: true`
- All other secrets (SECRET_KEY_BASE, VAULT_ENC_KEY, PG_META_CRYPTO_KEY, LOGFLARE tokens, POOLER_TENANT_ID) are also auto-generated
- Updated instructions to reflect the new behavior

## Testing
Tested on a self-hosted VPS with Easypanel running the full Supabase stack.

- Add postgresPassword, dashboardPassword and jwtSecret fields with generatePassword
- Pass generated values as env vars to the compose stack
- Auto-generate SECRET_KEY_BASE, VAULT_ENC_KEY, PG_META_CRYPTO_KEY, LOGFLARE tokens and POOLER_TENANT_ID
- Update instructions to reflect new password behavior

Fixes the default insecure passwords that required manual intervention after install.
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 11, 2026

Deploy Preview for easypanel-templates ready!

Name Link
🔨 Latest commit 7e8c6c2
🔍 Latest deploy log https://app.netlify.com/projects/easypanel-templates/deploys/69b1c45f23f1670008ee4d95
😎 Deploy Preview https://deploy-preview-1296--easypanel-templates.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@jorgepedro7 jorgepedro7 changed the title feat(supabase): auto-generate secure passwords on install Add auto-generate secure passwords for Supabase template Mar 11, 2026
@jorgepedro7 jorgepedro7 changed the title Add auto-generate secure passwords for Supabase template Added auto-generate secure passwords for Supabase template Mar 11, 2026
@Ahson-Shaikh
Copy link
Copy Markdown
Collaborator

Hi - @jorgepedro7. We have faced issues while deploying the Supabase template using the above suggested method. I'm closing this now, and keeping this in backlog to test it later on.

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