Skip to content

Commit c9ddaef

Browse files
authored
RUBY-3589 Prep for v2.1.2 (#20)
* version bump * Add docs regarding release integrity * we do not include a guardfile anymore
1 parent 43ac16c commit c9ddaef

File tree

3 files changed

+27
-16
lines changed

3 files changed

+27
-16
lines changed

CONTRIBUTING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ specs should follow the following guidelines:
2121
- Use `context` blocks to set up conditions.
2222
- Always provide descriptive specifications via `it`.
2323

24-
Specs can be automatically run with Guard, via `bundle exec guard`
25-
2624
Before commiting, run `rake` to ensure all specs pass with both pure Ruby and
2725
the native extensions.
2826

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,31 @@ Require the `mongo_kerberos` gem in your application.
3333
require "mongo_kerberos"
3434
```
3535

36+
### Release Integrity
37+
38+
Each release of this Kerberos authentication module after version 2.1.1 has been automatically built and signed using the team's GPG key.
39+
40+
To verify the module's gem file:
41+
42+
1. [Download the GPG key](https://pgp.mongodb.com/ruby-driver.asc).
43+
2. Import the key into your GPG keyring with `gpg --import ruby-driver.asc`.
44+
3. Download the gem file (if you don't already have it). You can download it from RubyGems with `gem fetch mongo_kerberos`, or you can download it from the [releases page](https://github.com/mongodb/mongo-ruby-kerberos/releases) on GitHub.
45+
4. Download the corresponding detached signature file from the [same release](https://github.com/mongodb/mongo-ruby-kerberos/releases). Look at the bottom of the release that corresponds to the gem file, under the 'Assets' list, for a `.sig` file with the same version number as the gem you wish to install.
46+
5. Verify the gem with `gpg --verify mongo_kerberos-X.Y.Z.gem.sig mongo_kerberos-X.Y.Z.gem` (replacing `X.Y.Z` with the actual version number).
47+
48+
You are looking for text like "Good signature from "MongoDB Ruby Driver Release Signing Key <[email protected]>" in the output. If you see that, the signature was found to correspond to the given gem file.
49+
50+
(Note that other output, like "This key is not certified with a trusted signature!", is related to *web of trust* and depends on how strongly you, personally, trust the `ruby-driver.asc` key that you downloaded from us. To learn more, see https://www.gnupg.org/gph/en/manual/x334.html)
51+
52+
### Why not use RubyGems' gem-signing functionality?
53+
54+
RubyGems' own gem signing is problematic, most significantly because there is no established chain of trust related to the keys used to sign gems. RubyGems' own documentation admits that "this method of signing gems is not widely used" (see https://guides.rubygems.org/security/). Discussions about this in the RubyGems community have been off-and-on for more than a decade, and while a solution will eventually arrive, we have settled on using GPG instead for the following reasons:
55+
56+
1. Many of the other driver teams at MongoDB are using GPG to sign their product releases. Consistency with the other teams means that we can reuse existing tooling for our own product releases.
57+
2. GPG is widely available and has existing tools and procedures for dealing with web of trust (though they are admittedly quite arcane and intimidating to the uninitiated, unfortunately).
58+
59+
Ultimately, most users do not bother to verify gems, and will not be impacted by our choice of GPG over RubyGems' native method.
60+
3661

3762
## API Documentation
3863

lib/mongo/auth/kerberos/version.rb

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
1-
# Copyright (C) 2015 MongoDB, Inc.
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
1+
# frozen_string_literal: true
142

153
module Mongo
164
module Auth
175
class Kerberos
186

197
# The gem version number.
20-
VERSION = '2.1.1'.freeze
8+
VERSION = '2.1.2'
219
end
2210
end
2311
end

0 commit comments

Comments
 (0)