Skip to content

Commit

Permalink
feat: warning about the identity in the cosign verify.
Browse files Browse the repository at this point in the history
Updates the tutorial of how to verify the signatures of the Kubewarden
components adding a warning explaining how to have a more secure check by
using the full URL in the subject/identity field.

Signed-off-by: José Guilherme Vanz <[email protected]>
  • Loading branch information
jvanz committed Oct 11, 2024
1 parent b022ab0 commit c2356e2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/tutorials/verifying-kubewarden.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@ following info, where `*` matches any following characters:
- subject: `https://github.com/kubewarden/*`
- x509 certificate extension for GHA, "github_workflow_repository": `kubewarden/*`

:::important
The subject used in the `--certificate-identity-regexp` cosign CLI flag in this
tutorial utilizes the `https://github.com/kubewarden/*` values to simplify the
explanation. This allows artifacts from repositories with the same prefix to
bypass validation. For example: `github.com/kubewarden/policy-server1`.

If you want a more secure check you need to use a full URL:
```
https://github.com/kubewarden/policy-server/.github/workflows/container-image.yml@refs/tags/v1.18.0
```
Note that the URL have the full repository path, the workflow file path, and
the version tag.
:::

## Helm charts

You can find our Helm charts in our `https://` traditional Helm repository under
Expand Down

0 comments on commit c2356e2

Please sign in to comment.