-
Notifications
You must be signed in to change notification settings - Fork 92
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
Multi-environment usage #87
Comments
Symmetric Encryption supports both environment variables and Heroku directly. Look for the Heroku option when generating the configuration file: |
The problem is with Hence wanting a way to have *edit: * for clarity, I did use the heroku keystore option when I setup my app with symmetric-encryption. The issue is in this: (don't worry, those keys aren't in actual use)
In order to know if symmetric-encryption is meant to use |
It's where the |
Allows using "production" RACK_ENV/RAILS_ENV but specifying separate env for config [addresses reidmorrison#87]
Allows using "production" RACK_ENV/RAILS_ENV but specifying separate env for config [addresses reidmorrison#87]
@ThisIsMissEm The above PR has been merged, does it sufficiently address the requirements above? |
Currently we configuring symmetric-encryption, you can specify each of the environments that you have (e.g., say if you have a demo or staging environment). This works well, but there's an issue: The default way to determine which "environment" symmetric-encryption should use is to look at
Rails.env
However, Heroku recommends against multiple "environments" (details), so in order to work nicely with heroku
Rails.env
has to be just "production"It seems that it'd be possible to read from something else, given the contents of railties
I'd like to field interest in setting up an
ENCRYPTION_ENV
variable as an alternative to useRails.env
(i.e., env = ENV['ENCRYPTION_ENV'] || Rails.env).This way I could still have multiple encryption environments and still play nicely with heroku.
The text was updated successfully, but these errors were encountered: