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

[feature] need an easy way to decrypt and load encrypted settings file into memory #9

Closed
kigster opened this issue Mar 11, 2017 · 1 comment

Comments

@kigster
Copy link
Owner

@kigster kigster commented Mar 11, 2017

With gems such as railsconfig/config it would be nice to be able to simply load an encrypted file into memory.

The library should provide an easy way to auto-detect the private key, and have easy to use semantics for opening an encrypted file into memory.

For example:

require 'sym/file'
require 'config'

contents = Sym::File.new('production.yml.enc', key: 'MY_PRIVATE_KEY').read
Settings.add_source!(YAML.load(contents))
@kigster kigster added the enhancement label Mar 11, 2017
@kigster
Copy link
Owner Author

@kigster kigster commented Mar 13, 2017

Addressed by the Sym::MagicFile API, and commit 7fe2834

@kigster kigster closed this Mar 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.