Bug report
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Start supabase locally
- Create a secret in the vault.secrets schema and table. Can be via GUI or the
create_secret function (don't pass any key)
- Query the secrets view to check the decryption works
- Run supabase stop
- Run supabase start
- Query a secret or open the decrypted secrets view
- An error will appear regarding an invalid ciphertext
Expected behavior
Starting the supabase stack again does not invalidate the encrypted secrets data or keys.
Screenshots
Error synchronizing data with database
Reason:
SQL Error [22000]: ERROR: pgsodium_crypto_aead_det_decrypt_by_id: invalid ciphertext
Where: PL/pgSQL function pgsodium.crypto_aead_det_decrypt(bytea,bytea,uuid,bytea) line 12 at RETURN
System information
- OS: [e.g. macOS, Windows]
- Browser (if applies) [e.g. chrome, safari]
- Version of supabase-js: [e.g. 6.0.2]
- Version of Node.js: [e.g. 10.10.0]
Additional context
Add any other context about the problem here.
Bug report
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
create_secretfunction (don't pass any key)Expected behavior
Starting the supabase stack again does not invalidate the encrypted secrets data or keys.
Screenshots
System information
Additional context
Add any other context about the problem here.