Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after migrating to docker OpenSSL #339

Open
covard opened this issue Mar 26, 2019 · 0 comments
Open

Error after migrating to docker OpenSSL #339

covard opened this issue Mar 26, 2019 · 0 comments

Comments

@covard
Copy link

covard commented Mar 26, 2019

I have looked through the other issues with repeated to this but didn't see anything that helped me with my issue.

I have been migrating our app to docker, whenever I'm trying to get an encrypted attribute I'm getting this error OpenSSL::Cipher::CipherError

I have verified that the key is the same and is being passed into rails properly. I imported the DB from a data dump from the current app and restored into the docker db. Both are Postgres v9.4. Using this same dump I am able to restore locally (not in docker) and am able to get those values out.

The version of the gem I am using 3.0.1 same version that is running currently in production.

Also when I try to save the existing records I get the same cipher error. I am able to create a new record and save and decrypt these attributes. Is there something to do between the databases? The current app is running on heroku.

Appreciate any help you can provide me and thank you for building this gem I know OSS is hard and get people with bad attitudes. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant