Sign OCI artifacts with Cosign on OVHcloud Managed Private Registry
Learn how to sign artifacts with Cosign in an OVHcloud Managed Private Registry service.
OVHcloud Managed Private Registry service, a cloud-native registry built on Harbor, allows you to store, manage, and access your container images (OCI artifacts) and Helm charts.
Security is an important topic, and through artifact signing and signature verification, you can increase the security of your OVHcloud Managed Private Registries by verifying the integrity of an artifact.
Harbor v2.5+ supports Cosign, an OCI (Open Container Initiative) artifact signing and verification solution that is part of the Sigstore project.
Harbor has started deprecating Notary in Harbor 2.6, and it will be removed in Harbor v2.8, so you must use Cosign to sign container images and Helm charts.
Compared to Notary, Cosign is easy to use, and one advantage is its ability to leverage Harbor’s replication capabilities to replicate signatures with their associated signed artifacts.
Requirements
- An OVHcloud Managed Private Registry
- The URL and login/password of your private registry
- An image stored in your registry
This tutorial assumes that you already have a working OVHcloud Managed Private Registry and you have followed the guides on creating a private registry, connecting to the UI, managing users and projects, and creating and using private images.
You should also have a running Private Registry in version 2.6 or higher, with a stored image and access to your private registry.

Instructions
Installing Cosign CLI
You can install Cosign CLI on your computer from the binaries, a rpm package, Homebrew, or even use it directly in a GitHub Action.
For this tutorial, you will install it via Homebrew:
Verify Cosign is successfully installed on your machine:
The output should be like this:
Generate a private key
Cosign allows you to generate a private key that you can use later to sign your images. You'll be interactively prompted to provide a password.
Generate a private key:
The output should be like this:
In this guide, we generated a private key locally. In a production environment, you can generate the private key and store it in a key management storage such as a Vault or KMS.
Sign your OCI artifact (container image)
Sign your image and push the signature to your OVHcloud Managed Private Registry instance.
The output should be like this:
Verify the image is signed with Cosign
To verify if your image is well signed, log in to your private registry (in the Harbor UI), click in Projects, select your project, then your image and then you will see a new green check mark:

Clicking on the> icon displays the associated cosign signature information:

Go further
Browse all the Managed Private Registry (MPR) guides.
Browse the rest of the OVHcloud US documentation for guides on our other products and services.
Learn more about Managed Private Registry on the OVHcloud US website.