-
-
Notifications
You must be signed in to change notification settings - Fork 213
fix: pgsodium extension custom script #454
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
Conversation
| grant execute on function pgsodium.crypto_aead_det_decrypt(bytea, bytea, uuid, bytea) to service_role; | ||
| grant execute on function pgsodium.crypto_aead_det_encrypt(bytea, bytea, uuid, bytea) to service_role; | ||
| grant execute on function pgsodium.crypto_aead_det_keygen to service_role; | ||
| grant execute on function pgsodium.crypto_aead_det_noncegen to service_role; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is granted to public, so no need for the grant
| grant execute on function pgsodium.crypto_aead_det_decrypt(bytea, bytea, uuid, bytea) to service_role; | ||
| grant execute on function pgsodium.crypto_aead_det_encrypt(bytea, bytea, uuid, bytea) to service_role; | ||
| grant execute on function pgsodium.crypto_aead_det_keygen to service_role; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea why, but pgsodium/after-create.sql are not run during create extension pgsodium above, but it's run if I recreate the extension (tested on staging). This was the cause of the build failures.
I'll just add these since the grants are supposed to be idempotent.
|
Build seems to run fine: https://github.com/supabase/postgres/actions/runs/3712752347/jobs/6294627349 |
|
Looks good - let's merge then roll it on staging to check if it's stable and all good and then we can promote it to a non-rc release. |
Add back tests and address build failures.