Repository navigation
Conversation
Vendor wolfssl-compliance-tooling f5385c8 so Autotools, CMake, Zephyr, and the IDE builds can publish a CycloneDX and SPDX inventory of libwolfmqtt.
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved configuration and dependency detection defects can produce inaccurate SBOMs across multiple build paths, while source distributions omit required files and explicit empty compiler flags incorrectly cause generation to fail.
8 open issues
Pass the selected wolfSSL version to the SBOM generator · New Include the port script and SBOM documentation in source distributions · New Capture generated Zephyr configuration and module settings · New Derive wolfSSL dependencies from effective TLS configuration · New Capture features from ESP-IDF and STM32Cube settings headers · New Preprocess conditional Visual Studio settings headers · New Read the Arduino package's actual options header · New Treat an explicitly empty --cflags value as valid · New
What changed in this PR
Adds software bill of materials (SBOM) generation across wolfMQTT’s library and embedded build routes using pinned, shared compliance tooling.
Changes:
- Adds Autotools and CMake targets for generating, installing, and removing SBOMs.
- Introduces a port wrapper for Zephyr, compilation databases, Visual Studio, and Arduino.
- Adds usage documentation and CI checks for generation, reproducibility, dependencies, and vendored-tooling drift.
| File | Description |
|---|---|
zephyr/CMakeLists.txt |
Adds a comment documenting the Zephyr SBOM command. |
tools/sbom/VERSION |
Records the tooling version. |
tools/sbom/validate_sbom.py |
Validates essential SBOM structure and dependency metadata. |
tools/sbom/sbom.am |
Provides Automake generation and installation targets. |
tools/sbom/sbom-driver.py |
Coordinates configuration capture and SBOM generation. |
tools/sbom/sbom-driver |
Provides a shell entry point for the driver. |
tools/sbom/README.md |
Documents shared tooling interfaces and synchronization. |
tools/sbom/frontends/zephyr_sbom.py |
Extracts Zephyr module sources and configuration. |
tools/sbom/frontends/included_sources.py |
Discovers source files compiled through includes. |
tools/sbom/frontends/iar_sbom.py |
Extracts IAR project sources and defines. |
tools/sbom/frontends/compdb_sbom.py |
Extracts compilation-database sources and defines. |
tools/sbom/build/uninstall-sbom.cmake |
Removes installed SBOM files. |
tools/sbom/build/sbom.mk |
Provides reusable plain-Make SBOM rules. |
tools/sbom/build/sbom.cmake |
Defines shared CMake SBOM targets. |
tools/sbom/build/sbom-with-sde.cmake |
Handles timestamps and private artifact staging. |
tools/sbom/build/sbom-validate.cmake |
Validates SPDX and produces tag-value output. |
tools/sbom/build/sbom-paths.cmake |
Resolves output filenames consistently. |
tools/sbom/build/sbom-fail.cmake |
Reports missing SBOM prerequisites. |
tools/sbom/build/install-sbom.cmake |
Installs generated SBOM files. |
tools/sbom/.wolfssl-compliance-tooling-rev |
Pins the vendored tooling revision. |
scripts/sbom-port.sh |
Adds wolfMQTT-specific port routing. |
README.md |
Introduces SBOM commands and links documentation. |
Makefile.am |
Integrates SBOM targets and distributes shared helpers. |
docs/SBOM.md |
Documents build routes, outputs, and licensing options. |
configure.ac |
Detects optional SBOM tools. |
CMakeLists.txt |
Wires wolfMQTT into shared CMake SBOM targets. |
.gitignore |
Allows tracking vendored build helpers. |
.github/workflows/sbom.yml |
Adds route validation and tooling-drift checks. |
Review effort: Balanced
CMake writes the wolfSSL version from the linked tree. The port script preprocesses the settings header. The wolfSSL dependency follows ENABLE_MQTT_TLS. The release tarball includes the port script and the SBOM document. Codespell keeps the CNA acronym in the vendored generator. The vendored included_sources.py mode matches the pin.
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
f5385c8(currentmaster) intotools/sbom/.make sbomandcmake --build build --target sbomhashlibwolfmqttand readwolfmqtt/options.h. TLS builds record wolfSSL as a dependency.scripts/sbom-port.sh..github/workflows/sbom.ymlruns the shared validator on each route and checks the vendored pin.Test plan
./configure --disable-tls --disable-examples && make sbomvalidates, and two runs withSOURCE_DATE_EPOCHmatch.cmake -B build -DWOLFMQTT_TLS=no && cmake --build build --target sbom, theninstall-sbomanduninstall-sbom.scripts/sbom-port.shfor Zephyr, compdb, Visual Studio, and Arduino. Each document validates.f5385c8: identity, compdb, Zephyr, autotools, Make, CMake install, sync, and gen-sbom.tlsbuilds wolfSSL and checks theDEPENDS_ONrelationship.compliance_tooling_driftmatches the pin.Made with Cursor