Skip to content

CXX-3021 Add SBOM Lite and update release instructions #1134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 9, 2024

Conversation

eramongodb
Copy link
Contributor

Resolves CXX-3021. No CI automation is included in this PR. Instead, the release instructions include commands documenting how to update the SBOM Lite file.

Three dependencies are identified:

  • C Driver (via FetchContent)
  • mnmlstc/core (via FetchContent)
  • Catch2 (bundled)

No attempt is made to conditionally specify SBOM Lite according to the build configuration (specifically concerning mnmlstc/core), if such a pattern is even possible with PURL.

To better assist with specifying/documenting dependencies of this kind, all FetchContent-related routines are moved as-is into Fetch* modules under the cmake/ subdirectory which are then referenced by etc/purls.txt. Note this required moving up the set(CMAKE_MODULE_PATH ...) higher in the root CMakeLists.txt file.

@eramongodb eramongodb requested a review from kevinAlbs May 8, 2024 21:15
@eramongodb eramongodb self-assigned this May 8, 2024
etc/purls.txt Outdated
pkg:github/mnmlstc/[email protected]

# Catch2 is bundled as src/third_party/catch/include/catch.hpp.
pkg:github/catchorg/Catch2/@v2.13.7#single_include/catch2/catch.hpp
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest removing Catch2 due to being a test dependency.

From Centralized Vulnerability Management README:

Test- and build-time dependencies (such as the compiler) do not need to be declared.

We only need to report and fix CVEs in dependencies we actually ship, so reducing any false-positives results in less auditing and updating overhead.

@eramongodb eramongodb requested a review from kevinAlbs May 9, 2024 15:51
@eramongodb eramongodb merged commit e9a9b79 into mongodb:master May 9, 2024
@eramongodb eramongodb deleted the cxx-3021 branch May 9, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants