Skip to content

Add version metadata to version command - #4820

Merged
michel-laterman merged 2 commits into
elastic:mainfrom
michel-laterman:fips-distribution-version
Apr 24, 2025
Merged

michel-laterman merged 2 commits into
elastic:mainfrom
michel-laterman:fips-distribution-version

Conversation

@michel-laterman

Copy link
Copy Markdown
Contributor

What is the problem this PR solves?

We are not able to determine if a fleet-server binary is a FIPS distribution or not.

How does this PR solve the problem?

Add build commit, build time, and FIPS distribution indicator to the output of the version command. Add FIPS distribution indicator to initial log line.

How to test this PR locally

Run: ./fleet-server -v

Example output:

./bin/fleet-server -v
fleet-server version 9.1.0 [5500121e built 2025-04-16 19:28:02 +0000 UTC] (FIPS-distribution: false)

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

Add build commit, build time, and FIPS distribution indicator to the
output of the version command. Add FIPS distribution indicator to
initial log line.
@michel-laterman michel-laterman added enhancement New feature or request Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team backport-8.19 Automated backport to the 8.19 branch labels Apr 16, 2025
@michel-laterman
michel-laterman requested a review from a team as a code owner April 16, 2025 19:38
@elastic-sonarqube

Copy link
Copy Markdown

@michel-laterman
michel-laterman merged commit b7ea9a2 into elastic:main Apr 24, 2025
@michel-laterman
michel-laterman deleted the fips-distribution-version branch April 24, 2025 18:46
mergify Bot pushed a commit that referenced this pull request Apr 24, 2025
Add build commit, build time, and FIPS distribution indicator to the
output of the version command. Add FIPS distribution indicator to
initial log line.

(cherry picked from commit b7ea9a2)
michel-laterman added a commit that referenced this pull request Apr 28, 2025
Add build commit, build time, and FIPS distribution indicator to the
output of the version command. Add FIPS distribution indicator to
initial log line.

(cherry picked from commit b7ea9a2)

Co-authored-by: Michel Laterman <82832767+michel-laterman@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-8.19 Automated backport to the 8.19 branch enhancement New feature or request Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants