Skip to content

[ABLD-525] Disable msgo telemetry by default in its Bazel SDK - #59840

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
mainfrom
regis.desgroppes/msgo-telemetry-off
Nov 6, 2026
Merged

gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
mainfrom
regis.desgroppes/msgo-telemetry-off

Conversation

@rdesgroppes

@rdesgroppes rdesgroppes commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do?

Patch the msgo SDK's go.env so that MS_GOTOOLCHAIN_TELEMETRY_ENABLED defaults to 0, as microsoft/go#2566 lets distributions do and microsoft/azurelinux#19611 indeed does.

Users can still opt in through their environment or go env -w, which both take precedence over GOROOT/go.env.

Motivation

#58511 made msgo a Bazel SDK whose go.env enables Microsoft's telemetry, which its go build, go install and go run send unless MS_GOTOOLCHAIN_TELEMETRY_ENABLED=0 is set.

#58530 builds FIPS binaries with bazel run //:msgo -- build, only opted out by the ENV that DataDog/datadog-agent-buildimages sets in its images, leaving other hosts, developer ones included, sending it.

Opting out in the SDK itself covers every host and lets the build images drop that ENV.

Describe how you validated your changes

With MS_GOTOOLCHAIN_TELEMETRY_ENABLED unset, checked on Linux and Windows that bazel run //:msgo -- env MS_GOTOOLCHAIN_TELEMETRY_ENABLED prints 0, whereas it prints 1 on Linux without the patch.

With MS_GOTOOLCHAIN_TELEMETRY_ENABLED=1 on Linux, checked that it prints 1.

Additional Notes

Unlike --run_env=MS_GOTOOLCHAIN_TELEMETRY_ENABLED=0, the patch keeps the user opt-in and covers every go command run from @msgo, not only bazel run //:msgo.

The patch fails the SDK fetch should a later msgo release reword its go.env, rather than silently leaving telemetry on.

@rdesgroppes
rdesgroppes requested a review from a team as a code owner November 6, 2026 15:11
@rdesgroppes rdesgroppes added changelog/no-changelog No changelog entry needed qa/no-code-change No code change in Agent code requiring validation labels Nov 6, 2026
@dd-octo-sts dd-octo-sts Bot added internal Identify a non-fork PR team/agent-build labels Nov 6, 2026
@github-actions github-actions Bot added the short review PR is simple enough to be reviewed quickly label Nov 6, 2026
### What does this PR do?
Patch the `msgo` SDK's `go.env` so that
`MS_GOTOOLCHAIN_TELEMETRY_ENABLED` defaults to `0`, as microsoft/go#2566
lets distributions do and microsoft/azurelinux#19611 does.

Users can still opt in through their environment or `go env -w`, which
both take precedence over `GOROOT/go.env`.

### Motivation
#58511 made `msgo` a Bazel SDK whose `go.env` enables Microsoft's
telemetry, which its `go build`, `go install` and `go run` send unless
`MS_GOTOOLCHAIN_TELEMETRY_ENABLED=0` is set.

#58530 builds FIPS binaries with `bazel run //:msgo -- build`, only
opted out by the `ENV` that `DataDog/datadog-agent-buildimages` sets in
its images, leaving other hosts, developer ones included, sending it.

Opting out in the SDK itself covers every host and lets the build images
drop that `ENV`.

### Describe how you validated your changes
With `MS_GOTOOLCHAIN_TELEMETRY_ENABLED` unset, checked on Linux and
Windows that `bazel run //:msgo -- env MS_GOTOOLCHAIN_TELEMETRY_ENABLED`
prints `0`, whereas it prints `1` on Linux without the patch.

With `MS_GOTOOLCHAIN_TELEMETRY_ENABLED=1` on Linux, checked that it
prints `1`.

Checked that `MODULE.bazel.lock` is unchanged and that
`bazel run //bazel/buildifier:test` passes.

### Additional Notes
Unlike `--run_env=MS_GOTOOLCHAIN_TELEMETRY_ENABLED=0`, the patch keeps
the user opt-in and covers every `go` command run from `@msgo`, not only
`bazel run //:msgo`.

The patch fails the SDK fetch should a later `msgo` release reword its
`go.env`, rather than silently leaving telemetry on.
@rdesgroppes
rdesgroppes force-pushed the regis.desgroppes/msgo-telemetry-off branch from a1bbb86 to 9a30952 Compare November 6, 2026 15:14

@github-actions github-actions Bot left a comment

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.

AI review by Codex (OpenAI) - workflow run

The patch is correct. It applies a narrowly scoped SDK patch to disable telemetry by default while preserving user overrides. No actionable issues found. Bazel validation was not rerun in the read-only environment.

@datadog-datadog-prod-us1-2

datadog-datadog-prod-us1-2 Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 66.87% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 9a30952 | Docs | Give us feedback!

@dd-octo-sts

dd-octo-sts Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Static quality checks

✅ Please find below the results from static quality gates
Comparison made with ancestor 20162fa
📊 Static Quality Gates Dashboard
🔗 SQG Job

33 successful checks with minimal change (< 2 KiB)
Quality gate Current Size
✅ agent_deb_amd64 764.270 MiB
✅ agent_deb_amd64_fips 694.899 MiB
✅ agent_heroku_amd64 313.805 MiB
✅ agent_msi 670.742 MiB
✅ agent_rpm_amd64 764.253 MiB
✅ agent_rpm_amd64_fips 694.882 MiB
✅ agent_rpm_arm64 733.398 MiB
✅ agent_rpm_arm64_fips 669.977 MiB
✅ agent_suse_amd64 764.253 MiB
✅ agent_suse_amd64_fips 694.882 MiB
✅ agent_suse_arm64 733.398 MiB
✅ agent_suse_arm64_fips 669.977 MiB
✅ docker_agent_amd64 820.060 MiB
✅ docker_agent_arm64 813.895 MiB
✅ docker_agent_jmx_amd64 1010.921 MiB
✅ docker_agent_jmx_arm64 993.543 MiB
✅ docker_cws_instrumentation_amd64 9.443 MiB
✅ docker_cws_instrumentation_arm64 8.752 MiB
✅ docker_dogstatsd_amd64 40.259 MiB
✅ docker_dogstatsd_arm64 38.255 MiB
✅ docker_host_profiler_amd64 282.426 MiB
✅ docker_host_profiler_arm64 295.143 MiB
✅ dogstatsd_deb_amd64 31.015 MiB
✅ dogstatsd_deb_arm64 28.930 MiB
✅ dogstatsd_rpm_amd64 31.015 MiB
✅ dogstatsd_suse_amd64 31.015 MiB
✅ iot_agent_deb_amd64 48.288 MiB
✅ iot_agent_deb_arm64 44.669 MiB
✅ iot_agent_deb_armhf 45.475 MiB
✅ iot_agent_rpm_amd64 48.288 MiB
✅ iot_agent_suse_amd64 48.287 MiB
✅ docker_cluster_agent_amd64 217.976 MiB
✅ docker_cluster_agent_arm64 230.652 MiB

@cit-pr-commenter-54b7da

Copy link
Copy Markdown

Regression Detector

Regression Detector Results

Metrics dashboard
Target profiles
Job ID: 0f3df126-ca2c-46cc-836b-de8e64de5ecf

Baseline: f2e5c9f
Comparison: 9a30952
Diff

Optimization Goals: ✅ No significant changes detected

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
➖ quality_gate_logs % cpu utilization +1.12 [+0.19, +2.04] 1 Logs bounds checks dashboard
➖ dsd_uds_client_drop_detector_cpu % cpu utilization +0.67 [+0.13, +1.21] 1 Logs
➖ dsd_uds_10mb_3k_timestamped_contexts_memory memory utilization +0.39 [+0.16, +0.61] 1 Logs
➖ quality_gate_security_mean_fs_load memory utilization +0.35 [+0.31, +0.40] 1 Logs bounds checks dashboard
➖ python_openmetrics % cpu utilization +0.33 [-0.31, +0.97] 1 Logs bounds checks dashboard
➖ quality_gate_metrics_logs memory utilization +0.09 [-0.14, +0.33] 1 Logs bounds checks dashboard
➖ quality_gate_private_action_runner memory utilization +0.02 [-0.11, +0.15] 1 Logs bounds checks dashboard
➖ quality_gate_idle memory utilization -0.08 [-0.12, -0.04] 1 Logs bounds checks dashboard
➖ quality_gate_idle_all_features memory utilization -0.18 [-0.25, -0.10] 1 Logs bounds checks dashboard
➖ quality_gate_security_idle memory utilization -0.21 [-0.25, -0.17] 1 Logs bounds checks dashboard
➖ quality_gate_security_no_fs_load memory utilization -0.28 [-0.33, -0.23] 1 Logs bounds checks dashboard
➖ dsd_uds_10mb_3k_timestamped_contexts_cpu % cpu utilization -1.32 [-1.59, -1.05] 1 Logs

Bounds Checks: ✅ Passed

perf experiment bounds_check_name replicates_passed observed_value links
✅ python_openmetrics checks_execution_time 10/10 86.12 ≤ 100 bounds checks dashboard
✅ python_openmetrics cpu_usage 10/10 1351.49 ≤ 1500 bounds checks dashboard
✅ python_openmetrics memory_usage 10/10 4.31GiB ≤ 4.75GiB bounds checks dashboard
✅ quality_gate_idle intake_connections 10/10 4 ≤ 5 bounds checks dashboard
✅ quality_gate_idle memory_usage 10/10 180.20MiB ≤ 190MiB bounds checks dashboard
✅ quality_gate_idle total_bytes_received 10/10 782.94KiB ≤ 819.20KiB bounds checks dashboard
✅ quality_gate_idle_all_features intake_connections 10/10 2 ≤ 5 bounds checks dashboard
✅ quality_gate_idle_all_features memory_usage 10/10 475.44MiB ≤ 544MiB bounds checks dashboard
✅ quality_gate_idle_all_features total_bytes_received 10/10 1.17MiB ≤ 1.25MiB bounds checks dashboard
✅ quality_gate_logs intake_connections 10/10 17 ≤ 40 bounds checks dashboard
✅ quality_gate_logs memory_usage 10/10 220.61MiB ≤ 234MiB bounds checks dashboard
✅ quality_gate_logs missed_bytes 10/10 0B = 0B bounds checks dashboard
✅ quality_gate_logs total_bytes_received 10/10 264.11MiB ≤ 292MiB bounds checks dashboard
✅ quality_gate_metrics_logs cpu_usage 10/10 367.83 ≤ 2000 bounds checks dashboard
✅ quality_gate_metrics_logs intake_connections 10/10 19 ≤ 40 bounds checks dashboard
✅ quality_gate_metrics_logs memory_usage 10/10 438.48MiB ≤ 463MiB bounds checks dashboard
✅ quality_gate_metrics_logs missed_bytes 10/10 0B = 0B bounds checks dashboard
✅ quality_gate_metrics_logs total_bytes_received 10/10 0.95GiB ≤ 1.04GiB bounds checks dashboard
✅ quality_gate_private_action_runner memory_usage 10/10 75.89MiB ≤ 78MiB bounds checks dashboard
✅ quality_gate_security_idle cpu_usage 10/10 29.13 ≤ 100 bounds checks dashboard
✅ quality_gate_security_idle memory_usage 10/10 336.03MiB ≤ 365MiB bounds checks dashboard
✅ quality_gate_security_mean_fs_load cpu_usage 10/10 40.91 ≤ 200 bounds checks dashboard
✅ quality_gate_security_mean_fs_load memory_usage 10/10 314.01MiB ≤ 343MiB bounds checks dashboard
✅ quality_gate_security_no_fs_load cpu_usage 10/10 24.76 ≤ 100 bounds checks dashboard
✅ quality_gate_security_no_fs_load memory_usage 10/10 310.26MiB ≤ 356MiB bounds checks dashboard

Explanation

Confidence level: 90.00%
Effect size tolerance: |Δ mean %| ≥ 5.00%

Performance changes are noted in the perf column of each table:

  • ✅ = significantly better comparison variant performance
  • ❌ = significantly worse comparison variant performance
  • ➖ = no significant change in performance

A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".

For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:

  1. Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.

  2. Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.

  3. Its configuration does not mark it "erratic".

CI Pass/Fail Decision

✅ Passed. All Quality Gates passed.

  • quality_gate_security_mean_fs_load, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_security_mean_fs_load, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_private_action_runner, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_security_idle, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_security_idle, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check missed_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check total_bytes_received: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check total_bytes_received: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check missed_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle_all_features, bounds check total_bytes_received: 10/10 replicas passed. Gate passed.
  • quality_gate_security_no_fs_load, bounds check cpu_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_security_no_fs_load, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check total_bytes_received: 10/10 replicas passed. Gate passed.

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit dfe9366 into main Nov 6, 2026
282 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the regis.desgroppes/msgo-telemetry-off branch November 6, 2026 18:35
@github-actions github-actions Bot added this to the 7.87.0 milestone Nov 6, 2026
rdesgroppes added a commit to DataDog/datadog-agent-buildimages that referenced this pull request Nov 9, 2026
### What does this PR do?
Stop installing the Microsoft build of Go in the Linux and Windows
images, and drop its release and checksums from `go.env`,
`docker-bake.override.json` and `dda run update go`, whose
`--msgo-patch` option goes with them.

Drop the Go update workflow's check that `microsoft/go` published the
requested release.

Drop `MS_GOTOOLCHAIN_TELEMETRY_ENABLED=0` from the Linux and Windows
images, DataDog/datadog-agent#59840 disabling `msgo` telemetry in its
Bazel SDK instead.

### Motivation
Omnibus FIPS builds took `msgo` from `/usr/local/msgo` on Linux and
`C:\msgo` on Windows, through `datadog-agent`'s `add_msgo_to_env`.

DataDog/datadog-agent#58511 made `msgo` a Bazel toolchain pinned from
`microsoft/go`'s release manifest, DataDog/datadog-agent#59501 made
every FIPS build name its backend, and DataDog/datadog-agent#58530
builds the `msgo` backend with `bazel run //:msgo` and removes
`add_msgo_to_env`, leaving the preinstalled `msgo` without any reader.

### Possible Drawbacks / Trade-offs
A Go update is no longer held back until `microsoft/go` publishes it
(may take a few days), `datadog-agent`'s Bazel Go builds failing instead
while `msgo` lacks the release.

This should not be a problem because we've not been adopting Go releases
right away.

### Additional Notes
The `go_builder` stage's `DD_GO_TOOLCHAIN` switch goes too, its
`.bashrc` never reaching the final image.
rdesgroppes added a commit to DataDog/datadog-agent-buildimages that referenced this pull request Nov 9, 2026
### What does this PR do?
Stop installing the Microsoft build of Go in the Linux and Windows
images, and drop its release and checksums from `go.env`,
`docker-bake.override.json` and `dda run update go`, whose
`--msgo-patch` option goes with them.

Drop the Go update workflow's check that `microsoft/go` published the
requested release.

Drop `MS_GOTOOLCHAIN_TELEMETRY_ENABLED=0` from the Linux and Windows
images, DataDog/datadog-agent#59840 disabling `msgo` telemetry in its
Bazel SDK instead.

### Motivation
Omnibus FIPS builds took `msgo` from `/usr/local/msgo` on Linux and
`C:\msgo` on Windows, through `datadog-agent`'s `add_msgo_to_env`.

DataDog/datadog-agent#58511 made `msgo` a Bazel toolchain pinned from
`microsoft/go`'s release manifest, DataDog/datadog-agent#59501 made
every FIPS build name its backend, and DataDog/datadog-agent#58530
builds the `msgo` backend with `bazel run //:msgo` and removes
`add_msgo_to_env`, leaving the preinstalled `msgo` without any reader.

### Possible Drawbacks / Trade-offs
A Go update is no longer held back until `microsoft/go` publishes it
(may take a few days), `datadog-agent`'s Bazel Go builds failing instead
while `msgo` lacks the release.

This should not be a problem because we've not been adopting Go releases
right away: worst case, the Renovate-generated buildimage bump stays on
hold until Microsoft ships its counterpart.

### Additional Notes
The `go_builder` stage's `DD_GO_TOOLCHAIN` switch goes too, its
`.bashrc` never reaching the final image, whereas #1386 removed
`setup/go.sh` along with other unreferenced scripts.
rdesgroppes added a commit that referenced this pull request Nov 11, 2026
### What does this PR do?

