huwtl / secure_yaml Goto Github PK
View Code? Open in Web Editor NEWAllows the encryption/ decryption of YAML properties
Allows the encryption/ decryption of YAML properties
I was trying to encrypt the username and password in the database.yml file.I was able to encrypt using the secret key.But I am not aware ,where should i decrypt it.The documentation says "Within your app",but I don't know where to do it.
Caused on Ruby 3.1 explained here https://stackoverflow.com/a/71192990/4061
from /Users/ted/.rvm/gems/ruby-3.1.2/gems/secure_yaml-2.0.2/lib/secure_yaml/loader.rb:12:in `load'
from /Users/ted/.rvm/gems/ruby-3.1.2/gems/secure_yaml-2.0.2/lib/secure_yaml.rb:14:in `load'
fix
@yaml_decrypter.decrypt(YAML::load(yaml_file, aliases: true))
Hello. Would you be so kind to update the gem version and publish it on Rubygems.org, like the previous version? It'll be cool to update the gem the regular way, without sticking to the github master branch.
Encryption/Decription doesn't work in new platforms.
Probably due to some old ciphers removed (not supported).
Failed ti decrypt on Ubuntu 22 with Ruby 3.1.2
admin1@ubuntu22:~/connector_rspec/config$ encrypt_property_for_yaml decrypt 'key' "value="
/usr/share/rvm/gems/ruby-3.1.2/gems/secure_yaml-2.0.2/lib/secure_yaml/cipher.rb:18:in `update': key not set (OpenSSL::Cipher::CipherError)
from /usr/share/rvm/gems/ruby-3.1.2/gems/secure_yaml-2.0.2/lib/secure_yaml/cipher.rb:18:in `decrypt'
from /usr/share/rvm/gems/ruby-3.1.2/gems/secure_yaml-2.0.2/lib/secure_yaml/cli/property_encryption_application.rb:18:in `execute'
from /usr/share/rvm/gems/ruby-3.1.2/gems/secure_yaml-2.0.2/bin/encrypt_property_for_yaml:5:in `<top (required)>'
from /usr/share/rvm/gems/ruby-3.1.2/bin/encrypt_property_for_yaml:25:in `load'
from /usr/share/rvm/gems/ruby-3.1.2/bin/encrypt_property_for_yaml:25:in `<main>'
from /usr/share/rvm/gems/ruby-3.1.2/bin/ruby_executable_hooks:22:in `eval'
from /usr/share/rvm/gems/ruby-3.1.2/bin/ruby_executable_hooks:22:in `<main>'
ad
SecureYaml.load
should really accept string arguments. Files should be loaded via SecureYaml.load_file
instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.