Skip to content

[K9VULN-13636] Allowlist datadog:version-constraint SBOM component property#2295

Merged
piloulacdog merged 1 commit into
masterfrom
pierrelouis.lacorte/K9VULN-13636-dependency-management-datadog-ci
Apr 27, 2026
Merged

[K9VULN-13636] Allowlist datadog:version-constraint SBOM component property#2295
piloulacdog merged 1 commit into
masterfrom
pierrelouis.lacorte/K9VULN-13636-dependency-management-datadog-ci

Conversation

@piloulacdog

@piloulacdog piloulacdog commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

🚀 Motivation

The datadog:version-constraint SBOM component property needs to be recognized and forwarded during SBOM uploads so it is not stripped from the payload. This is part of a broader effort to support dependency management version constraint tracking in SCA results.

📝 Summary

  • Added VERSION_CONSTRAINT_KEY = 'datadog:version-constraint' constant to constants.ts
  • Added handling of the new property key in the component extraction loop in payload.ts, mapping it to a version_constraint boolean field on Dependency
  • Also refactored opaque to reuse the same parseTrueOrUndefined helper for consistency
  • Added version_constraint to the Dependency interface in types.ts
  • Added a fixture and test cases verifying the property is correctly extracted and that evidence.occurrences location data is preserved alongside it

🧪 Testing

  • New tests were added for new logic.
  • Existing tests were updated for new logic, and not only so that they pass!
  • Benchmark results prove that performance is the same or better.

Run locally, field uploaded
Screenshot 2026-04-27 at 11 08 49

🆘 Recovery

Notes for on-call - select only one:

  • The change can be rolled back.
  • Do not roll back. Why?:

@piloulacdog piloulacdog added the static-analysis Related to [sarif, sbom] label Apr 27, 2026
@piloulacdog
piloulacdog marked this pull request as ready for review April 27, 2026 10:09
@piloulacdog
piloulacdog requested review from a team as code owners April 27, 2026 10:09
@piloulacdog
piloulacdog merged commit 43d1dee into master Apr 27, 2026
29 of 30 checks passed
@piloulacdog
piloulacdog deleted the pierrelouis.lacorte/K9VULN-13636-dependency-management-datadog-ci branch April 27, 2026 12:54
@ava-silver ava-silver mentioned this pull request Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

static-analysis Related to [sarif, sbom]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants