Skip to content

Conversation

@soedirgo
Copy link
Member

@soedirgo soedirgo commented Dec 16, 2022

Add back tests and address build failures.

@soedirgo soedirgo requested review from a team as code owners December 16, 2022 11:31
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;
Copy link
Member Author

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

Comment on lines +9 to +11
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;
Copy link
Member Author

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.

@pcnc
Copy link
Member

pcnc commented Dec 16, 2022

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.
We can revert to the Vault image on staging afterwards if needed

@pcnc pcnc merged commit ae4f6b6 into develop Dec 16, 2022
@pcnc pcnc deleted the fix/extension-custom-scripts branch December 16, 2022 13:36
damonrand pushed a commit to cepro/postgres that referenced this pull request Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants