supabase / vault

Extension for storing encrypted secrets in the Vault
Apache License 2.0
163 stars 9 forks source link

Unable to update key_id of secret #11

Open joshenlim opened 1 year ago

joshenlim commented 1 year ago

Bug report

Describe the bug

Running a query to update the key_id of a secret throws the following error Failed to run sql query: invalid base64 end sequence

This is done by updating the key_id and the secret column of the decrypted_secrets view from vault in the same request This may be the same as https://github.com/supabase/vault/issues/10 as both are updating the secret column

michelp commented 1 year ago

This should be fixed by using the vault.update_secret() function in the latest release, lmk if that works for you. Thanks!