-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: change perms to not rely on pgsodium_keyiduser
- Loading branch information
Showing
3 changed files
with
30 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
CREATE ROLE bob login password 'bob'; | ||
|
||
CREATE ROLE pgsodium_keyiduser WITH | ||
NOLOGIN | ||
NOSUPERUSER | ||
NOCREATEDB | ||
NOCREATEROLE | ||
INHERIT | ||
NOREPLICATION | ||
CONNECTION LIMIT -1; | ||
|
||
CREATE EXTENSION IF NOT EXISTS pgtap; | ||
CREATE EXTENSION supabase_vault CASCADE; | ||
|
||
GRANT pgsodium_keyiduser TO bob; | ||
GRANT USAGE ON SCHEMA vault TO bob WITH GRANT OPTION; | ||
GRANT SELECT ON vault.secrets, vault.decrypted_secrets TO bob WITH GRANT OPTION; | ||
GRANT EXECUTE ON FUNCTION | ||
vault.create_secret, | ||
vault.update_secret, | ||
vault._crypto_aead_det_decrypt | ||
TO bob WITH GRANT OPTION; |