Request FIPS builds with
`--platforms=//bazel/platforms:<os>_<arch>_fips`, whose `flags` select
the `msgo` SDK, instead of the retired `fips` value of
`//packages/agent:flavor`.
Key the FIPS `config_setting`s, `@openssl`'s and the FIPS package names
on the `//bazel/platforms:fips` constraint, and have the omnibus helpers
pass the FIPS platform.
Register a test toolchain so that `bazel test` works on FIPS platforms,
and remove the unused macOS FIPS platforms.
This doesn't cover the RUNPATH of the OpenSSL that Bazel-built FIPS
binaries load, nor lifting the #59511 refusal, which depends on it.

### Motivation

The FIPS platforms' constraint selected nothing, and the `fips` flavor
selected the FIPS tags but kept the upstream SDK, both silently
producing non-FIPS binaries, which #59511 had to refuse.
Since #58511 made `msgo` a toolchain, a platform can carry both the
constraint and the SDK choice.

### Describe how you validated your changes

- `//cmd/agent` builds with `msgo` and the FIPS tags on the FIPS
  platforms, `requirefips` being Linux-only, and with the upstream SDK
  and no FIPS tags on the others,
- the agent, installer, loader and packaging targets, and `@openssl`,
  analyze with no ambiguous `select()` on the Linux and Windows
  platforms, FIPS or not,
- `bazel test` passes on a FIPS platform.

### Additional Notes

The FIPS platforms set `sdk_name` through `platform(flags = ...)`,
because deriving it from the constraint would take patching rules_go's
`go_transition` or duplicating its `toolchain()` matrix.
The retired flavor value now fails the analysis of packaging targets.
Prerequisites:
- #56351
- #56865
- #57078
- #57223
- #58511
- #58530
- #59501
- #59511
- #59840
- #59871
- #59875
- #60181
rdesgroppes added a commit that referenced this pull request Nov 11, 2026
### What does this PR do?

Request FIPS builds with
`--platforms=//bazel/platforms:<os>_<arch>_fips`, whose `flags` select
the `msgo` SDK, instead of the retired `fips` value of
`//packages/agent:flavor`.
Key the FIPS `config_setting`s, `@openssl`'s and the FIPS package names
on the `//bazel/platforms:fips` constraint, and have the omnibus helpers
pass the FIPS platform.
Register a test toolchain so that `bazel test` works on FIPS platforms,
and remove the unused macOS FIPS platforms.
This doesn't cover the RUNPATH of the OpenSSL that Bazel-built FIPS
binaries load, nor lifting the #59511 refusal, which depends on it.

### Motivation

The FIPS platforms' constraint selected nothing, and the `fips` flavor
selected the FIPS tags but kept the upstream SDK, both silently
producing non-FIPS binaries, which #59511 had to refuse.
Since #58511 made `msgo` a toolchain, a platform can carry both the
constraint and the SDK choice.

### Describe how you validated your changes

- `//cmd/agent` builds with `msgo` and the FIPS tags on the FIPS
  platforms, `requirefips` being Linux-only, and with the upstream SDK
  and no FIPS tags on the others,
- the agent, installer, loader and packaging targets, and `@openssl`,
  analyze with no ambiguous `select()` on the Linux and Windows
  platforms, FIPS or not,
- `bazel test` passes on a FIPS platform.

### Additional Notes

The FIPS platforms set `sdk_name` through `platform(flags = ...)`,
because deriving it from the constraint would take patching rules_go's
`go_transition` or duplicating its `toolchain()` matrix.
The retired flavor value now fails the analysis of packaging targets.
`//cmd/dogstatsd` drops its `cgo` select, whose FIPS branch was a no-op,
leaving `dd_agent_go_binary`'s identical default.
Prerequisites:
- #56351
- #56865
- #57078
- #57223
- #58511
- #58530
- #59501
- #59511
- #59840
- #59871
- #59875
- #60181
rdesgroppes added a commit that referenced this pull request Nov 11, 2026
### What does this PR do?

Request FIPS builds with
`--platforms=//bazel/platforms:<os>_<arch>_fips`, whose `flags` select
the `msgo` SDK, instead of the retired `fips` value of
`//packages/agent:flavor`.
Key the FIPS `config_setting`s, `@openssl`'s and the FIPS package names
on the `//bazel/platforms:fips` constraint, and have the omnibus helpers
pass the FIPS platform.
Register a test toolchain so that `bazel test` works on FIPS platforms,
and remove the unused macOS FIPS platforms.
This doesn't cover the RUNPATH of the OpenSSL that Bazel-built FIPS
binaries load, nor lifting the #59511 refusal, which depends on it.

### Motivation

The FIPS platforms' constraint selected nothing, and the `fips` flavor
selected the FIPS tags but kept the upstream SDK, both silently
producing non-FIPS binaries, which #59511 had to refuse.
Since #58511 made `msgo` a toolchain, a platform can carry both the
constraint and the SDK choice.

### Describe how you validated your changes

- `//cmd/agent` builds with `msgo` and the FIPS tags on the FIPS
  platforms, `requirefips` being Linux-only, and with the upstream SDK
  and no FIPS tags on the others,
- the agent, installer, loader and packaging targets, and `@openssl`,
  analyze with no ambiguous `select()` on the Linux and Windows
  platforms, FIPS or not,
- `bazel test` passes on a FIPS platform.

### Additional Notes

The FIPS platforms set `sdk_name` through `platform(flags = ...)`,
because deriving it from the constraint would take patching rules_go's
`go_transition` or duplicating its `toolchain()` matrix.
The retired flavor value now fails the analysis of packaging targets.
`//cmd/dogstatsd` drops its `cgo` select, whose FIPS branch was a no-op,
leaving `dd_agent_go_binary`'s identical default.
Prerequisites:
- #56351
- #56865
- #57078
- #57223
- #58511
- #58530
- #59501
- #59511
- #59840
- #59871
- #59875
- #60181
rdesgroppes added a commit that referenced this pull request Nov 11, 2026
### What does this PR do?

Request FIPS builds with
`--platforms=//bazel/platforms:<os>_<arch>_fips`, whose `flags` select
the `msgo` SDK, instead of the retired `fips` value of
`//packages/agent:flavor`.
Key the FIPS `config_setting`s, `@openssl`'s and the FIPS package names
on the `//bazel/platforms:fips` constraint, and have the omnibus helpers
pass the FIPS platform.
Register a test toolchain so that `bazel test` works on FIPS platforms,
and remove the unused macOS FIPS platforms.
Have the installer's symbol test require `msgo`'s OpenSSL or CNG
backend on the Linux or Windows FIPS platforms, and reject it elsewhere.
This doesn't cover the RUNPATH of the OpenSSL that Bazel-built FIPS
binaries load, nor lifting the #59511 refusal, which depends on it.

### Motivation

The FIPS platforms' constraint selected nothing, and the `fips` flavor
selected the FIPS tags but kept the upstream SDK, both silently
producing non-FIPS binaries, which #59511 had to refuse.
Since #58511 made `msgo` a toolchain, a platform can carry both the
constraint and the SDK choice.

### Describe how you validated your changes

- `//cmd/agent` builds with `msgo` and the FIPS tags on the FIPS
  platforms, `requirefips` being Linux-only, and with the upstream SDK
  and no FIPS tags on the others,
- the agent, installer, loader and packaging targets, and `@openssl`,
  analyze with no ambiguous `select()` on the Linux and Windows
  platforms, FIPS or not,
- `bazel test` passes on a FIPS platform,
- the installer's symbol test passes on the Linux and Windows FIPS
  platforms, and fails when expecting a package the binary lacks.

### Additional Notes

The FIPS platforms set `sdk_name` through `platform(flags = ...)`,
because deriving it from the constraint would take patching rules_go's
`go_transition` or duplicating its `toolchain()` matrix.
The retired flavor value now fails the analysis of packaging targets.
`//cmd/dogstatsd` drops its `cgo` select, whose FIPS branch was a no-op,
leaving `dd_agent_go_binary`'s identical default.
`//cmd/loader:trace_loader_all_files` only excludes Windows, like
`:loader`, instead of listing Linux and macOS.
Prerequisites:
- #56351
- #56865
- #57078
- #57223
- #58511
- #58530
- #59501
- #59511
- #59840
- #59871
- #59875
- #60181
rdesgroppes added a commit that referenced this pull request Nov 11, 2026
### What does this PR do?

Request FIPS builds with
`--platforms=//bazel/platforms:<os>_<arch>_fips`, whose `flags` select
the `msgo` SDK, instead of the retired `fips` value of
`//packages/agent:flavor`.
Key the FIPS `config_setting`s, `@openssl`'s and the FIPS package names
on the `//bazel/platforms:fips` constraint, and have the omnibus helpers
pass the FIPS platform.
Register a test toolchain so that `bazel test` works on FIPS platforms,
and remove the unused macOS FIPS platforms.
Have the installer's symbol test require `msgo`'s OpenSSL or CNG
backend on the Linux or Windows FIPS platforms, and reject it elsewhere.
This doesn't cover the RUNPATH of the OpenSSL that Bazel-built FIPS
binaries load, nor lifting the #59511 refusal, which depends on it.

### Motivation

The FIPS platforms' constraint selected nothing, and the `fips` flavor
selected the FIPS tags but kept the upstream SDK, both silently
producing non-FIPS binaries, which #59511 had to refuse.
Since #58511 made `msgo` a toolchain, a platform can carry both the
constraint and the SDK choice.

### Describe how you validated your changes

- `//cmd/agent` builds with `msgo` and the FIPS tags on the FIPS
  platforms, `requirefips` being Linux-only, and with the upstream SDK
  and no FIPS tags on the others,
- the agent, installer, loader and packaging targets, and `@openssl`,
  analyze with no ambiguous `select()` on the Linux and Windows
  platforms, FIPS or not,
- `bazel test` passes on a FIPS platform,
- the installer's symbol test passes on the Linux and Windows FIPS
  platforms, and fails when expecting a package the binary lacks.

### Additional Notes

The FIPS platforms set `sdk_name` through `platform(flags = ...)`,
because deriving it from the constraint would take patching rules_go's
`go_transition` or duplicating its `toolchain()` matrix.
The retired flavor value now fails the analysis of packaging targets.
`//cmd/dogstatsd` drops its `cgo` select, whose FIPS branch was a no-op,
leaving `dd_agent_go_binary`'s identical default.
`//cmd/loader:trace_loader_all_files` only excludes Windows, like
`:loader`, instead of listing Linux and macOS.
Prerequisites:
- #56351
- #56865
- #57078
- #57223
- #58511
- #58530
- #59501
- #59511
- #59840
- #59871
- #59875
- #60181
rdesgroppes added a commit that referenced this pull request Nov 11, 2026
### What does this PR do?

Request FIPS builds with
`--platforms=//bazel/platforms:<os>_<arch>_fips`, whose `flags` select
the `msgo` SDK, instead of the retired `fips` value of
`//packages/agent:flavor`.
Key the FIPS `config_setting`s, `@openssl`'s and the FIPS package names
on the `//bazel/platforms:fips` constraint, and have the omnibus helpers
pass the FIPS platform.
Register a test toolchain so that `bazel test` works on FIPS platforms,
and remove the unused macOS FIPS platforms.
Have the installer's symbol test require `msgo`'s OpenSSL or CNG
backend on the Linux or Windows FIPS platforms, and reject it elsewhere.
This doesn't cover the RUNPATH of the OpenSSL that Bazel-built FIPS
binaries load, nor lifting the #59511 refusal, which depends on it.

