Docs Menu
Docs Home
/ /
MongoDB Atlas Kubernetes Operator
/

Verify Integrity of Atlas Kubernetes Operator Packages

On this page

  • Prerequisites
  • Verify with Makefile Rule
  • Verify with Cosign

Starting in Atlas Kubernetes Operator 2.2.0, the MongoDB release team digitally signs Atlas Kubernetes Operator packages to certify that they are valid and unaltered MongoDB releases.

You can verify Atlas Kubernetes Operator packages using a makefile rule, or cosign.

Before you can verify Atlas Kubernetes Operator packages, you must have a local copy of the Atlas Kubernetes Operator repository.

The makefile rule verify verifies an Atlas Kubernetes Operator multi-architecture image's signature.

Run the following command to verify with the signatures at the mongodb/signatures MongoDB registry. Replace the following placeholders with your values:

Placeholder
Description
IMG
The image reference you want to verify.
SIGNATURE_REPO
The repository that contains all the signatures you want to verify against.
make verify {IMG}=mongodb/mongodb-atlas-kubernetes-operator:2.2.0 {SIGNATURE_REPO}=mongodb/signatures

If the command is successful, it prints VERIFIED OK. Otherwise, it prints an error such as Error: no matching signatures.

1
2

Run the following command to obtain the signing key from our team to verify the signatures against:

curl -LO https://cosign.mongodb.com/atlas-kubernetes-operator.pem
3

Cosign prefers the image reference to include the SHA, such as the following:

mongodb/mongodb-atlas-kubernetes-operator@sha256:c7420df24f236831d21cd591c32aeafcd41787382eb093afcc2ce456c30f3a17
4

Run the following command to verify the Atlas Kubernetes Operator package. Replace the following placeholders with your values:

Placeholder
Description
IMG
The image reference you want to verify.
KEY_FILENAME
The name of the file you downloaded the signature key PEM to.
COSIGN_REPOSITORY=mongodb/signatures cosign verify --insecure-ignore-tlog --key="${KEY_FILENAME}" "${IMG}" && echo PASS

If the command is successful, it prints PASS. Otherwise, it prints an error such as Error: no matching signatures.

Back

Quick Start