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

[8.x](backport #4472) Fix docker image build for FIPS variants #4501

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Feb 20, 2025

What is the problem this PR solves?

Multiple -tags= flags are used if FIPS and SNAPSHOT are set.
Correct the resulting docker image that's created when FIPS is used.
Add fips e2e test that verifies a binary.

How does this PR solve the problem?

Merge tags used for all go build commands into a comma separated list.
Change resulting docker base image to a fips enabled one.
Add e2e test that will run after a FIPS binary has been compiled, test will use go version to ensure the go binary has the expected FIPS indicators (build tag and expriement), and will check the binary's symbols (if present) for OpenSSL_version.

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 Fix docker image build for FIPS variants #4472 done by Mergify.

Fix multiple -tags= flags occurances.
Correct the resulting docker image that's created when FIPS is used.
Add fips e2e test that verifies a binary.

(cherry picked from commit c83472b)
@mergify mergify bot requested a review from a team as a code owner February 20, 2025 18:11
@mergify mergify bot added the backport label Feb 20, 2025
@mergify mergify bot requested review from blakerouse and kaanyalti February 20, 2025 18:11
Copy link

elastic-sonarqube bot commented Feb 20, 2025

@pierrehilbert pierrehilbert added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Feb 21, 2025
@pierrehilbert pierrehilbert merged commit 2b2ec1c into 8.x Feb 21, 2025
9 of 10 checks passed
@pierrehilbert pierrehilbert deleted the mergify/bp/8.x/pr-4472 branch February 21, 2025 07:41
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.

2 participants