### Motivation

The FIPS platforms' constraint selected nothing, and the `fips` flavor
selected the FIPS tags but kept the upstream SDK, both silently
producing non-FIPS binaries, which #59511 had to refuse.
Since #58511 made `msgo` a toolchain, a platform can carry both the
constraint and the SDK choice.

### Describe how you validated your changes

- `//cmd/agent` builds with `msgo` and the FIPS tags on the FIPS
  platforms, `requirefips` being Linux-only, and with the upstream SDK
  and no FIPS tags on the others,
- the agent, installer, loader and packaging targets, and `@openssl`,
  analyze with no ambiguous `select()` on the Linux and Windows
  platforms, FIPS or not,
- `bazel test` passes on a FIPS platform,
- the installer's symbol test passes on the Linux and Windows FIPS
  platforms, and fails when expecting a package the binary lacks.

### Additional Notes

The FIPS platforms set `sdk_name` through `platform(flags = ...)`,
because deriving it from the constraint would take patching rules_go's
`go_transition` or duplicating its `toolchain()` matrix.
The retired flavor value now fails the analysis of packaging targets.
`//cmd/dogstatsd` drops its `cgo` select, whose FIPS branch was a no-op,
leaving `dd_agent_go_binary`'s identical default.
`//cmd/loader:trace_loader_all_files` only excludes Windows, like
`:loader`, instead of listing Linux and macOS.
Prerequisites:
- #56351
- #56865
- #57078
- #57223
- #58511
- #58530
- #59501
- #59511
- #59840
- #59871
- #59875
- #60181
rdesgroppes added a commit that referenced this pull request Nov 11, 2026
### What does this PR do?

Request FIPS builds with
`--platforms=//bazel/platforms:<os>_<arch>_fips`, whose `flags` select
the `msgo` SDK, instead of the retired `fips` value of
`//packages/agent:flavor`.
Key the FIPS `config_setting`s, `@openssl`'s and the FIPS package names
on the `//bazel/platforms:fips` constraint, and have the omnibus helpers
pass the FIPS platform.
Register a test toolchain so that `bazel test` works on FIPS platforms,
and remove the unused macOS FIPS platforms.
Have the installer's symbol test require `msgo`'s OpenSSL or CNG
backend on the Linux or Windows FIPS platforms, and reject it elsewhere.
This doesn't cover the RUNPATH of the OpenSSL that Bazel-built FIPS
binaries load, nor lifting the #59511 refusal, which depends on it.

### Motivation

The FIPS platforms' constraint selected nothing, and the `fips` flavor
selected the FIPS tags but kept the upstream SDK, both silently
producing non-FIPS binaries, which #59511 had to refuse.
Since #58511 made `msgo` a toolchain, a platform can carry both the
constraint and the SDK choice.

### Describe how you validated your changes

- `//cmd/agent` builds with `msgo` and the FIPS tags on the FIPS
  platforms, `requirefips` being Linux-only, and with the upstream SDK
  and no FIPS tags on the others,
- the agent, installer, loader and packaging targets, and `@openssl`,
  analyze with no ambiguous `select()` on the Linux and Windows
  platforms, FIPS or not,
- `bazel test` passes on a FIPS platform,
- the installer's symbol test passes on the Linux and Windows FIPS
  platforms, and fails when expecting a package the binary lacks.

### Additional Notes

The FIPS platforms set `sdk_name` through `platform(flags = ...)`,
because deriving it from the constraint would take patching rules_go's
`go_transition` or duplicating its `toolchain()` matrix.
The retired flavor value now fails the analysis of packaging targets.
`//cmd/dogstatsd` drops its `cgo` select, whose FIPS branch was a no-op,
leaving `dd_agent_go_binary`'s identical default.
`//cmd/loader:trace_loader_all_files` only excludes Windows, like
`:loader`, instead of listing Linux and macOS.
Prerequisites:
- #56351
- #56865
- #57078
- #57223
- #58511
- #58530
- #59501
- #59511
- #59840
- #59871
- #59875
- #60181
rdesgroppes added a commit that referenced this pull request Nov 11, 2026
### What does this PR do?

Request FIPS builds with
`--platforms=//bazel/platforms:<os>_<arch>_fips`, whose `flags` select
the `msgo` SDK, instead of the retired `fips` value of
`//packages/agent:flavor`.
Key the FIPS `config_setting`s, `@openssl`'s and the FIPS package names
on the `//bazel/platforms:fips` constraint, and have the omnibus helpers
pass the FIPS platform.
Register a test toolchain so that `bazel test` works on FIPS platforms,
and remove the unused macOS FIPS platforms.
Have the installer's symbol test require `msgo`'s OpenSSL or CNG
backend on the Linux or Windows FIPS platforms, and reject it elsewhere.
This doesn't cover the RUNPATH of the OpenSSL that Bazel-built FIPS
binaries load, nor lifting the #59511 refusal, which depends on it.

### Motivation

The FIPS platforms' constraint selected nothing, and the `fips` flavor
selected the FIPS tags but kept the upstream SDK, both silently
producing non-FIPS binaries, which #59511 had to refuse.
Since #58511 made `msgo` a toolchain, a platform can carry both the
constraint and the SDK choice.

### Describe how you validated your changes

- `//cmd/agent` builds with `msgo` and the FIPS tags on the FIPS
  platforms, `requirefips` being Linux-only, and with the upstream SDK
  and no FIPS tags on the others,
