Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9.0](backport #4581) Add go1.24 GODEBUG=fips140=only test #4613

Merged
merged 2 commits into from
Mar 19, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Mar 19, 2025

What is the problem this PR solves?

Validate FIPS compliance by using go 1.24's fips features.

How does this PR solve the problem?

Add a new target that uses GODEBUG=fips140=only to run unit tests.
This target should use the FIPS=true flag in order to pass -tags=requirefips.

Note that this target assumes golang/go and NOT microsoft/go.
In order to use microsoft/go to run these test we would need to install in the environment, and have a FIPS enabled OpenSSL on the system.

How to test this PR locally

FIPS=true make test-unit-fips

Design Checklist

  • I have ensured my design is stateless and will work when multiple fleet-server instances are behind a load balancer.
  • I have or intend to scale test my changes, ensuring it will work reliably with 100K+ agents connected.
  • I have included fail safe mechanisms to limit the load on fleet-server: rate limiting, circuit breakers, caching, load shedding, etc.

Checklist

  • 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/fragments using the changelog tool
    This is an automatic backport of pull request Add go1.24 GODEBUG=fips140=only test #4581 done by Mergify.

Add a new target that uses GODEBUG=fips140=only to run unit tests.
This target should use the FIPS=true flag in order to pass -tags=requirefips.

(cherry picked from commit 8e304bd)
@mergify mergify bot requested a review from a team as a code owner March 19, 2025 20:24
@mergify mergify bot added the backport label Mar 19, 2025
@mergify mergify bot requested review from michalpristas and swiatekm March 19, 2025 20:24
@github-actions github-actions bot added Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team tech debt labels Mar 19, 2025
@michel-laterman
Copy link
Contributor

michel-laterman commented Mar 19, 2025

Missing backport #4361, fixed with #4614

@michel-laterman
Copy link
Contributor

@Mergifyio rebase

Copy link
Contributor Author

mergify bot commented Mar 19, 2025

rebase

❌ Unable to rebase: user michel-laterman is unknown.

Please make sure michel-laterman has logged in Mergify dashboard.

Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@michel-laterman michel-laterman merged commit 7135339 into 9.0 Mar 19, 2025
9 checks passed
@michel-laterman michel-laterman deleted the mergify/bp/9.0/pr-4581 branch March 19, 2025 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team tech debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant