supabase / vault

Extension for storing encrypted secrets in the Vault
Apache License 2.0
174 stars 10 forks source link

Unable to access view decrypted_secrets from cron job ERROR: pgsodium_crypto_aead_det_decrypt_by_id: invalid ciphertext #29

Open sagi-reeeally opened 1 year ago

sagi-reeeally commented 1 year ago

Bug report

Describe the bug

Trying to run a cron_job that access the view decrypted_secrets.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Create a cron_job that runs every once in a while (with user postgres) With a function that tries to access the view decrypted_secrets

Expected behavior

The cron_job is successful and accessed the view decrypted_secrets

System information

-- Running on the Supabase Cloud

bartoszpijet commented 10 months ago

Take a look at #27