Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Jun 18, 2025

Proposed commit message

This PR (similar to #43480) ensures that the Metricbeat mssql module code is only compiled in non-FIPS builds of Metricbeat and is, therefore, unavailable in FIPS-capable Metricbeat artifacts.

The module indirectly depends on the Azure Go SDK. The SDK's code uses the golang.org/x/crypto/pkcs12 package, which is not FIPS-compliant, and the SDK doesn't plan to offer a way to disable the use of this package at compile time (see Azure/azure-sdk-for-go#24336).

As such, we have little choice but to exclude the mssql module from FIPS-capable Metricbeat builds.

The doc.go files added to every metricset in the mssql module are to prevent compile-time errors like so:

build constraints exclude all Go files in x-pack/metricbeat/module/mssql/performance

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Disruptive User Impact

FIPS-capable artifacts of Metricbeat will not contain the mssql module.


This is an automatic backport of pull request #44890 done by [Mergify](https://mergify.com).

* Exclude non-generated Go code from FIPS build

* Add doc about module availability

* Adding CHANGELOG entry

* Adding doc.go files to workaround excluding all Go files in build

* Update PR number in CHANGELOG entry

* Remove CHANGELOG entry

(cherry picked from commit 9f5988f)
@mergify mergify bot requested a review from a team as a code owner June 18, 2025 19:20
@mergify mergify bot added the backport label Jun 18, 2025
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jun 18, 2025
@botelastic
Copy link

botelastic bot commented Jun 18, 2025

This pull request doesn't have a Team:<team> label.

@ycombinator ycombinator merged commit d9f874e into 8.19 Jun 19, 2025
43 of 46 checks passed
@ycombinator ycombinator deleted the mergify/bp/8.19/pr-44890 branch June 19, 2025 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport needs_team Indicates that the issue/PR needs a Team:* label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants