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

How to set encryption for heroku and non heroku environment? #130

Open
michaelsalexander83 opened this issue Jun 25, 2019 · 0 comments
Open

Comments

@michaelsalexander83
Copy link

michaelsalexander83 commented Jun 25, 2019

Using latest versions of everything as of today

ruby '2.6.3'
gem 'rails', '~> 5.2.3'

I need encryption on both the development ( keys local ) and Heroku.
Is there a way or example to define both in 1 config file?
the documentation seems to implicate it only generates a config for 1 specific environment ( for example heroku but not both heroku for production and local keys for development )

symmetric-encryption --generate --app-name dashboard --environments "development,staging,production"

vs

symmetric-encryption --generate --keystore heroku --app-name dashboard --environments "development,staging,production"

I have now used the local key storage config and restarted the application.
However im recieving a

PG::InvalidTextRepresentation: ERROR:  invalid input syntax for integer: "QEVuQwFAEAA6rNoDFpB+L5nTTd.. etcetera"
: SELECT COUNT(*) FROM "organisation" WHERE "requests"."organisation_id" = $1 AND (created_at < '2018-06-30 22:14:37.525186')

Did i miss something in the instructions?
This seems like a great solution thank you for providing it.

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