You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have upgraded to Rails 5.2.4.1 and after that, whenever I retrieve any information from the object that has attr_encrypted on it, the key that is encrypted is returned as well and always with nil as value.
Example:
SourceCredential.first.attributes => {"id"=>2,
"encrypted_access_key"=>"some encrypted text",
"encrypted_access_key_iv"=>"some encryption iv",
"access_key"=>nil,
"encrypted_access_secret"=>"some encrypted text",
"encrypted_access_secret_iv"=>"some encryption iv",
"source_id"=>nil,
"gateway_setting_id"=>nil,
"created_at"=>Fri, 27 Mar 2020 11:33:15 UTC +00:00,
"updated_at"=>Fri, 27 Mar 2020 11:33:15 UTC +00:00,
"access_secret"=>nil}
where access_key and access_secret are the attr_encrypted attributes.
This did not use to happen on Rails 5.0.0, so I am not sure how to preserve that behavior. Any thoughts from anyone?
Thank you
The text was updated successfully, but these errors were encountered:
Hello,
I have upgraded to Rails 5.2.4.1 and after that, whenever I retrieve any information from the object that has attr_encrypted on it, the key that is encrypted is returned as well and always with nil as value.
Example:
where
access_key
andaccess_secret
are the attr_encrypted attributes.This did not use to happen on Rails 5.0.0, so I am not sure how to preserve that behavior. Any thoughts from anyone?
Thank you
The text was updated successfully, but these errors were encountered: