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

Cosign Verify fails with azure akv intermittent #3719

Open
suryabaiarava opened this issue Jun 4, 2024 · 1 comment
Open

Cosign Verify fails with azure akv intermittent #3719

suryabaiarava opened this issue Jun 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@suryabaiarava
Copy link

Hi Team,

We're encountering intermittent errors while using cosign verify in our container CICD pipelines. Where cosign verify fails, we receive the following error message:

main.go:69: error during command execution: no matching signatures: failed with vault verification.

Despite the error, we've noticed that the image digest value (SHA) remains unmodified, and the corresponding .sig file exists.

As a temporary workaround, resigning the image resolves the issue. However, we'd like to troubleshoot and resolve the underlying cause.

Cosign Version: v2.2.3
CLI Syntax: cosign verify --key azurekms:///keyname acrimage/repo:sha256:fdkkdkfdkfd

Could anyone provide guidance on how to troubleshoot this issue effectively?

Any assistance would be greatly appreciated.

Thank you!

@suryabaiarava suryabaiarava added the bug Something isn't working label Jun 4, 2024
@t-settle
Copy link

t-settle commented Jun 13, 2024

@suryabaiarava I noticed the same thing today using the hashivault KMS provider. I even pulled down and built Cosign from @ HEAD because I was seeing an issue related to sigstore/sigstore#1735. Wasn't sure if this was similarly related. But even the latest Cosign I am getting same error:

% cosign --key hashivault://cosign verify my-private-repo/thomas@$DIGEST Error: no matching signatures: failed vault verification failed vault verification main.go:69: error during command execution: no matching signatures: failed vault verification failed vault verification

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
None yet
Development

No branches or pull requests

2 participants