Skip to content

Conversation

@sam-mcbr
Copy link
Contributor

@sam-mcbr sam-mcbr commented Oct 6, 2025

Using AWS_USE_FIPS_ENDPOINT to configure FIPS endpoint usage no longer works (see prometheus/prometheus#16752). This must be done using the use_fips_sts_endpoint config option added in prometheus/common#649. It is also available in the new sigv4 package: https://github.com/prometheus/sigv4.

Fixes #7986

Description

Allows configuring the use_fips_sts_endpoint option in the sigv4 config block. We did have a draft PR for this that can be closed: #7986.

Closes: #7986

The minimum Prometheus version was determined by:

  1. Identifying the commit that introduced this option (Add SigV4 FIPS STS endpoint config prometheus/common#649)
  2. Finding that that commit was released in https://github.com/prometheus/common/releases/tag/v0.55.0
  3. Identifying that prometheus/common was updated from v0.54.0 to v0.55.0 in https://github.com/prometheus/prometheus/releases/tag/v2.54.0.

Type of change

  • CHANGE (fix or feature that would cause existing functionality to not work as expected)
  • FEATURE (non-breaking change which adds functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Verification

Added a new unit test entry.

Changelog entry

Add support for setting `use_fips_sts_endpoint` in sigv4 config.

@sam-mcbr sam-mcbr requested a review from a team as a code owner October 6, 2025 20:54
…nfig

Using `AWS_USE_FIPS_ENDPOINT` to configure FIPS endpoint usage no longer
works (see prometheus/prometheus#16752). This
must be done using the `use_fips_sts_endpoint` config option added in
prometheus/common#649. It is also available in
the new sigv4 package: https://github.com/prometheus/sigv4.

Fixes prometheus-operator#7986

Signed-off-by: Sam McBroom <[email protected]>
Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! One small nit otherwise as I mentioned in the previous PR, the Prometheus docs would also deserve an update I believe:

Unrelated but it seems that the option isn't documented: https://prometheus.io/docs/prometheus/latest/configuration/configuration/

// roleArn defines the named AWS profile used to authenticate.
// +optional
RoleArn string `json:"roleArn,omitempty"`
// useFIPSSTSEndpoint defines FIPS mode for AWS STS endpoint.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nit)

Suggested change
// useFIPSSTSEndpoint defines FIPS mode for AWS STS endpoint.
// useFIPSSTSEndpoint defines the FIPS mode for the AWS STS endpoint.

Copy link
Contributor

@slashpai slashpai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sam-mcbr can you address the nit in follow-up PR?

I am merging this we have release today and it looks good to go

@slashpai slashpai merged commit 264d19a into prometheus-operator:main Oct 7, 2025
23 checks passed
@sam-mcbr
Copy link
Contributor Author

sam-mcbr commented Oct 7, 2025

Will do! Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow configuring the use_fips_sts_endpoint option in the sigv4 config.

3 participants