Skip to content

add support for sha512 in search #119

@monperrus

Description

@monperrus

Context

NPM attestations uses sha512,

eg rekor-cli search --sha 1fd6bbe16d7972d5ec0e6027b078ab6f37e0c8841a7f446020bd05c67536fd8fe47fbfe0366a1b2d8f4d79bb3e0223ac14d7755afcdc3e586991ff0e6243b094

Actual behavior

rekor does not support search for NPM packages via sha512

UI error:

Entered value does not match the hash format: '^(sha256:)?[0-9a-fA-F]{64}$|^(sha1:)?[0-9a-fA-F]{40}$'

Expected behavior

rekor supports search via sha512 by copy pasting the NPM sha512 as hash in the searchbox

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions