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

Current state of this gem #49

Open
ehannes opened this issue Sep 27, 2016 · 3 comments
Open

Current state of this gem #49

ehannes opened this issue Sep 27, 2016 · 3 comments

Comments

@ehannes
Copy link

ehannes commented Sep 27, 2016

What is the current state of this gem? According to the Readme:

Strongbox is tested against Rails 2.3 and 3.x using Ruby 1.8.7, 1.9.2, and 1.9.3.

I see there is an unmerged pull request from 2014 to update support for Rails 4.1 and Ruby 2.1. Now, Rails 5 is out. Is this gem maintained anymore?

@jakeonrails
Copy link

Just my observation that upgrading to Ruby 2.4 breaks this gem with the following error:

OpenSSL::OpenSSLError:
       password must be at least 4 bytes

The line of code that breaks is lock.rb:49

        # Using a blank password in OpenSSL::PKey::RSA.new prevents reading
        # the private key if the file is a key pair
        public_key = get_rsa_key(@public_key,"")

The double quotes is a hard coded 'password', and that is the field that is expected to be 4 bytes or longer. There does not seem to be any way to configure this or force it to use a 4 byte (or longer) password, without monkey patching the gem.

Are you aware of any alternatives to this library, @ehannes , especially those which would allow us to continue using the current data in our database without a tedious decrypt/re-encrypt migration?

@ruan-brandao
Copy link

I've noticed that the master branch is being updated, but there are no new releases since 2015. I am not sure about the status of the gem. Is it being mantained?

@ehannes
Copy link
Author

ehannes commented May 29, 2018

I would say no since no maintainer has answered this question in 1,5 year :(

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

3 participants