Conversation
Re-vendor wolfGlass at 3b708da. wolfcrypt stays a nested component (name, version, PURL). Matching uses the wolfssl CPE only. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The identifier behavior lacks a regression assertion and leaves contradictory matching guidance in vendored comments.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Updates SBOM generation to treat nested wolfcrypt as provenance-only while retaining wolfSSL CPE matching.
Changes:
- Removes wolfcrypt CPEs from CycloneDX and SPDX output.
- Requires wolfcrypt PURLs in validation and updates documentation.
- Re-vendors wolfGlass at
3b708daand bumps generator version to 1.9.
File summaries
| File | Description |
|---|---|
tools/sbom/validate_sbom.py |
Accepts wolfcrypt with PURL but no CPE. |
tools/sbom/gen-sbom |
Omits nested wolfcrypt CPEs. |
tools/sbom/build/sbom.mk |
Updates Make integration documentation. |
tools/sbom/build/sbom.cmake |
Updates CMake integration documentation. |
tools/sbom/.wolfglass-rev |
Updates wolfGlass revision pin. |
Makefile |
Documents wolfSSL CPE matching. |
docs/SBOM.md |
Documents identifier semantics. |
Review details
Suppressed comments (1)
tools/sbom/gen-sbom:1086
- The new conditional is the behavior this PR changes, but the SBOM workflow only performs structural validation and never asserts the identifier set. A future vendor sync could re-add the nested wolfcrypt CPE (or drop the parent wolfssl CPE) while the current checks remain green; add a focused generated-SBOM assertion for both documents.
# wolfcrypt has no CPE: matching rides on the parent wolfssl CPE.
if meta.get('cpe'):
comp['cpe'] = meta['cpe'](version)
- Files reviewed: 7/7 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+986
to
+987
| # Coat: wolfssl (matching CPE) + nested wolfcrypt (PURL / provenance). | ||
| # Sources remain in the merkle hash; the wolfssl CPE is what NVD matches. |
Comment on lines
+383
to
+388
| # wolfCrypt is co-shipped in the wolfSSL tree. Embedders compile those | ||
| # sources into the image. Record it as a nested component so the SBOM | ||
| # shows provenance (supplier, version, PURL). Do not emit a wolfcrypt | ||
| # CPE: NVD files crypto CVEs against cpe:2.3:a:wolfssl:wolfssl, not | ||
| # wolfcrypt (zero CVEs on that product today). A second CPE on the same | ||
| # sources is a future double-match risk once a CNA starts filing there. |
Makefile no longer says a scan matches wolfssl:wolfcrypt. Re-vendor wolfGlass at 48796ea so the generator contract exempts nested wolfcrypt. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
3b708da(wolfGlass wolfBoot TPM support #27).#wolfcrypt). No wolfcrypt CPE.cpe:2.3:a:wolfssl:wolfssl:<version>.Test plan
make sbom TARGET=sim— nested wolfcrypt has PURL, nocpecpe:2.3:a:wolfssl:wolfssl:<version>3b708da