- the agent, installer, loader and packaging targets, and `@openssl`,
  analyze with no ambiguous `select()` on the Linux and Windows
  platforms, FIPS or not,
- `bazel test` passes on a FIPS platform,
- the installer's symbol test passes on the Linux and Windows FIPS
  platforms, and fails when expecting a package the binary lacks.

### Additional Notes

The FIPS platforms set `sdk_name` through `platform(flags = ...)`,
because deriving it from the constraint would take patching rules_go's
`go_transition` or duplicating its `toolchain()` matrix.
The retired flavor value now fails the analysis of packaging targets.
`//cmd/dogstatsd` drops its `cgo` select, whose FIPS branch was a no-op,
leaving `dd_agent_go_binary`'s identical default.
`//cmd/loader:trace_loader_all_files` only excludes Windows, like
`:loader`, instead of listing Linux and macOS.
Prerequisites:
- #56351
- #56865
- #57078
- #57223
- #58511
- #58530
- #59501
- #59511
- #59840
- #59871
- #59875
- #60181
rdesgroppes added a commit that referenced this pull request Nov 11, 2026
### What does this PR do?

Request FIPS builds with
`--platforms=//bazel/platforms:<os>_<arch>_fips`, whose `flags` select
the `msgo` SDK, instead of the retired `fips` value of
`//packages/agent:flavor`.
Key the FIPS `config_setting`s, `@openssl`'s and the FIPS package names
on the `//bazel/platforms:fips` constraint, and have the omnibus helpers
pass the FIPS platform.
Register a test toolchain so that `bazel test` works on FIPS platforms,
and remove the unused macOS FIPS platforms.
Have the installer's symbol test require `msgo`'s OpenSSL or CNG
backend on the Linux or Windows FIPS platforms, and reject it elsewhere.
This doesn't cover the RUNPATH of the OpenSSL that Bazel-built FIPS
binaries load, nor lifting the #59511 refusal, which depends on it.

### Motivation

The FIPS platforms' constraint selected nothing, and the `fips` flavor
selected the FIPS tags but kept the upstream SDK, both silently
producing non-FIPS binaries, which #59511 had to refuse.
Since #58511 made `msgo` a toolchain, a platform can carry both the
constraint and the SDK choice.

### Describe how you validated your changes

- `//cmd/agent` builds with `msgo` and the FIPS tags on the FIPS
  platforms, `requirefips` being Linux-only, and with the upstream SDK
  and no FIPS tags on the others,
- the agent, installer, loader and packaging targets, and `@openssl`,
  analyze with no ambiguous `select()` on the Linux and Windows
  platforms, FIPS or not,
- `bazel test` passes on a FIPS platform,
- the installer's symbol test passes on the Linux and Windows FIPS
  platforms, and fails when expecting a package the binary lacks.

### Additional Notes

The FIPS platforms set `sdk_name` through `platform(flags = ...)`,
because deriving it from the constraint would take patching rules_go's
`go_transition` or duplicating its `toolchain()` matrix.
The retired flavor value now fails the analysis of packaging targets.
`//cmd/dogstatsd` drops its `cgo` select, whose FIPS branch was a no-op,
leaving `dd_agent_go_binary`'s identical default.
`//cmd/loader:trace_loader_all_files` only excludes Windows, like
`:loader`, instead of listing Linux and macOS.
Prerequisites:
- #56351
- #56865
- #57078
- #57223
- #58511
- #58530
- #59501
- #59511
- #59840
- #59871
- #59875
- #60181
rdesgroppes added a commit that referenced this pull request Nov 11, 2026
### What does this PR do?

Request FIPS builds with
`--platforms=//bazel/platforms:<os>_<cpu>_fips`, whose `flags` select
the `msgo` SDK, instead of the retired `fips` value of
`//packages/agent:flavor`.
Key the FIPS `config_setting`s, `@openssl`'s and the FIPS package names
on the `//bazel/platforms:fips` constraint, and have the omnibus helpers
pass the FIPS platform.
Register a test toolchain so that `bazel test` works on FIPS platforms,
and remove the unused macOS FIPS platforms.
Have the installer's symbol test require `msgo`'s OpenSSL or CNG
backend on the Linux or Windows FIPS platforms, and reject it elsewhere.
This doesn't cover the RUNPATH of the OpenSSL that Bazel-built FIPS
binaries load, nor lifting the #59511 refusal, which depends on it.

### Motivation

The FIPS platforms' constraint selected nothing, and the `fips` flavor
selected the FIPS tags but kept the upstream SDK, both silently
producing non-FIPS binaries, which #59511 had to refuse.
Since #58511 made `msgo` a toolchain, a platform can carry both the
constraint and the SDK choice.

### Describe how you validated your changes

- `//cmd/agent` builds with `msgo` and the FIPS tags on the FIPS
  platforms, `requirefips` being Linux-only, and with the upstream SDK
  and no FIPS tags on the others,
- the agent, installer, loader and packaging targets, and `@openssl`,
  analyze with no ambiguous `select()` on the Linux and Windows
  platforms, FIPS or not,
- `bazel test` passes on a FIPS platform,
- the installer's symbol test passes on the Linux and Windows FIPS
  platforms, and fails when expecting a package the binary lacks.

### Additional Notes

The FIPS platforms set `sdk_name` through `platform(flags = ...)`,
because deriving it from the constraint would take patching rules_go's
`go_transition` or duplicating its `toolchain()` matrix.
The retired flavor value now fails the analysis of packaging targets.
`//cmd/dogstatsd` drops its `cgo` select, whose FIPS branch was a no-op,
#58511's `msgo` SDK building its OpenSSL backend without cgo through
`ms_nocgo_opensslcrypto`, the default of `msgo` 1.27
(https://devblogs.microsoft.com/go/go-1-27-0-1-microsoft-build-now-available/),
leaving `dd_agent_go_binary`'s identical default.
`//cmd/loader:trace_loader_all_files` only excludes Windows, like
`:loader`, instead of listing Linux and macOS.
Prerequisites:
- #56351
- #56865
- #57078
- #57223
- #58511
- #58530
- #59501
- #59511
- #59840
- #59871
- #59875
- #60181
rdesgroppes added a commit that referenced this pull request Nov 11, 2026
### What does this PR do?

Request FIPS builds with
`--platforms=//bazel/platforms:<os>_<cpu>_fips`, whose `flags` select
the `msgo` SDK, instead of the retired `fips` value of
`//packages/agent:flavor`.
Key the FIPS `config_setting`s, `@openssl`'s and the FIPS package names
on the `//bazel/platforms:fips` constraint, and have the omnibus helpers
pass the FIPS platform.
Register a test toolchain so that `bazel test` works on FIPS platforms,
and remove the unused macOS FIPS platforms.
Have the installer's symbol test require `msgo`'s OpenSSL or CNG
backend on the Linux or Windows FIPS platforms, and reject it elsewhere.
This doesn't cover the RUNPATH of the OpenSSL that Bazel-built FIPS
binaries load, nor lifting #59511's guard against them, which depends
on it.

### Motivation

The FIPS platforms' constraint selected nothing, and the `fips` flavor
selected the FIPS tags but kept the upstream SDK, both silently
producing non-FIPS binaries, which #59511 had to block.
Since #58511 made `msgo` a toolchain, the platform now carries both the
constraint and the SDK choice.

### Describe how you validated your changes

- `//cmd/agent` builds with `msgo` and the FIPS tags on the FIPS
  platforms, `requirefips` being Linux-only, and with the upstream SDK
  and no FIPS tags on the others,
- the agent, installer, loader and packaging targets, and `@openssl`,
  analyze with no ambiguous `select()` on the Linux and Windows
  platforms, FIPS or not,
- `bazel test` passes on a FIPS platform,
- the installer's symbol test passes on the Linux and Windows FIPS
  platforms, and fails when expecting a package the binary lacks.

### Additional Notes

The retired flavor value now fails the analysis of packaging targets.
`//cmd/dogstatsd` drops its `cgo` select, whose FIPS branch was a no-op,
#58511's `msgo` SDK building its OpenSSL backend without cgo through
`ms_nocgo_opensslcrypto`, the default of `msgo` 1.27
(https://devblogs.microsoft.com/go/go-1-27-0-1-microsoft-build-now-available/),
leaving `dd_agent_go_binary`'s identical default.
`//cmd/loader:trace_loader_all_files` only excludes Windows, like
`:loader`, instead of listing Linux and macOS.
Groundwork:
- #56351
- #56865
- #57078
- #57223
- #58511
- #58530
- #59501
- #59511
- #59840
- #60181
gh-worker-dd-mergequeue-cf854d Bot pushed a commit that referenced this pull request Nov 12, 2026
### What does this PR do?
Request FIPS builds with `--platforms=//bazel/platforms:<os>_<cpu>_fips`, whose `flags` select the `msgo` SDK, instead of the retired `fips` value of `//packages/agent:flavor`.

Key the FIPS `config_setting`s, `@openssl`'s and the FIPS package names on the `//bazel/platforms:fips` constraint, and have the omnibus helpers pass the FIPS platform.

Register a test toolchain so that `bazel test` works on FIPS platforms, and remove the unused macOS FIPS platforms.

Have the installer's symbol test require `msgo`'s OpenSSL or CNG backend on the Linux or Windows FIPS platforms, and reject it elsewhere.

:bulb: This doesn't cover the RUNPATH of the OpenSSL that Bazel-built FIPS binaries load, nor lifting #59511's guard against them, which will be addressed in:
- #60204.

### Motivation
The FIPS platforms' constraint selected nothing, and the `fips` flavor selected the FIPS tags but kept the upstream SDK, both silently producing non-FIPS binaries, which #59511 had to block.

Since #58511 made `msgo` a toolchain, the platform now carries both the constraint and the SDK choice.

### Describe how you validated your changes
- `//cmd/agent` builds with `msgo` and the FIPS tags on the FIPS platforms, `requirefips` being Linux-only, and with the upstream SDK and no FIPS tags on the others,
- the agent, installer, loader and packaging targets, and `@openssl`, analyze with no ambiguous `select()` on the Linux and Windows platforms, FIPS or not,
- `bazel test` passes on a FIPS platform,
- the installer's symbol test passes on the Linux and Windows FIPS platforms, and fails when expecting a package the binary lacks.

### Additional Notes
The retired flavor value now fails the analysis of packaging targets.

`//cmd/dogstatsd` drops its `cgo` select, whose FIPS branch was a no-op, #58511's `msgo` SDK building its OpenSSL backend without cgo through `ms_nocgo_opensslcrypto`, the default of [`msgo` 1.27](https://devblogs.microsoft.com/go/go-1-27-0-1-microsoft-build-now-available/), leaving `dd_agent_go_binary`'s identical default.

`//cmd/loader:trace_loader_all_files` only excludes Windows, like `:loader`, instead of listing Linux and macOS.

Groundwork:
- #56351
- #56865
- #57078
- #57223
- #58511
- #58530
- #59501
- #59511
- #59840
- #60181

Co-authored-by: regis.desgroppes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/no-changelog No changelog entry needed internal Identify a non-fork PR qa/no-code-change No code change in Agent code requiring validation short review PR is simple enough to be reviewed quickly team/agent-build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants