davsclaus opened a new pull request, #30555: URL: https://github.com/apache/camel/pull/30555
## Description [CAMEL-27343](https://issues.apache.org/jira/browse/CAMEL-27343): first step towards a Maven plugin goal that checks a project for known vulnerabilities in CI/CD ([CAMEL-27345](https://issues.apache.org/jira/browse/CAMEL-27345)), and the offline OSV database ([CAMEL-27344](https://issues.apache.org/jira/browse/CAMEL-27344)). The CVE audit lived in the Camel CLI: the scan in camel-jbang-core (`common.cve`) and `SecurityAdvisoryHelper` in camel-jbang-run. A Maven plugin should not pull in camel-jbang-core, so it moves to a new small module: - `catalog/camel-catalog-cve`, package `org.apache.camel.catalog.cve`: `OsvClient`, `CveAudit`, `CveScan`, `CveFinding`, `CveArtifact`, `CvssScore`, `DependencyChains`, `Dependency`, `CamelAdvisory`, `CveUsage`, `SecurityAdvisoryHelper`, with their tests (moved with `git mv`, only the package changes). - Dependencies: camel-catalog, camel-util-json and maven-artifact (`ComparableVersion`). - The version comparison of the advisories moves along as `AdvisoryVersions`; `VersionHelper` of camel-jbang-run delegates `compare`, `isGE`, `isLE` and `isBetween` to it, so there is one implementation (`VersionHelperTest` still covers it). - `DependencyChains` reads the embedded POMs with its own secure `DocumentBuilderFactory` (same features as `XmlHelper` of camel-jbang-run). - Registered in `catalog/pom.xml`, the parent dependency management and `camel-bom`. No change in behaviour: `camel dependency audit`, the CVE Audit screen of the TUI and the MCP advisory tools only change their imports. Why `catalog/` and not `tooling/`: the scan needs camel-catalog (advisories, component schemes), and the modules that depend on the catalog live there (camel-catalog-maven, camel-route-parser, camel-report-maven-plugin). ## Tests Locally, `mvn -o verify` of camel-catalog-cve, camel-jbang-run, camel-jbang-core and camel-jbang-plugin-tui: all green (29 + 356 + 3439 + 2666 tests). In camel-jbang-mcp the advisory and dependency check tests pass (54). _Claude Code on behalf of Claus Ibsen (davsclaus)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
