Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pgsodium_crypto_aead_det_decrypt_by_id: invalid ciphertext after compose down & up #30

Open
2 tasks done
epenabella opened this issue Sep 8, 2023 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@epenabella
Copy link

epenabella commented Sep 8, 2023

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

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:

  1. Have a setup with Stripe Wrapper and server
  2. Add Vault Key for server
  3. Compose Down docker
  4. Compose Up
  5. Any queries against the Foreign Data Tables have the error pgsodium_crypto_aead_det_decrypt_by_id: invalid ciphertext (it will also have an error on supabase studio and in postgres directly running any queries connected to the foreign data tables)

Expected behavior

image

Screenshots

image

System information

  • OS: macOS development against Ubuntu VPS
  • using Brave & Firefox
  • supabase/postgres:15.1.0.103 & wrappers extension

Additional context

re-adding the secret and changing the server apikey option fixes it, but it's a hassle

@bartoszpijet
Copy link

Take a look at #27

@ghost
Copy link

ghost commented Mar 7, 2024

Quick fix:
#27 (comment)

For anyone coming accross this:

# ...
  db:
    # ...
    volumes:
      # ...
      # pgsodium decryption key
      - ./volumes/db/pgsodium_root.key:/etc/postgresql-custom/pgsodium_root.key:Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants