Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Cosign to v2.0 #1665

Closed
suzuki-shunsuke opened this issue Feb 25, 2023 · 11 comments
Closed

Upgrade Cosign to v2.0 #1665

suzuki-shunsuke opened this issue Feb 25, 2023 · 11 comments
Labels
cosign enhancement New feature or request security

Comments

@suzuki-shunsuke
Copy link
Member

package cosign
const Version = "v1.13.1"
func Checksums() map[string]string {
return map[string]string{
"darwin/amd64": "1d164b8b1fcfef1e1870d809edbb9862afd5995cab63687a440b84cca5680ecf",
"darwin/arm64": "02bef878916be048fd7dcf742105639f53706a59b5b03f4e4eaccc01d05bc7ab",
"linux/amd64": "a50651a67b42714d6f1a66eb6773bf214dacae321f04323c0885f6a433051f95",
"linux/arm64": "a7a79a52c7747e2c21554cad4600e6c7130c0429017dd258f9c558d957fa9090",
"windows/amd64": "78a2774b68b995cc698944f6c235b1c93dcb6d57593a58a565ee7a56d64e4b85",
}
}

@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Feb 25, 2023
@suzuki-shunsuke
Copy link
Member Author

Breaking Changes

COSIGN_EXPERIMENTAL=1 is no longer required to have identity-based (“keyless”) signing and transparency.

Verification now requires identity flags, --certificate-identity and --certificate-oidc-issuer

verify-blob no longer searches for a certificate. You must provide one with either --certificate or --bundle.

@suzuki-shunsuke
Copy link
Member Author

suzuki-shunsuke commented Mar 11, 2023

Either --certificate-identity or --certificate-identity-regexp must be set for keyless flows

--certificate-identity string

The identity expected in a valid Fulcio certificate.
Valid values include email address, DNS names, IP addresses, and URIs.

--certificate-identity-regexp string

A regular expression alternative to --certificate-identity.
Accepts the Go regular expression syntax described at https://golang.org/s/re2syntax. .

@suzuki-shunsuke
Copy link
Member Author

@suzuki-shunsuke suzuki-shunsuke unpinned this issue Jul 25, 2023
@suzuki-shunsuke suzuki-shunsuke pinned this issue Mar 20, 2024
@suzuki-shunsuke
Copy link
Member Author

suzuki-shunsuke commented Mar 20, 2024

https://twitter.com/szkdash/status/1770279982088233427

https://sigstore.slack.com/archives/C01DGF0G8U9/p1710871645742299

Probably we have to handle this issue as soon as possible because a new TUF trust root for Sigstore has been published and it isn't compatible with Cosign v1.

https://blog.sigstore.dev/tuf-root-update/

v1.x will not work, though we are backporting support with an upcoming v1.13.3 release. We strongly encourage updating to Cosign v2 for the latest bug and security fixes

Workaround: Disable Cosign

https://aquaproj.github.io/docs/reference/security/cosign-slsa/#how-to-disable-cosign-and-slsa

As a workaround, you can disable Cosign verification.

@suzuki-shunsuke
Copy link
Member Author

https://github.com/aquasecurity/trivy/blob/8ec3938e01a93855503e3400eae9831abbb5de4a/docs/getting-started/signature-verification.md?plain=1#L14

--certificate-identity-regexp 'https://github\.com/aquasecurity/trivy/\.github/workflows/.+'

https://github.com/goreleaser/goreleaser/blob/08851dce616615c966ece450631d3d0a822430cc/www/docs/install.md?plain=1#L297

--certificate-identity 'https://github.com/goreleaser/goreleaser/.github/workflows/release.yml@refs/tags/__VERSION__'

--certificate-oidc-issuer

--certificate-oidc-issuer 'https://token.actions.githubusercontent.com'

https://github.com/goreleaser/goreleaser/blob/08851dce616615c966ece450631d3d0a822430cc/www/docs/install.md?plain=1#L299-L300

--cert 'https://github.com/goreleaser/goreleaser/releases/download/__VERSION__/checksums.txt.pem' \
--signature 'https://github.com/goreleaser/goreleaser/releases/download/__VERSION__/checksums.txt.sig' \

suzuki-shunsuke added a commit to suzuki-shunsuke/go-release-workflow that referenced this issue Mar 20, 2024
@suzuki-shunsuke suzuki-shunsuke changed the title Update Cosign to v2.0 Upgrade Cosign to v2.0 Mar 20, 2024
@suzuki-shunsuke
Copy link
Member Author

@suzuki-shunsuke
Copy link
Member Author

suzuki-shunsuke commented Mar 20, 2024

  • pkgs/aquaproj/aqua-registry-updater/registry.yaml
  • pkgs/aquaproj/registry-tool/registry.yaml
  • pkgs/argoproj/argo-workflows/registry.yaml
  • pkgs/chainguard-dev/apko/registry.yaml
  • pkgs/chainguard-dev/melange/registry.yaml
  • pkgs/charmbracelet/gum/registry.yaml
  • pkgs/goreleaser/nfpm/registry.yaml
  • pkgs/kubernetes-sigs/zeitgeist/registry.yaml
  • pkgs/lintnet/lintnet/registry.yaml
  • pkgs/sigstore/cosign/pkg.yaml
  • pkgs/sigstore/cosign/registry.yaml
  • pkgs/suzuki-shunsuke/ci-info/registry.yaml
  • pkgs/suzuki-shunsuke/circleci-config-merge/registry.yaml
  • pkgs/suzuki-shunsuke/cmdx/registry.yaml
  • pkgs/suzuki-shunsuke/ghalint/registry.yaml
  • pkgs/suzuki-shunsuke/ghcp/registry.yaml
  • pkgs/suzuki-shunsuke/github-comment/registry.yaml
  • pkgs/suzuki-shunsuke/mkghtag/registry.yaml
  • pkgs/suzuki-shunsuke/nllint/registry.yaml
  • pkgs/suzuki-shunsuke/pinact/registry.yaml
  • pkgs/suzuki-shunsuke/renovate-issue-action/registry.yaml
  • pkgs/suzuki-shunsuke/tfcmt/registry.yaml
  • pkgs/suzuki-shunsuke/tfprovidercheck/registry.yaml
  • pkgs/terraform-linters/tflint/registry.yaml
  • pkgs/tfmigrator/cli/registry.yaml
  • pkgs/updatecli/updatecli/registry.yaml
  • pkgs/yuyaban/gitlab-comment/registry.yaml

@suzuki-shunsuke
Copy link
Member Author

@suzuki-shunsuke
Copy link
Member Author

v2.25.1 is out 🎉
https://github.com/aquaproj/aqua/releases/tag/v2.25.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cosign enhancement New feature or request security
Projects
Status: Done
Development

No branches or pull requests

1 participant