Skip to main content
Sigstore Cosign signs container images and other artifacts. With the sigstore-kms-infisical plugin, Cosign signs with a Sign/Verify key in Infisical KMS, so the private key never leaves Infisical. The plugin supports RSA-4096 keys (the default) and ECC-NIST-P256 keys.

Prerequisites

Step 1: Install the plugin

Build the plugin, and put it in a directory on your PATH so Cosign can find it:

Step 2: Set the plugin’s credentials

Set the following environment variables with your machine identity’s credentials and the ID of your KMS project:
The plugin reads the following environment variables:
string
required
The client ID of your machine identity’s Universal Auth.
string
required
A client secret for your machine identity’s Universal Auth.
string
required
The ID of the KMS project that your keys are in.
string
default:"https://app.infisical.com"
The address of Infisical. If you use EU Cloud, set it to https://eu.infisical.com. If you self-host Infisical, set it to the address of your instance.

Step 3: Sign and verify images

In each command, <key-name> is the name of a Sign/Verify key in your KMS project. To sign an image:
To verify an image:
If you don’t have a key yet, Cosign can create an RSA-4096 key in your KMS project: