Skip to content

Commit e00f2d8

Browse files
(DOCSP-34659): Add signature verification instructions for Docker (#5471) (#5482)
* (DOCSP-34659): Add signature verification instructions for Docker * wording * address review feedback and add instructions for enterprise * fix replacements * formatting * remove replacement * wording
1 parent 4a5720d commit e00f2d8

File tree

3 files changed

+62
-1
lines changed

3 files changed

+62
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
You can use `Cosign <https://github.com/sigstore/cosign>`__ to verify
2+
MongoDB's signature for container images.
3+
4+
This procedure is optional. You do not need to verify MongoDB's
5+
signature to run MongoDB on Docker or any other containerized platform.
6+
7+
To verify MongoDB's container signature, perform the following steps:

source/tutorial/install-mongodb-community-with-docker.txt

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,31 @@ Procedure
152152
maxWireVersion: 20,
153153
readOnly: false,
154154
ok: 1
155-
}
155+
}
156+
157+
Next Steps (Optional)
158+
---------------------
159+
160+
.. include:: /includes/installation/docker/verify-signature-intro.rst
161+
162+
.. procedure::
163+
:style: normal
164+
165+
.. step:: Download and install Cosign
166+
167+
For installation instructions, see the `Cosign GitHub repository
168+
<https://github.com/sigstore/cosign>`__.
169+
170+
.. step:: Download the MongoDB Server container image's public key
171+
172+
.. code-block:: sh
173+
174+
curl https://cosign.mongodb.com/server.pem > server.pem
175+
176+
.. step:: Verify the signature
177+
178+
Run the following command to verify the signature by tag:
179+
180+
.. code-block:: sh
181+
182+
COSIGN_REPOSITORY=docker.io/mongodb/signatures cosign verify --insecure-ignore-tlog --key=./server.pem docker.io/mongodb/mongodb-community-server:latest

source/tutorial/install-mongodb-enterprise-with-docker.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,33 @@ Steps
167167
readOnly: false,
168168
ok: 1
169169
}
170+
171+
Next Steps (Optional)
172+
---------------------
173+
174+
.. include:: /includes/installation/docker/verify-signature-intro.rst
175+
176+
.. procedure::
177+
:style: normal
178+
179+
.. step:: Download and install Cosign
180+
181+
For installation instructions, see the `Cosign GitHub repository
182+
<https://github.com/sigstore/cosign>`__.
183+
184+
.. step:: Download the MongoDB Server container image's public key
185+
186+
.. code-block:: sh
187+
188+
curl https://cosign.mongodb.com/server.pem > server.pem
189+
190+
.. step:: Verify the signature
191+
192+
Run the following command to verify the signature by tag:
193+
194+
.. code-block:: sh
195+
196+
COSIGN_REPOSITORY=docker.io/mongodb/signatures cosign verify --insecure-ignore-tlog --key=./server.pem docker.io/mongodb/mongodb-enterprise-server:latest
170197

171198
Learn More
172199
----------

0 commit comments

Comments
 (0)