Skip to content

Commit f6d5ab5

Browse files
committed
tmp
1 parent 526d318 commit f6d5ab5

File tree

5 files changed

+19
-50
lines changed

5 files changed

+19
-50
lines changed

ansible/files/sodium_extension.sql

Lines changed: 0 additions & 6 deletions
This file was deleted.

ansible/vars.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ postgres_major:
88

99
# Full version strings for each major version
1010
postgres_release:
11-
postgresorioledb-17: "17.0.1.021-orioledb-vault-1"
12-
postgres15: "15.8.1.031-vault-1"
11+
postgresorioledb-17: "17.0.1.021-orioledb-vault-3"
12+
postgres15: "15.8.1.031-vault-3"
1313

1414
# Non Postgres Extensions
1515
pgbouncer_release: "1.19.0"

migrations/db/migrations/20221207154255_create_pgsodium_and_vault.sql

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
-- migrate:up
2+
3+
DO $$
4+
BEGIN
5+
IF EXISTS (select from pg_available_extensions where name = 'supabase_vault')
6+
THEN
7+
create extension if not exists supabase_vault;
8+
9+
-- for some reason extension custom scripts aren't run during AMI build, so
10+
-- we manually run it here
11+
grant usage on schema vault to postgres with grant option;
12+
grant select on vault.secrets, vault.decrypted_secrets to postgres with grant option;
13+
grant execute on function vault.create_secret, vault.update_secret, vault._crypto_aead_det_decrypt to postgres with grant option;
14+
END IF;
15+
END $$;
16+
17+
-- migrate:down

migrations/db/migrations/20230529180330_alter_api_roles_for_inherit.sql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@ ALTER ROLE authenticated inherit;
44
ALTER ROLE anon inherit;
55
ALTER ROLE service_role inherit;
66

7-
GRANT pgsodium_keyholder to service_role;
8-
97
-- migrate:down
108

0 commit comments

Comments
 (0)