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

Please Sign This Gem To Allow Verified Installations #816

Closed
jfelchner opened this issue Mar 6, 2023 · 4 comments
Closed

Please Sign This Gem To Allow Verified Installations #816

jfelchner opened this issue Mar 6, 2023 · 4 comments

Comments

@jfelchner
Copy link
Contributor

There are a lot of attacks that deal with spoofing dependencies and other supply chain attacks. Because thor is one of the most popular gems (and is a foundation for a lot of CLI-based apps), I think it makes sense to sign the gem releases so that users can be sure we're getting the genuine article.

By signing thor, any gem that depends on it can be installed with HighSecurity enabled.

This should be fairly trivial since thor has no runtime dependencies.

This is an older but still accurate step-by-step guide on how to do it.

@rafaelfranca
Copy link
Member

We will sign this gem when Rubygems have a good way to sign gems. As it doesn't have yet, I'll mark this closed, but I'll make sure we work in improving how Rubygems sign gems.

@rafaelfranca rafaelfranca closed this as not planned Won't fix, can't repro, duplicate, stale May 11, 2023
@jfelchner
Copy link
Contributor Author

@rafaelfranca I don't understand "a good way to sign gems" can you elaborate? I sign all my gems. It's part of the build process. It's very easy.

@jfelchner
Copy link
Contributor Author

@rafaelfranca
Copy link
Member

rubygems/rfcs#37

Perhaps for a single person gem the approach of using certificates to sign gem is ok. But for a gem like Thor, that have several maintainer, passing a private certificate around is prone to so many attack vectors, that isn't worthy doing.

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

2 participants