Skip to content

Comments

Add external_id support for AWS role assumption#52

Merged
roidelapluie merged 1 commit intoprometheus:mainfrom
roidelapluie:roidelapluie/externalId
Jan 6, 2026
Merged

Add external_id support for AWS role assumption#52
roidelapluie merged 1 commit intoprometheus:mainfrom
roidelapluie:roidelapluie/externalId

Conversation

@roidelapluie
Copy link
Member

AWS recommends using external IDs to prevent the confused deputy problem when granting cross-account access. This adds an optional external_id configuration field that is passed to STS AssumeRole when role_arn is specified.

The implementation follows the same pattern as Prometheus core (prometheus/prometheus#17171) and uses the AWS SDK v2 functional options pattern to conditionally set the external ID only when provided.

Fixes #46.

AWS recommends using external IDs to prevent the confused deputy problem
when granting cross-account access. This adds an optional external_id
configuration field that is passed to STS AssumeRole when role_arn is
specified.

The implementation follows the same pattern as Prometheus core (prometheus/prometheus#17171)
and uses the AWS SDK v2 functional options pattern to conditionally set
the external ID only when provided.

Fixes prometheus#46.

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
@roidelapluie roidelapluie merged commit 0afb788 into prometheus:main Jan 6, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add External ID option

2 participants