I cannot retrieve any data from the vault.decrypted_secrets view when using any SQL library or psql. I can, however, retrieve data using clients such as DbVisualizer. I am using a Postgres database where I installed the Vault extension, and querying the database with the following:
SELECT * FROM vault.decrypted_secrets WHERE id = 'a9dd1165-0c49-4050-9ff5-e9ce7c2d3793';
psql throws the following error:
ERROR: pgsodium_crypto_aead_det_decrypt_by_id: invalid ciphertext
CONTEXT: PL/pgSQL function pgsodium.crypto_aead_det_decrypt(bytea,bytea,uuid,bytea) line 12 at RETURN
psycopg2 throws the following error:
psycopg2.errors.DataException: pgsodium_crypto_aead_det_decrypt_by_id: invalid ciphertext
CONTEXT: PL/pgSQL function pgsodium.crypto_aead_det_decrypt(bytea,bytea,uuid,bytea) line 12 at RETURN
With Prisma, I have the multiSchema and views preview features enabled with the following schema (generated with prisma db pull):
Set up a Postgres database, install the Vault extension, and try querying the decrypted_secrets view from psql, Prisma, psycopg2, or something similar.
Expected behavior
I expected to receive a row with a decrypted_secret column.
Screenshots
N/A
System information
OS: macOS
Browser (if applies): N/A
Version of supabase-js: N/A
Version of Node.js: 19.0.1
Additional context
I'm only able to query the records through DbVisualizer right now.
Bug report
Describe the bug
I cannot retrieve any data from the
vault.decrypted_secrets
view when using any SQL library orpsql
. I can, however, retrieve data using clients such as DbVisualizer. I am using a Postgres database where I installed the Vault extension, and querying the database with the following:psql
throws the following error:psycopg2
throws the following error:With Prisma, I have the
multiSchema
andviews
preview features enabled with the following schema (generated withprisma db pull
):The query I am using to retrieve records is:
Prisma throws the following error:
To Reproduce
Set up a Postgres database, install the Vault extension, and try querying the
decrypted_secrets
view frompsql
, Prisma,psycopg2
, or something similar.Expected behavior
I expected to receive a row with a
decrypted_secret
column.Screenshots
N/A
System information
Additional context
I'm only able to query the records through DbVisualizer right now.