Skip to content

Conversation

nklaassen
Copy link
Contributor

Part of RFD 27e

This PR adds support for the IAM join method to the new join service and client. Both the new and legacy gRPC servers are updated to use common logic that verifies the request.

@nklaassen nklaassen added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v18 labels Oct 8, 2025
// To keep this validation simple and secure, we check the given endpoint
// against a static list of known valid endpoints. We will need to update this
// list as AWS adds new regions.
func validateSTSHost(stsHost string, fips bool) error {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

code in this file has been moved from lib/auth/join_iam.go with minimal changes

authCtx,
boundKeypairInit.ClientParams.BotParams,
claims,
nil, // TODO(timothyb89): workload id claims
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@timothyb89 this TODO was in the original bound keypair implementation, copied here now that one of the join methods actually has workload ID claims and it became a parameter here

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the heads up - this one isn't urgent so I see no issues copying the comment.

@nklaassen nklaassen marked this pull request as ready for review October 8, 2025 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/branch/v18 no-changelog Indicates that a PR does not require a changelog entry size/md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants