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

SBOMs report all-zero SHA1 hash for release binaries #2175

Open
hidde-jan opened this issue Jul 11, 2024 · 2 comments
Open

SBOMs report all-zero SHA1 hash for release binaries #2175

hidde-jan opened this issue Jul 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@hidde-jan
Copy link

Description

When inspecting the SBOMs attached to the latest release of rekor, the reported SHA1 hashes are all-zero. For example:

{
  //...
    "files": [
        {
            "fileName": "/rekor-cli-linux-amd64",
            "SPDXID": "SPDXRef-File-rekor-cli-linux-amd64-364aab0fbaf403d4",
            "checksums": [
                {
                    "algorithm": "SHA1",
                    "checksumValue": "0000000000000000000000000000000000000000"
                }
            ],
            "licenseConcluded": "NOASSERTION",
            "copyrightText": ""
        }
    ],
  //...
}

A quick inspection seems to indicate these SBOMs are generated by goreleaser.

Ideally, the sbom would include a proper hash of the binary.

Version

Not applicable

@hidde-jan hidde-jan added the bug Something isn't working label Jul 11, 2024
@haydentherapper
Copy link
Contributor

@cpanato any idea why? At a glance at documentation, I don’t see anything about configuring checksums

@cpanato
Copy link
Member

cpanato commented Jul 16, 2024

I've reproduced the issue, and it is not in the goreleaser, it is in the syft tool that is used to generate the sbom

and seems there is an issue already for this anchore/syft#2307

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

3 participants