Introduction
This article explains how to resolve the case where the Software Composition page in Mendix Control Center shows greyed-out View details links for some deployment packages, and the Software Bill of Materials (SBOM) is not available.
The Software Composition page builds its view from an SBOM file named sbom.json that is stored inside the deployment package (.mda file). When the package is built without the SBOM, no Software Composition data exists for that package. This situation occurs mostly for packages built by a custom pipeline that calls MxBuild, while packages built through the Mendix Portal show Software Composition data.
Environment
- Applications hosted in any deployment type
- Deployment packages built with MxBuild in a custom CI/CD pipeline
Instructions/Procedure
Once the root cause has been identified, update the build command to include SBOM (Software Bill of Materials) generation for packages built using the custom pipeline.
- Open the affected .mda file as a zip archive and check whether the file sbom.json exists in the package. If the file is missing, the package was built without the SBOM.
- Locate the MxBuild command in the build pipeline.
- Add the
--generate-sbomparameter to the MxBuild command. - Keep the default SBOM location and file name. The platform looks for the SBOM in the default location.
- Build a new deployment package with the updated command and deploy it.
- Open Software Composition in Mendix Control Center and verify that View details is active for the new package. Packages that were built without the SBOM do not receive Software Composition data afterwards. Build and deploy a new package to get the data.
Please note that, the Software Composition page can take a few minutes, and in rare cases up to one day, to show data for a new package.
Outcome
The deployment package contains the sbom.json file, and the Software Composition page shows the findings and the SBOM for the package.
Internal information related
- 293056
- C0BDNGUKA7J/p1795511991692169
Additional information
Mendix documentation:
0 Comments