Signing Key Configuration
TOC
Overview
To enable artifact signing in Tekton Chains, you need to generate and configure signing keys. This document explains how to generate and configure signing keys for different signing methods.
Generate Signing Key
WARNING
The signing key is used to generate signature information for artifacts. Please keep it secure.
Using Cosign
You can use the cosign tool to generate a signing key pair:
Note:
- You need to have the cosign CLI installed and access to the Kubernetes cluster
COSIGN_PASSWORDis the password for encrypting the signing keytekton-pipelinesis the namespace where the Chains component is deployed (default istekton-pipelines)signing-secretsis the name of the Secret for storing the signing key
After execution, you can view the corresponding Secret resource:
Get the Signing Public Key
TIP
If you don't have permission, you can ask the administrator to get the public key.
Get the Signing Secret
Restart Tekton Chains
After configuring the signing key, restart the Tekton Chains component to make it take effect:
Wait for the component to start: