-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Link to supply-chain details rather than including inline.
- Loading branch information
1 parent
d6ea0fe
commit 06af0dd
Showing
2 changed files
with
8 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,12 @@ cosign verify-attestation \ | |
$IMAGE | ||
``` | ||
|
||
Note that the in-toto document is base64 encoded in the `.payload` attribute | ||
!!! note | ||
Knative images are signed in `KEYLESS` mode. To learn more about keyless signing, please refer to | ||
[Keyless Signatures](https://github.com/sigstore/cosign/blob/main/KEYLESS.md#keyless-signatures) | ||
Our signing identity(Subject) for our releases is `[email protected]` and the Issuer is `https://accounts.google.com` | ||
|
||
The in-toto document is base64 encoded in the `.payload` attribute | ||
of the attestation; you can use `jq` to extract this with the following | ||
invocation: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,2 @@ | ||
## Verifying image signatures | ||
|
||
Knative releases from 1.9 onwards are signed with [cosign](https://docs.sigstore.dev/quickstart/quickstart-cosign/). | ||
|
||
1. Install [cosign](https://docs.sigstore.dev/cosign/system_config/installation/) and [jq](https://stedolan.github.io/jq/). | ||
|
||
1. Extract the images from a manifeset and verify the signatures. | ||
|
||
```bash | ||
curl -sSL {{ artifact(repo="serving",file="serving-core.yaml") }} \ | ||
| grep 'gcr.io/' | awk '{print $2}' | sort | uniq \ | ||
| xargs -n 1 \ | ||
cosign verify -o text \ | ||
--certificate-identity=signer@knative-releases.iam.gserviceaccount.com \ | ||
--certificate-oidc-issuer=https://accounts.google.com | ||
``` | ||
|
||
!!! note | ||
Knative images are signed in `KEYLESS` mode. To learn more about keyless signing, please refer to | ||
[Keyless Signatures](https://github.com/sigstore/cosign/blob/main/KEYLESS.md#keyless-signatures) | ||
Our signing identity(Subject) for our releases is `[email protected]` and the Issuer is `https://accounts.google.com` | ||
Optionally, you may choose to [verify the images before installing](/docs/reference/security/verifying-images.md). | ||
You may also need the image verification information if your cluster is configured to verify image signatures during pod execution. |