jeudi 8 octobre 2015

How to get attr_encrypted working with ssh connection?

I'm trying to debug a Rails issue, and the page I'm debugging has a field on it that is:

attr_encrypted :questions_and_responses

This field is unrelated to the issue I'm looking at, and the field shows correctly in production, but when I'm using an ssh tunnel connection, I get the error OpenSSL::Cipher::CipherError bad decrypt when accessing the questions_and_responses field in the controller.

I'm suspecting that my local cipher key does not match the one in the other environment, but how can I copy the key from the other environment locally? Where/how is that stored?

Aucun commentaire:

Enregistrer un commentaire