Closed
Description
We're working on adding GoodJob to an app and recently had a deploy failure because the GoodJob migrations wouldn't run (on PG 12.3) without superuser privileges:
ActiveRecord::StatementInvalid: PG::InsufficientPrivilege: ERROR: permission denied to create extension "pgcrypto"
HINT: Must be superuser to create this extension.
/opt/app/db/migrate/20221208193908_create_good_jobs.rb:4:in `change'
/opt/app/bin/rails:4:in `require'
/opt/app/bin/rails:4:in `<main>'
For the life of me, though, I can't figure out what pgcrypto
features GoodJob actually uses — I've tried grepping the source for all the functions I can find in the PG 12 pgcrypto
docs and can't find any references to them:
digest
hmac
crypt
gen_salt
pgp_sym_encrypt
pgp_sym_decrypt
pgp_pub_encrypt
pgp_pub_decrypt
pgp_key_id
armor
Is pgcrypto
actually used? And if so, for what?
Metadata
Assignees
Labels
No labels
Projects
Status
Done
Activity