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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

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

ios - I get the error Property '...' not found on object of type '...' -