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 with goreleaser fail with error: Bad Request PKCE S256 is required #2104

Closed
xmlking opened this issue Jul 26, 2022 · 2 comments · Fixed by #2163
Closed

Cosign with goreleaser fail with error: Bad Request PKCE S256 is required #2104

xmlking opened this issue Jul 26, 2022 · 2 comments · Fixed by #2163
Labels
bug Something isn't working

Comments

@xmlking
Copy link

xmlking commented Jul 26, 2022

git fork repo https://github.com/goreleaser/supply-chain-example.git

run following command:

goreleaser release --snapshot --rm-dist

When I try to login via GitHub getting following error Bad Request PKCE S256 is required.

image

  • calculating checksums
  • signing artifacts
    • refreshing checksums                           file=checksums.txt
    • signing                                        artifact=checksums.txt certificate=dist/checksums.txt.pem cmd=cosign signature=dist/checksums.txt.sig
    • Using payload from: dist/checksums.txt         artifact=checksums.txt certificate=dist/checksums.txt.pem cmd=cosign signature=dist/checksums.txt.sig
    • Generating ephemeral keys...                   artifact=checksums.txt certificate=dist/checksums.txt.pem cmd=cosign signature=dist/checksums.txt.sig
    • Retrieving signed certificate...               artifact=checksums.txt certificate=dist/checksums.txt.pem cmd=cosign signature=dist/checksums.txt.sig
    •                                                artifact=checksums.txt certificate=dist/checksums.txt.pem cmd=cosign signature=dist/checksums.txt.sig
    •         Note that there may be personally identifiable information associated with this signed artifact. artifact=checksums.txt certificate=dist/checksums.txt.pem cmd=cosign signature=dist/checksums.txt.sig
    •         This may include the email address associated with the account with which you authenticate. artifact=checksums.txt certificate=dist/checksums.txt.pem cmd=cosign signature=dist/checksums.txt.sig
    •         This information will be used for signing this artifact and will be stored in public transparency logs and cannot be removed later. artifact=checksums.txt certificate=dist/checksums.txt.pem cmd=cosign signature=dist/checksums.txt.sig
    • Non-interactive mode detected, using device flow. artifact=checksums.txt certificate=dist/checksums.txt.pem cmd=cosign signature=dist/checksums.txt.sig
    • Enter the verification code AAAA-AAAA in your browser at: https://oauth2.sigstore.dev/auth/device?user_code=AAAA-AAAA artifact=checksums.txt certificate=dist/checksums.txt.pem cmd=cosign signature=dist/checksums.txt.sig
    • Code will be valid for 300 seconds             artifact=checksums.txt certificate=dist/checksums.txt.pem cmd=cosign signature=dist/checksums.txt.sig
^C    ⨯ release failed after 34s               error=received: interrupt

@xmlking xmlking added the bug Something isn't working label Jul 26, 2022
@erichs
Copy link

erichs commented Aug 14, 2022

Got the same results in GitHub Actions with goreleaser-action@v3, using cosign-installer v2.5.0 (which defaults to release 1.10.0 currently).

Also, got the same result (PKCE S256 required) when attempting a local cosign with:

GitVersion:    1.10.1
GitCommit:     a39ce91fadc582e0efce3321744a79ccd3c8b39c
GitTreeState:  "clean"
BuildDate:     2022-08-04T16:59:14Z
GoVersion:     go1.18.5
Compiler:      gc
Platform:      darwin/amd64

In case that helps.

@dlorenc
Copy link
Member

dlorenc commented Aug 14, 2022

cc @bobcallaway

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

Successfully merging a pull request may close this issue.

3 participants