Skip to content

Commit

Permalink
update pgsodium 3.1.3, explicit mask updates for dependent extensions. (
Browse files Browse the repository at this point in the history
  • Loading branch information
michelp authored Dec 13, 2022
1 parent 54243ca commit fba4a59
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM postgres:15
RUN apt-get update && apt-get install -y make build-essential curl git postgresql-server-dev-15 postgresql-15-pgtap
RUN curl -s -L https://download.libsodium.org/libsodium/releases/libsodium-1.0.18.tar.gz | tar zxvf - && cd libsodium-1.0.18 && ./configure && make check && make -j 4 install
RUN ldconfig
RUN git clone https://github.com/michelp/pgsodium.git && cd pgsodium && git checkout tags/v3.1.2 && make install
RUN git clone https://github.com/michelp/pgsodium.git && cd pgsodium && git checkout tags/v3.1.3 && make install
# RUN git clone https://github.com/michelp/pgsodium.git && cd pgsodium && git checkout main && make install
RUN mkdir "/vault"
WORKDIR "/vault"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ CREATE UNIQUE INDEX ON vault.secrets USING btree (name) WHERE name IS NOT NULL;
SECURITY LABEL FOR pgsodium ON COLUMN vault.secrets.secret IS
'ENCRYPT WITH KEY COLUMN key_id ASSOCIATED (id, description, created_at, updated_at) NONCE nonce';

SELECT pgsodium.update_mask('vault.secrets'::regclass::oid);

ALTER EXTENSION supabase_vault DROP VIEW vault.decrypted_secrets;
ALTER EXTENSION supabase_vault DROP FUNCTION vault.secrets_encrypt_secret_secret;

Expand Down
2 changes: 1 addition & 1 deletion supabase_vault.control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
comment = 'Supabase Vault Extension'
default_version = '0.2.7'
default_version = '0.2.8'
relocatable = false
schema = vault
requires = pgsodium

0 comments on commit fba4a59

Please sign in to comment.