-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat: IAM method support in new join service #60033
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
base: nklaassen/iam-messages
Are you sure you want to change the base?
Conversation
// 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 { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
55c0ced
to
d798024
Compare
12c2d8c
to
ae4f52b
Compare
d798024
to
a33fe08
Compare
ae4f52b
to
27e143b
Compare
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.