Skip to content

Commit 5741a0e

Browse files
(DOCSP-34659): Add signature verification instructions for Docker (#5471)
* (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 3a820df commit 5741a0e

File tree

3 files changed

+61
-1
lines changed

3 files changed

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

172199
Learn More
173200
----------

0 commit comments

Comments
 (0)