Skip to content

DDOT FIPS with an incompatible version: fail instead of falling back to non-FIPS#2527

Open
agagniere wants to merge 4 commits intomainfrom
agagniere/fips-ddot-strict
Open

DDOT FIPS with an incompatible version: fail instead of falling back to non-FIPS#2527
agagniere wants to merge 4 commits intomainfrom
agagniere/fips-ddot-strict

Conversation

@agagniere
Copy link
Copy Markdown
Contributor

@agagniere agagniere commented Apr 1, 2026

Instead of falling back to a non-fips version with a warning, fail with a clear error when an fips variant of ddot-collector or agent -full is requested

What this PR does / why we need it:

This is a simplification of #2366
that is already merged but after talking to stakeholders I realized that in the case of FIPS,
a hard fail is preferable to a warning + fallback on non-FIPS images

Special notes for your reviewer:

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • All commits are signed and show as "Verified" on GitHub (see: signing commits)
  • Chart Version semver bump label has been added (use <chartName>/minor-version, <chartName>/patch-version, or <chartName>/no-version-bump)
  • For datadog or datadog-operator chart or value changes, update the test baselines (run: make update-test-baselines)
  • For datadog chart changes, received ✅ from a member of your team

GitHub CI takes care of the below, but are still required:

  • Documentation has been updated with helm-docs (run: .github/helm-docs.sh)
  • CHANGELOG.md has been updated
  • Variables are documented in the README.md

…th a clear error when an fips variant of ddot-collector or agent -full is requested
@agagniere agagniere self-assigned this Apr 1, 2026
@agagniere agagniere added the chart/datadog This issue or pull request is related to the datadog chart label Apr 1, 2026
@agagniere agagniere requested review from a team as code owners April 1, 2026 10:38
@agagniere agagniere added the datadog/patch-version Patch version bump for datadog chart label Apr 1, 2026
@agagniere agagniere requested a review from liustanley April 1, 2026 10:38
dd-octo-sts bot added 2 commits April 1, 2026 10:39
- bump version for datadog to 3.198.1 (patch-version)
- update changelog for datadog with version 3.198.1
- update readme for datadog
- bump version for datadog to 3.198.1 (patch-version)
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6cc3ec1d5b

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

{{/* Guard: -fips-full images are only available from 7.78.0 */}}
{{- if and (eq $tagSuffix "-fips-full") (not .root.agents.image.doNotCheckTag) (semverCompare "<7.78.0" (include "get-agent-version" (dict "Values" .root))) -}}
{{- $tagSuffix = "-full" -}}
{{- fail "The FIPS variant of the -full agent image is not available before 7.78.0. Upgrade agents.image.tag to 7.78.0+ or set useFIPSAgent to false." -}}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: Update error message to mention agents.image.doNotCheckTag=true as the escape hatch

{{- $image := merge (dict "tag" $imageTag) .Values.otelAgentGateway.image -}}
{{- if and (eq (include "use-fips-images" .Values) "true") (not .Values.otelAgentGateway.image.doNotCheckTag) (semverCompare "<7.78.0" $imageTag) -}}
{{ include "registry" .Values }}/ddot-collector:{{ $imageTag }}
{{- fail "The standalone FIPS ddot-collector gateway image is not available before 7.78.0. Upgrade agents.image.tag (or otelAgentGateway.image.tag) to 7.78.0+ or set useFIPSAgent to false." -}}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

similar as above but with otelAgentGateway.image.doNotCheckTag=true

Copy link
Copy Markdown
Contributor

@swang392 swang392 left a comment

Choose a reason for hiding this comment

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

Could you also add tests testing this out (ex, in test/datadog/fips_mode_test.go and test/datadog/otel_agent_test.go) to confirm functionality that the image is not available before 7.78.0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chart/datadog This issue or pull request is related to the datadog chart datadog/patch-version Patch version bump for datadog chart

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants