Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-25619

Embed an SBOM of the bundled npm packages in XWiki webjars

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • 18.10.0-rc-1
    • 17.10.14
    • Webjar
    • None
    • Unknown

    Description

      The npm packages that our webjars bundle (compiled by Vite from our pnpm workspace) don't appear in any Maven dependency, so they are missing from the SBOMs of XWiki and vulnerability scanners can't report advisories affecting them.

      Proposal

      During the release build of each XWiki-built webjar, run pnpm sbom --sbom-format cyclonedx --prod --filter <package> (native since pnpm 11, which we use) and package the result in the webjar under META-INF/sbom/. It's based on the pnpm lockfile and lists only the production dependencies, i.e. what ends up in the bundle.

      The Commons SBOM mojo then folds it into the SBOM of every artifact depending on the webjar, up to the WAR.

      Design: https://design.xwiki.org/xwiki/bin/view/Proposal/SBOMPerRelease
      Forum: https://forum.xwiki.org/t/publishing-an-sbom-with-every-xwiki-release/18996

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: