S
Supabase2mo ago
Hugo

[db.vault] config not syncing with remote project

Hello, I am using the [db.vault] config in config.toml to be able to set secret in vault. It is working ok in local, this means when I do pnpx supabase migration up it update vault secrets that I defined under the [db.vault] section. I am trying to make it work with my dev remote project but found no success in it. I tried: pnpx supabase link --project-ref xxxxxxx --password xxxxxx to link the remote dev project, then use: pnpx supabase db push xxxxxx --password xxxxx --include-seed --yes --include-all --linked as stated here https://github.com/orgs/supabase/discussions/12813#discussioncomment-12245622 but found no success. Also tried: pnpx supabase config push --yes --experimental it does not seem to work, the config is not syncing with remote project (was unable to disable http api even tho I set:
[api]
enabled = false
[api]
enabled = false
Again, it worked locally but not on the remote project
GitHub
Environment variables for DB functions · supabase · Discussion #1...
Update: it's on our roadmap Hi, I'm currently working through the User Management on React Tutorial and in the Storage Management section code example, the project URL and service role key ...
8 Replies
tomaspozo
tomaspozo2mo ago
where did you find about [db.vault]? I haven't seen that config before...
Hugo
HugoOP2mo ago
For some reason the link I provided above does not open on the right comment so here it is
No description
tomaspozo
tomaspozo2mo ago
ooh wow, this is cool! did not new about it, and is not documented on the config ref yet... what cli version you are using?
Hugo
HugoOP2mo ago
cli version 2.31.4
tomaspozo
tomaspozo2mo ago
ok, after testing (v 2.31.8), the only way I was able to make the secret to be created was by having a migration to be applied
tomaspozo
tomaspozo2mo ago
No description
Hugo
HugoOP2mo ago
Thx a lot, I'll check that tomorrow at work and see if I can make it work It works, it is not optimal at all since I have to add empty migration each time we want to add secret but at least we can keep working. It would be a good thing to add to the pnpx supabase config push, altho I don't know how feasable it is
tomaspozo
tomaspozo2mo ago
I know a contributor is working on an improvement here, so will keep you posted!

Did you find this page helpful?