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

Fail to install tools because of the error of Cosign #2759

Closed
suzuki-shunsuke opened this issue Mar 20, 2024 · 5 comments
Closed

Fail to install tools because of the error of Cosign #2759

suzuki-shunsuke opened this issue Mar 20, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@suzuki-shunsuke
Copy link
Member

suzuki-shunsuke commented Mar 20, 2024

aqua info

aqua v2.25.0

Overview

aqua uses Cosign v1.

https://aquaproj.github.io/docs/reference/security/cosign-slsa/#verify-packages-with-cosign

Recently, Sigstore has published a new TUF trust root.

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

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

A new TUF trust root doesn't support Cosign v1 but aqua is still using Cosign v1, so aqua fails to install tools which enable Cosign verification.
Due to the issue, aqua-installer can't install aqua.

To solve the issue, we have two options.

How to reproduce

Run aqua-installer or aqua update-aqua.

Debug output

$ 

Expected behaviour

aqua and aqua-installer can install tools.

Actual behaviour

It fails to instal tools.

https://github.com/aquaproj/aqua-registry/actions/runs/8355302244/job/22870132650

time="2024-03-20T07:35:36Z" level=info msg="Verification by Cosign failed temporarily, retring" aqua_version=2.25.0 env=linux/amd64 exe_name=aqua-registry package_name=aquaproj/registry-tool package_version=v0.2.3 program=aqua registry=standard retry_count=1 wait_time=459ms
Error: verifying blob [/tmp/091089404]: getting Fulcio roots: initializing tuf: unable to initialize client, local cache may be corrupt: invalid key
main.go:62: error during command execution: verifying blob [/tmp/091089404]: getting Fulcio roots: initializing tuf: unable to initialize client, local cache may be corrupt: invalid key

Note

No response

@suzuki-shunsuke suzuki-shunsuke added the bug Something isn't working label Mar 20, 2024
@suzuki-shunsuke suzuki-shunsuke pinned this issue Mar 20, 2024
@suzuki-shunsuke
Copy link
Member Author

About aqua-installer, we solve this issue by disabling cosign verification temporarily.

@suzuki-shunsuke
Copy link
Member Author

suzuki-shunsuke commented Mar 20, 2024

What to do when you face the issue

export AQUA_DISABLE_COSIGN=true
export AQUA_DISABLE_SLSA=true

GitHub Actions Workflows

env:
  AQUA_DISABLE_COSIGN: "true"
  AQUA_DISABLE_SLSA: "true"

@suzuki-shunsuke
Copy link
Member Author

suzuki-shunsuke commented Mar 20, 2024

We're working on upgrading Cosign to v2, but it is being blocked by slsa-framework/slsa-github-generator#3350 .
We're waiting for a new release of slsa-github-generator.

@suzuki-shunsuke
Copy link
Member Author

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

@suzuki-shunsuke
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

1 participant