You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Secrets uploaded to local supabase vault using config.toml have their names converted to lowercase #3242
When running supabase locally and uploading secrets to the vault using config.toml, all uppercase letters in the secret name are converted to lowercase.
I am attempting to upload my vault secrets to my local supabase instance using the config.toml. All my secrets are written in all caps, and when they are uploaded to the vault, I see that they are converted to lowercase which breaks any references to them in my application.
Just wanted to add that I came across this issue as well. I assumed it was just enforced as a recommended way to store the secret name. Glad it is flagged as a bug. I would really like the secret to mirror the env variables.
Also, there is an issue when pushing the migration to remote using supabase db push. The vault secrets are pushed with each new migration push. This means that the remote secrets are always overriden by the local secrets after each push, not ideal considering you might want different secrets for different environment.
Reacted by mash-g, Alfred Sultson, Jake Wickstrom, Josiah Coad and Christian Pannwitz
We're closing this because it has not had any activity for 45 days, and we try to keep the Supabase CLI issue tracker focused on reports that are still current.
If this still reproduces on the latest Supabase CLI, please comment with /reopen on its own line and include your CLI version, updated reproduction steps, and any recent error output. We appreciate the signal and are happy to take another look.
We're closing this because it has not had any activity for 45 days, and we try to keep the Supabase CLI issue tracker focused on reports that are still current.
If this still reproduces on the latest Supabase CLI, please comment with /reopen on its own line and include your CLI version, updated reproduction steps, and any recent error output. We appreciate the signal and are happy to take another look.
We reproduced this behavior on 24 September 2026 through Supabase’s hosted GitHub integration / Preview Branch deployment.
Important distinction: our local and GitHub Actions tests using Supabase CLI 2.117.0 preserve uppercase Vault names correctly, including startup, updates and reset. The hosted branching deployment still lowercases them. We cannot determine which CLI version or implementation the managed executor uses.
Reproduction
Have an existing Vault secret named DB_TRIGGER_VERIFICATION_TOKEN.
Configure Vault and Edge Functions to use the same input:
Supply that input through the dotenvx-encrypted .env.preview, using a test value different from the existing Vault value.
Push the configuration and let Supabase’s GitHub integration deploy the Preview.
Inspect the resulting names:
select name
fromvault.secretswherelower(name) ='db_trigger_verification_token';
Actual result
The deployment reports success, but Vault contains two entries:
DB_TRIGGER_VERIFICATION_TOKEN: the original record, with its value unchanged.
db_trigger_verification_token: a newly created record containing the configured value.
We compared SHA-256 digests without exposing plaintext. The lowercase entry matches the deployed Edge Function secret; the uppercase entry does not. Existing SQL consumers therefore continue reading the wrong value.
Expected result
Update the existing uppercase record, preserving its name and creating no lowercase duplicate.
Could you reopen this, or route it to the team responsible for the hosted branching executor? The hosted behavior remains reproducible even though the local CLI path now works correctly.
Activity
sweatybridge commentedon Mar 5, 2025
After digging into this issue, I realised it is a fundamental flaw with viper not preserving case sensitive map keys spf13/viper#1014.
I think we will have to migrate to koanf to fully resolve it.
lhengl commentedon Jun 11, 2025
Just wanted to add that I came across this issue as well. I assumed it was just enforced as a recommended way to store the secret name. Glad it is flagged as a bug. I would really like the secret to mirror the env variables.
Also, there is an issue when pushing the migration to remote using supabase db push. The vault secrets are pushed with each new migration push. This means that the remote secrets are always overriden by the local secrets after each push, not ideal considering you might want different secrets for different environment.
g1ronn1mo commentedon Apr 7, 2026
Is this fixed now?
github-actions commentedon Jun 17, 2026
Hi! Thanks for opening this issue.
We're closing this because it has not had any activity for 45 days, and we try to keep the Supabase CLI issue tracker focused on reports that are still current.
If this still reproduces on the latest Supabase CLI, please comment with
/reopenon its own line and include your CLI version, updated reproduction steps, and any recent error output. We appreciate the signal and are happy to take another look.cpannwitz commentedon Jun 18, 2026
/reopen
Please reopen, this is neither answered nor resolved.
github-actions commentedon Aug 3, 2026
Hi! Thanks for opening this issue.
We're closing this because it has not had any activity for 45 days, and we try to keep the Supabase CLI issue tracker focused on reports that are still current.
If this still reproduces on the latest Supabase CLI, please comment with
/reopenon its own line and include your CLI version, updated reproduction steps, and any recent error output. We appreciate the signal and are happy to take another look.nannestad commentedon Sep 24, 2026
/reopen
We reproduced this behavior on 24 September 2026 through Supabase’s hosted GitHub integration / Preview Branch deployment.
Important distinction: our local and GitHub Actions tests using Supabase CLI 2.117.0 preserve uppercase Vault names correctly, including startup, updates and reset. The hosted branching deployment still lowercases them. We cannot determine which CLI version or implementation the managed executor uses.
Reproduction
DB_TRIGGER_VERIFICATION_TOKEN..env.preview, using a test value different from the existing Vault value.Actual result
The deployment reports success, but Vault contains two entries:
DB_TRIGGER_VERIFICATION_TOKEN: the original record, with its value unchanged.db_trigger_verification_token: a newly created record containing the configured value.We compared SHA-256 digests without exposing plaintext. The lowercase entry matches the deployed Edge Function secret; the uppercase entry does not. Existing SQL consumers therefore continue reading the wrong value.
Expected result
Update the existing uppercase record, preserving its name and creating no lowercase duplicate.
Could you reopen this, or route it to the team responsible for the hosted branching executor? The hosted behavior remains reproducible even though the local CLI path now works correctly.