-
Type:
Improvement
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: 1.8.2
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
In light of the recent Rubygems security issues, I think it would be prudent to add a signature to the gem and include it in releases. This isn't something I can issue a PR for, since you (the project owner) would need to own the cert files.
The how-to is here:
http://docs.rubygems.org/read/chapter/21
TL;DR:
1. gem cert --build your@email.com
2. Copy the private key somewhere safe
3. Add the public key to the repo (`git add gem-public_cert.pem`)
4. Update the gemspec with something like:
s.signing_key = '/home/chris/.gemcert/gem-private_key.pem'
s.cert_chain = ['gem-public_cert.pem']
5. Push and rake release
While this would be a self-signed certificate, the presence of the pubkey in the canonical repo will allow people verify that the gem they installed from Rubygems (or where ever) was signed by the project maintainer, and has not been altered.
- is duplicated by
-
RUBY-540 Add cryptographic signature to Rubygems
-
- Closed
-