security - GPGME: Best practices for automatic decryption in rails server -


i'd able ato implement following behaviour :

  • an admin should asked passphrase gpg production key during rails server startup in production

  • the passphrase should not stored anywhere other ram

  • decryption capabilities should not available in rake tasks or rails console

a gpg-agent seems out of question, since process launched same user rails server runs able decrypt content.

a passphrase callback gpgme class asking passphrase seems best solution (although tricky implement because of start-stop-daemon wrapper in /etc/init.d/unicorn grabs stdin).

am missing ? there security holes such setup ? better solution ? many thanks.


Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -