Sigstore KMS Plugin for Venafi CodeSign Protect
Supports cosign image and artifact signing with Venafi CodeSign Protect leveraging the vSign SDK
Capability | Compatibility |
---|---|
DefaultAlgorithm | RSA-2048 |
SupportedAlgorithsm | RSA, ECDSA |
CreateKey | ❌ |
PublicKey | ✔️ |
SignMessage | ✔️ |
VerfiyMessage | ✔️ |
CryptoSigner | ❌ |
- Venafi CodeSign Protect (22+)
- Sigstore cosign v2.4.3+
For the sigstore library to invoke the plugin, the binary must be in your system's PATH.
git clone https://github.com/Venafi/sigstore-kms-venafi.git
cd sigstore-kms-venafi
go build -o sigstore-kms-venafi
cp sigstore-kms-venafi /usr/local/bin
The Venafi KMS plugin relies on environment variables, and therefore must be set prior to running cosign with the plugin. Review the vSign SDK for detailed information on creating the necessary Venafi API oauth token.
These are the minimum variables required
VSIGN_URL="https://tpp.example.com"
VSIGN_TOKEN="xxxxxxxxxx"
VSIGN_JWT="xxxxxxxxxxx"
For authentication only use either VSIGN_TOKEN
or VSIGN_JWT
, since the JWT will be exchanged for an access token.
Currently only Certificate environments are supported
cosign sign --key "venafi://{venafi-csp-project-name\environment}" --tlog-upload=false my-org-repo/my-image:v1
Example:
cosign sign --key "venafi://container-signing-project\my-cert" --tlog-upload=false my-org-repo/my-image:v1
cosign verify --key "venafi://{venafi-csp-project-name\environment}" --insecure-ignore-tlog=true my-org-repo/my-image:v1
Example:
cosign verify --key "venafi://container-signing-project\my-cert" --insecure-ignore-tlog=true my-org-repo/my-image:v1
Checkout the following Tekton Chains and Venafi KMS Plugin integration guide
- Any questions, suggestions or issues please use GitHub Issues
Venafi welcomes contributions from the developer community.
- Fork it to your account (https://github.com/Venafi/sigstore-kms-venafi/fork)
- Clone your fork:
git clone [email protected]:youracct/sigstore-kms-venafi.git
- Create a feature branch:
git checkout -b your-branch-name
- Implement and test your changes
- Commit your changes:
git commit -am 'Added some cool functionality'
- Push to the branch
git push origin your-branch-name
- Create a new Pull Request at https://github.com/youracct/sigstore-kms-venafi/pull/new/your-branch-name
Copyright © Venafi, Inc. All rights reserved.
sigstore-kms-venafi is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.
Please direct questions/comments to [email protected].