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

Draft: SBOM refactor for registry images #298

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add buildpack ID to image-scoped layers
Signed-off-by: Natalie Arellano <narellano@vmware.com>
  • Loading branch information
natalieparellano committed Oct 2, 2023
commit 17ea26f3b565057916aef6a6a6548705548024fe
7 changes: 6 additions & 1 deletion text/0000-refactor-sbom.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ The `exporter` will turn `/layers/sbom/launch/my-buildpack/launch.sbom.cdx.json`
[[attestations.statement.subject]]
name = "my.registry.io/my-namespace/my-image:my-tag"
digest = "sha256:$IMAGE_DIGEST"

[[attestations.annotations]]
name = "io.buildpacks.buildpack.id"
value = "my-buildpack"
```

And the `signer` will use `cosign` to turn this into an in-toto statement that looks like:
Expand Down Expand Up @@ -175,6 +179,7 @@ And serialize the data as a layer in an OCI image manifest that looks like:
"dev.sigstore.cosign/bundle": "FOO",
"dev.sigstore.cosign/certificate": "BAR",
"dev.sigstore.cosign/chain": "BAZ",
"io.buildpacks.buildpack.id": "my-buildpack",
"predicateType": "https://cyclonedx.org/bom"
}
}
Expand Down Expand Up @@ -257,11 +262,11 @@ And serialize the statement in a manifest that looks like:
"size": 1234,
"digest": "sha256:s0m3d1g3st",
"annotations": {
"io.buildpacks.buildpack.id": "my-buildpack",
"dev.cosignproject.cosign/signature": "",
"dev.sigstore.cosign/bundle": "FOO",
"dev.sigstore.cosign/certificate": "BAR",
"dev.sigstore.cosign/chain": "BAZ",
"io.buildpacks.buildpack.id": "my-buildpack",
"predicateType": "https://cyclonedx.org/bom"
}
}
Expand Down