Repository navigation
Conversation
phlax
force-pushed
the
sbom-cyclonedx
branch
from
November 19, 2026 18:22
2e7ae6f to
46c2215
Compare
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 19, 2026
Test only: uses envoyproxy/toolshed#5638 from the fork. Adds `//tools/dependency:sbom`, a CycloneDX SBOM of the dependencies built into Envoy (those that `:dep-reachability` reaches in production), and prints a summary of it in the `deps` CI job. Signed-off-by: Ryan Northey <ryan@synca.io>
phlax
force-pushed
the
sbom-cyclonedx
branch
from
November 19, 2026 18:50
46c2215 to
a5ccda3
Compare
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 19, 2026
Test only: uses envoyproxy/toolshed#5638 from the fork. Adds `//tools/dependency:sbom`, a CycloneDX SBOM of the dependencies built into Envoy (those that `:dep-reachability` reaches in production), and prints a summary of it in the `deps` CI job. Signed-off-by: Ryan Northey <ryan@synca.io>
Adds `cyclonedx_sbom` (`//dependency:sbom.bzl`), which writes a CycloneDX 1.5 JSON SBOM from the dependency JSON that `cve_scan` reads, and the `sbom/cyclonedx` jq module behind it. Each dependency with a version becomes a component, with what its metadata gives of a package URL, CPE, license, digest and download location. Given a `dependency_reachability` map, only the dependencies reached in production are listed, so that the SBOM describes what is built and not everything that can be fetched. The output is deterministic (no serial number or timestamp). Signed-off-by: Ryan Northey <ryan@synca.io>
phlax
force-pushed
the
sbom-cyclonedx
branch
from
November 19, 2026 18:58
a5ccda3 to
d004057
Compare
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 19, 2026
Test only: uses envoyproxy/toolshed#5638 from the fork. Adds `//tools/dependency:sbom`, a CycloneDX SBOM of the dependencies built into Envoy (those that `:dep-reachability` reaches in production), and prints a summary of it in the `deps` CI job. Signed-off-by: Ryan Northey <ryan@synca.io>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds SBOM generation from the dependency metadata we already keep, as a first step towards publishing an SBOM with Envoy releases (envoyproxy/envoy#49459).
cyclonedx_sbomin//dependency:sbom.bzl: writes a CycloneDX 1.5 JSON SBOM from the dependency JSON thatcve_scanreads.sbom/cyclonedxjq module: the pieces behind it (bom,component,purl,licenses,hashes,reachable).Each dependency with a version becomes a component, with what its metadata gives:
pkg:github/<owner>/<repo>@<version>for a GitHub download, elsepkg:generic/<name>@<version>with the download URL;cpe, unlessN/A;id), an SPDX expression, or a named license;sha256or an SRIsource.integrity;Given a
dependency_reachabilitymap, only the dependencies reached in production from its roots are listed, so the SBOM describes what is built and not everything the workspace can fetch.The output is deterministic: no serial number, and no timestamp.
Testing:
jq/tests/sbom/cyclonedx: 11 module tests, passing withjq/run-tests.sh.//dependency/test:sbom_testand:sbom_all_test: the macro against fixtures. The expected files validate against the official CycloneDX 1.5 JSON schema. These two have not been built outside CI.Not here: SPDX output, the dependency graph between components (they are listed flat under the subject), and anything about container images or distro packages.