Skip to content

[ABLD-525] Replace linux_default with the default Linux constraint - #60181

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
mainfrom
regis.desgroppes/linux-default-config-settings
Nov 11, 2026
Merged

gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
mainfrom
regis.desgroppes/linux-default-config-settings

Conversation

@rdesgroppes

@rdesgroppes rdesgroppes commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do?

Replace //packages/agent:linux_default with @platforms//os:linux in the 5 select()s using it, and make //packages/agent:linux_fips a plain config_setting of Linux and the fips flavor, which select() then picks wherever a FIPS build matches both.

Remove linux_default, along with base_or_recorder_flavor and recorder_flavor, which only fed it.

Motivation

#56440 makes FIPS a constraint of the target platform, on which linux_fips will be keyed, so a FIPS build must keep resolving to linux_fips in the select()s listing it next to linux_default.

linux_default being a config_setting_group of Linux and the base or recorder flavor, select() can't treat linux_fips as its specialization, so #56440 would otherwise need a :standard constraint value on every non-FIPS platform just to keep both disjoint.

That flavor condition excludes no build, since only the base, recorder and fips flavors reach those targets, Heroku and IoT using their own under //packages/heroku and //packages/iot.

=> extracting the change lets #56440 rely on specialization alone, and makes it checkable on its own that it changes no shipped build.

Describe how you validated your changes

Checked that, compared with main:

  • deps(..., 1) of //packages/agent/dependencies:all_files, :_collected_libs, //packages/agent/product:all_files and //cmd/loader:trace_loader_all_files is identical with the base, recorder and fips flavors, select() keys aside, and differs with the heroku and iot ones, on which no target of //packages/heroku or //packages/iot depends, even transitively,
  • //cmd/secret-generic-connector links with CGO_ENABLED=0 with the fips flavor too, whether with the upstream SDK or msgo, which still links its OpenSSL backend, and no omnibus install target depends on it, even transitively,
  • these targets analyze with no ambiguous select() with the base, recorder and fips flavors.

Additional Notes

This relies on select() specialization as documented: when several conditions match, the one whose flags and constraint values are a superset of the others' takes precedence, which linux_fips is of @platforms//os:linux.

//cmd/secret-generic-connector now builds without cgo with the fips flavor, like with the others, since msgo's Bazel SDK is built with ms_nocgo_opensslcrypto, the shipped FIPS one still coming from dda inv secret-generic-connector.build.

The flavor labels of packages/agent/BUILD.bazel lose their needless @@ prefix and its buildifier: disable=canonical-repository suppression.

### What does this PR do?
Replace `//packages/agent:linux_default` with `@platforms//os:linux` in
the 5 `select()`s using it, and make `//packages/agent:linux_fips` a
plain `config_setting` of Linux and the `fips` flavor, which `select()`
then picks wherever a FIPS build matches both.

Remove `linux_default`, along with `base_or_recorder_flavor` and
`recorder_flavor`, which only fed it.

### Motivation
#56440 makes FIPS a constraint of the target platform, on which
`linux_fips` will be keyed, so a FIPS build must keep resolving to
`linux_fips` in the `select()`s listing it next to `linux_default`.

`linux_default` being a `config_setting_group` of Linux and the `base`
or `recorder` flavor, `select()` can't treat `linux_fips` as its
specialization, so #56440 would otherwise need a `:standard` constraint
value on every non-FIPS platform just to keep both disjoint.

That flavor condition excludes no build, since only the `base`,
`recorder` and `fips` flavors reach those targets, Heroku and IoT using
their own under `//packages/heroku` and `//packages/iot`.

=> extracting the change lets #56440 rely on specialization alone, and
makes it checkable on its own that it changes no shipped build.

### Describe how you validated your changes
Checked that, compared with `main`:
- `deps(..., 1)` of `//packages/agent/dependencies:all_files`,
  `:_collected_libs`, `//packages/agent/product:all_files` and
  `//cmd/loader:trace_loader_all_files` is identical with the `base`,
  `recorder` and `fips` flavors, `select()` keys aside, and differs with
  the `heroku` and `iot` ones, on which no target of `//packages/heroku`
  or `//packages/iot` depends, even transitively,
- `//cmd/secret-generic-connector` links with `CGO_ENABLED=0` with the
  `fips` flavor too, whether with the upstream SDK or `msgo`, which
  still links its OpenSSL backend, and no omnibus install target depends
  on it, even transitively,
- these targets analyze with no ambiguous `select()` with the `base`,
  `recorder` and `fips` flavors.

### Additional Notes
This relies on `select()` **specialization as documented**: when several
conditions match, the one whose flags and constraint values are a
superset of the others' takes precedence, which `linux_fips` is of
`@platforms//os:linux` as long as it stays a plain `config_setting`.

`//cmd/secret-generic-connector` now builds without cgo with the `fips`
flavor, like with the others, since `msgo`'s Bazel SDK is built with
`ms_nocgo_opensslcrypto`, the shipped FIPS one still coming from
`dda inv secret-generic-connector.build`.

The flavor labels of `packages/agent/BUILD.bazel` lose their needless
`@@` prefix and its `buildifier: disable=canonical-repository`
suppression.
@rdesgroppes
rdesgroppes requested a review from a team as a code owner November 11, 2026 11:44
@rdesgroppes rdesgroppes added the changelog/no-changelog No changelog entry needed label Nov 11, 2026
@rdesgroppes
rdesgroppes requested review from a team as code owners November 11, 2026 11:44
@rdesgroppes rdesgroppes added the qa/no-code-change No code change in Agent code requiring validation label Nov 11, 2026
@github-actions github-actions Bot added the medium review PR review might take time label Nov 11, 2026

@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. No actionable issues found in the selector changes or connector configuration. All 10 packaging unit tests passed. Bazel builds and cross-platform packaging were not executed.

@datadog-prod-us1-4

datadog-prod-us1-4 Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

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

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

rdesgroppes added a commit that referenced this pull request Nov 11, 2026
### What does this PR do?

Make the target platform's `//bazel/platforms:fips` constraint the only
way to request a FIPS build, the FIPS platforms selecting the `msgo` SDK
through their own `flags`, instead of the `fips` value of
`//packages/agent:flavor`.
To that end:
- key `//packages/agent:fips` (formerly `fips_flavor`), `linux_fips` and
  the per-platform FIPS settings, as well as `@openssl`'s, on the
  constraint,
- drop `fips` from the `//packages/agent:flavor` values,
- name FIPS packages from the constraint in `package_naming.bzl`,
- have the omnibus build helpers pass
  `--platforms=//bazel/platforms:<os>_<arch>_fips` instead of the
  flavor,
- register a test toolchain for FIPS targets, so that `bazel test` works
  on FIPS platforms,
- remove the macOS FIPS platforms, which no product uses.
This doesn't cover the RUNPATH of the OpenSSL that Bazel-built FIPS
binaries load, nor lifting the #59511 refusal of `--enable-bazel` FIPS
builds, which depends on it.

### Motivation

`bazel build --platforms=//bazel/platforms:linux_x86_64_fips` built a
non-FIPS binary, the platform's `:fips` constraint selecting nothing,
while `--//packages/agent:flavor=fips` selected the FIPS build tags but
kept the upstream Go SDK, silently producing a non-FIPS binary, which
#59511 had to refuse.
#58511 made `msgo` a Bazel toolchain, selected by
`--@rules_go//go/toolchain:sdk_name=msgo`, so a FIPS platform can now
carry both the constraint and that toolchain choice, making FIPS a
property of the target platform only.

### Describe how you validated your changes

Checked that, for `//cmd/agent:agent`:
- `linux_x86_64_fips` builds with `msgo`, with the `requirefips` and
  `goexperiment.systemcrypto` tags, and `windows_x86_64_fips` with
  `msgo` and `goexperiment.systemcrypto` only, as the tasks do,
- `linux_x86_64` and `windows_x86_64` keep the upstream SDK without
  these tags,
- `linux_arm64_fips` selects `msgo`, checked on a pure-Go target since
  this x86-64 host has no arm64 C toolchain.
Also checked that:
- `//cmd/agent`, `//cmd/dogstatsd`, `//cmd/installer`, `//cmd/loader`,
  `//packages/agent/linux:debian`, `//packages/agent/dependencies`,
  `//packages/agent/product` and `@openssl//:openssl` analyze without
  ambiguous `select()` on `linux_x86_64` and `linux_x86_64_fips`, and
  `//cmd/agent`, `//cmd/dogstatsd` and `@openssl//:openssl` on
  `windows_x86_64` and `windows_x86_64_fips`,
- `bazel test` passes on `//pkg/ebpf:verify_generated_files` with
  `--platforms=//bazel/platforms:linux_x86_64_fips`,
- `//packages/rules` tests pass, the FIPS product names now coming from
  the constraint.

### Additional Notes

The FIPS platforms set `sdk_name` through `platform(flags = ...)`,
native since Bazel 8, because deriving it from the constraint would take
patching `go_transition`, `go_binary` using the only incoming transition
a rule can have, or duplicating rules_go's `toolchain()` matrix.
`linux_fips` still takes precedence over `@platforms//os:linux` by
`select()` specialization, as set up by #60181.
Passing the retired `--//packages/agent:flavor=fips` now fails the
analysis of packaging targets, and leaves a bare Go binary consistently
non-FIPS.
The `package_naming.bzl` tests transition to a FIPS platform derived
from the host, so that the host's C++ toolchain keeps resolving.
The Python omnibus helper lower-cases `platform.machine()`, which is
`AMD64` on Windows.
@dd-octo-sts

dd-octo-sts Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Static quality checks

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

33 successful checks with minimal change (< 2 KiB)
Quality gate Current Size
✅ agent_deb_amd64 765.973 MiB
✅ agent_deb_amd64_fips 696.500 MiB
✅ agent_heroku_amd64 314.328 MiB
✅ agent_msi 671.850 MiB
✅ agent_rpm_amd64 765.949 MiB
✅ agent_rpm_amd64_fips 696.476 MiB
✅ agent_rpm_arm64 735.191 MiB
✅ agent_rpm_arm64_fips 671.495 MiB
✅ agent_suse_amd64 765.949 MiB
✅ agent_suse_amd64_fips 696.476 MiB
✅ agent_suse_arm64 735.191 MiB
✅ agent_suse_arm64_fips 671.495 MiB
✅ docker_agent_amd64 821.612 MiB
✅ docker_agent_arm64 815.547 MiB
✅ docker_agent_jmx_amd64 1012.540 MiB
✅ docker_agent_jmx_arm64 995.192 MiB
✅ docker_cws_instrumentation_amd64 9.513 MiB
✅ docker_cws_instrumentation_arm64 8.877 MiB
✅ docker_dogstatsd_amd64 40.334 MiB
✅ docker_dogstatsd_arm64 38.334 MiB
✅ docker_host_profiler_amd64 282.577 MiB
✅ docker_host_profiler_arm64 295.263 MiB
✅ dogstatsd_deb_amd64 31.082 MiB
✅ dogstatsd_deb_arm64 28.997 MiB
✅ dogstatsd_rpm_amd64 31.082 MiB
✅ dogstatsd_suse_amd64 31.082 MiB
✅ iot_agent_deb_amd64 48.378 MiB
✅ iot_agent_deb_arm64 44.751 MiB
✅ iot_agent_deb_armhf 45.525 MiB
✅ iot_agent_rpm_amd64 48.379 MiB
✅ iot_agent_suse_amd64 48.378 MiB
✅ docker_cluster_agent_amd64 218.298 MiB
✅ docker_cluster_agent_arm64 231.045 MiB

@cit-pr-commenter-54b7da

cit-pr-commenter-54b7da Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Regression Detector

Regression Detector Results

Metrics dashboard
Target profiles
Job ID: ab1414ea-df34-4f68-9dbf-5699c7d9911a

Baseline: fb11654
Comparison: c09124f
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.53 [+0.60, +2.45] 1 Logs bounds checks dashboard
➖ dsd_uds_10mb_3k_timestamped_contexts_cpu % cpu utilization +1.45 [+1.19, +1.71] 1 Logs
➖ python_openmetrics % cpu utilization +0.18 [-0.48, +0.84] 1 Logs bounds checks dashboard
➖ quality_gate_idle memory utilization +0.09 [+0.04, +0.14] 1 Logs bounds checks dashboard
➖ quality_gate_private_action_runner memory utilization -0.06 [-0.18, +0.07] 1 Logs bounds checks dashboard
➖ quality_gate_security_idle memory utilization -0.09 [-0.13, -0.05] 1 Logs bounds checks dashboard
➖ dsd_uds_10mb_3k_timestamped_contexts_memory memory utilization -0.14 [-0.36, +0.09] 1 Logs
➖ quality_gate_security_no_fs_load memory utilization -0.37 [-0.43, -0.31] 1 Logs bounds checks dashboard
➖ quality_gate_idle_all_features memory utilization -0.42 [-0.50, -0.35] 1 Logs bounds checks dashboard
➖ quality_gate_metrics_logs memory utilization -0.59 [-0.81, -0.36] 1 Logs bounds checks dashboard
➖ quality_gate_security_mean_fs_load memory utilization -0.82 [-0.87, -0.77] 1 Logs bounds checks dashboard
➖ dsd_uds_client_drop_detector_cpu % cpu utilization -2.74 [-3.29, -2.19] 1 Logs

Bounds Checks: ✅ Passed

perf experiment bounds_check_name replicates_passed observed_value links
✅ python_openmetrics checks_execution_time 10/10 84.93 ≤ 100 bounds checks dashboard
✅ python_openmetrics cpu_usage 10/10 1350.25 ≤ 1500 bounds checks dashboard
✅ python_openmetrics memory_usage 10/10 4.34GiB ≤ 4.75GiB bounds checks dashboard
✅ quality_gate_idle intake_connections 10/10 5 ≤ 5 bounds checks dashboard
✅ quality_gate_idle memory_usage 10/10 184.12MiB ≤ 190MiB bounds checks dashboard
✅ quality_gate_idle total_bytes_received 10/10 779.93KiB ≤ 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 472.93MiB ≤ 544MiB bounds checks dashboard
✅ quality_gate_idle_all_features total_bytes_received 10/10 1.18MiB ≤ 1.25MiB bounds checks dashboard
✅ quality_gate_logs intake_connections 10/10 16 ≤ 40 bounds checks dashboard
✅ quality_gate_logs memory_usage 10/10 228.58MiB ≤ 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.10MiB ≤ 292MiB bounds checks dashboard
✅ quality_gate_metrics_logs cpu_usage 10/10 395.60 ≤ 2000 bounds checks dashboard
✅ quality_gate_metrics_logs intake_connections 10/10 20 ≤ 40 bounds checks dashboard
✅ quality_gate_metrics_logs memory_usage 10/10 439.30MiB ≤ 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 969.72MiB ≤ 1.04GiB bounds checks dashboard
✅ quality_gate_private_action_runner memory_usage 10/10 76.05MiB ≤ 78MiB bounds checks dashboard
✅ quality_gate_security_idle cpu_usage 10/10 27.90 ≤ 100 bounds checks dashboard
✅ quality_gate_security_idle memory_usage 10/10 329.84MiB ≤ 365MiB bounds checks dashboard
✅ quality_gate_security_mean_fs_load cpu_usage 10/10 47.14 ≤ 200 bounds checks dashboard
✅ quality_gate_security_mean_fs_load memory_usage 10/10 316.51MiB ≤ 343MiB bounds checks dashboard
✅ quality_gate_security_no_fs_load cpu_usage 10/10 24.46 ≤ 100 bounds checks dashboard
✅ quality_gate_security_no_fs_load memory_usage 10/10 323.19MiB ≤ 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_idle, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check memory_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_idle, bounds check total_bytes_received: 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_logs, bounds check intake_connections: 10/10 replicas passed. Gate passed.
  • quality_gate_logs, bounds check memory_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 total_bytes_received: 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 intake_connections: 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 missed_bytes: 10/10 replicas passed. Gate passed.
  • quality_gate_metrics_logs, bounds check total_bytes_received: 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 cpu_usage: 10/10 replicas passed. Gate passed.
  • quality_gate_security_idle, 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_security_mean_fs_load, bounds check memory_usage: 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.

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit c09124f into main Nov 11, 2026
377 of 378 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the regis.desgroppes/linux-default-config-settings branch November 11, 2026 13:19
@github-actions github-actions Bot added this to the 7.87.0 milestone Nov 11, 2026
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 medium review PR review might take time qa/no-code-change No code change in Agent code requiring validation team/agent-apm trace-agent team/agent-build team/agent-runtimes team/fleet-automation team/windows-products

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants