Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-538

Add cryptographic signature to the gem

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 12_01_17
    • 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.

            Assignee:
            brandon.black@10gen.com Brandon Black (Inactive)
            Reporter:
            cheald Chris Heald
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: