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

[docs]: Installation routine not working - cosign verification failed #1070

Closed
robert-heinzmann-logmein opened this issue Nov 28, 2023 · 2 comments
Labels
docs Documentation needs triage Waiting for discussion / prioritization by team

Comments

@robert-heinzmann-logmein

Hello!

I am trying to install (using cosign verification) the step-cli on Linux package. I follow https://smallstep.com/docs/step-cli/installation/index.html#linux-packages-amd64 and run:

shell$ ls -al step_linux_0.25.0_amd64.tar.gz*
... 12496986 Sep 27 07:50 step_linux_0.25.0_amd64.tar.gz
... 3192 Sep 27 07:51 step_linux_0.25.0_amd64.tar.gz.pem
... 96 Sep 27 07:51 step_linux_0.25.0_amd64.tar.gz.sig
shell$ cosign verify-blob   --certificate step_linux_0.25.0_amd64.tar.gz.pem   --signature step_linux_0.25.0_amd64.tar.gz.sig   --certificate-identity-regexp "https://github\.com/smallstep/cli/.*"   --certificate-oidc-issuer https://token.actions.githubusercontent.com   step_linux_0.25.0_amd64.tar.gz

And I get this error:

Error: none of the expected identities matched what was in the certificate, got subjects [https://github.com/smallstep/workflows/.github/workflows/goreleaser.yml@refs/heads/main] with issuer https://token.actions.githubusercontent.com
main.go:74: error during command execution: none of the expected identities matched what was in the certificate, got subjects [https://github.com/smallstep/workflows/.github/workflows/goreleaser.yml@refs/heads/main] with issuer https://token.actions.githubusercontent.com

Is this a documentation bug ?

Affected area/feature

Installation

@robert-heinzmann-logmein robert-heinzmann-logmein added docs Documentation needs triage Waiting for discussion / prioritization by team labels Nov 28, 2023
@hslatman
Copy link
Member

Hi @robert-heinzmann-logmein,

Can you try it with the fix from #1025? That was created in response to #1023, which reads similar to your case. We haven't released a new version yet, so the instructions may not be up-to-date everywhere.

@robert-heinzmann-logmein
Copy link
Author

Yes that works now. Thank you

shell$ cosign verify-blob   --certificate step_linux_0.25.0_amd64.tar.gz.pem   --signature step_linux_0.25.0_amd64.tar.gz.sig --certificate-identity-regexp "https://github\.com/smallstep/workflows/.*"   --certificate-oidc-issuer https://token.actions.githubusercontent.com   step_linux_0.25.0_amd64.tar.gz
Verified OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation needs triage Waiting for discussion / prioritization by team
Projects
None yet
Development

No branches or pull requests

2 participants