-
Notifications
You must be signed in to change notification settings - Fork 379
Open
Description
Bug report
Describe the bug
supabase db push --db-url <connection_string> fails with:
failed to read signing keys: open supabase/signing_key.json: no such file or directory
when config.toml has signing_keys_path = "./signing_key.json" but the file doesn't exist (e.g. in CI, where the file is gitignored as recommended).
To reproduce
- Have a
supabase/config.tomlwithsigning_keys_path = "./signing_key.json"under[auth] - Add
supabase/signing_key.jsonto.gitignore(as recommended by docs) - In a clean checkout (e.g. GitHub Actions), run:
supabase db push --db-url "postgresql://postgres:<password>@db.<ref>.supabase.co:5432/postgres" - The command fails with the error above
Expected behavior
supabase db push --db-url should not need to read the auth signing keys file. The signing keys are only relevant for the local auth server (supabase start), not for pushing migrations to a remote database.
The CLI should either:
- Skip parsing
signing_keys_pathwhen running commands that don't need it (likedb push) - Gracefully handle a missing file when the command doesn't require it
Environment
- OS: Ubuntu (GitHub Actions
ubuntu-latest) - CLI version: latest (via
supabase/setup-cli@v1)
Workaround
Creating an empty signing key file before running the command:
echo '[]' > supabase/signing_key.json
supabase db push --db-url "..."Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels