Skip to content

keyless verify-attestation dereferences nil pointer #919

Closed
@mattmoor

Description

Description
To reproduce this, you effectively need a cosign built at HEAD since keyless attestation was broken until earlier today.

Run the following:

COSIGN_EXPERIMENTAL=true cosign attest --predicate foo.json <DIGEST>
COSIGN_EXPERIMENTAL=true cosign verify-attestation <DIGEST>

The second command will panic because pubKey is nil here:

co.SigVerifier = &reverseDSSEVerifier{
Verifier: dsse.WrapVerifier(pubKey),
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions