**Subject** `[DISCUSS] Ship per-archive SBOMs with Apache IoTDB releases`

Hi all,

The Apache Trusted Releases (ATR) checks for IoTDB 2.0.12 suggested adding 
matching software bills of materials (SBOMs) for 12 release ZIPs. Our Maven 
release build already generates a project-wide SBOM. I’d like to propose 
publishing a CycloneDX JSON alongside each source, Java distribution, and C++ 
SDK ZIP so users can see the components associated with the package they 
download. [IoTDB 2.0.12 ATR 
checks](https://releases.apache.org/checks/iotdb/2.0.12)

The proposal is to generate the JSON during Maven packaging and upload it 
alongside its ZIP in ATR. For example, `apache-iotdb-2.0.13-all-bin.zip` would 
be accompanied by `apache-iotdb-2.0.13-all-bin.zip.cdx.json`. Each SBOM would 
record the SHA-256 of its ZIP.

- **Source ZIP** keeps the existing Maven dependency graph.
- **Java distribution ZIPs** use Syft to inventory the JARs actually shipped in 
each archive.
- **C++ SDK ZIPs** use the corresponding CMake build metadata for Thrift and 
Boost, and include OpenSSL when it’s bundled or statically linked.

I’ve opened a PR with the implementation and verified Maven packaging for the 
source and Java distributions and the macOS C++ SDK. The generated JSON passed 
CycloneDX schema validation and matched the SHA-256 of each ZIP. [PR 
#19316](https://github.com/apache/iotdb/pull/19316)

Does this fit our release process? In particular, would adding Syft to the Java 
release build be acceptable?

Thanks!

Reply via email to