Skip to content

feat: STS web identity creds resolver #933

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

Merged
merged 13 commits into from
Jun 17, 2025

Conversation

sichanyoo
Copy link
Contributor

@sichanyoo sichanyoo commented Jun 2, 2025

Companion PR:

Issue #

2380

Description of changes

  • Add visibility setting to SwiftSettings.
  • Allow generic AuthSchemeResolverGenerator to be parametrized with a closure that takes in a writer and writes custom code to construct AuthOption. Allows companion change to construct and add IdentityProvidingSTSClient to auth option's identityProperties, which is then used by relevant cred resolvers during identity resolution.

Scope

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor Author

@sichanyoo sichanyoo left a comment

Choose a reason for hiding this comment

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

Comments to help with reviews.

@@ -36,6 +36,7 @@ private const val GIT_REPO = "gitRepo"
private const val SWIFT_VERSION = "swiftVersion"
Copy link
Contributor Author

@sichanyoo sichanyoo Jun 3, 2025

Choose a reason for hiding this comment

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

The visibility setting in swift plugin codegen settings comes from the smithy-build.json generated at build time by aws-sdk-swift/codegen/sdk-codegen/build.gradle.kts, like all other values in the settings.

It's added to generate an internal STS client into AWSSDKIdentity module. For all public services, visibility is public.

Sichan Yoo added 3 commits June 3, 2025 15:24
@sichanyoo sichanyoo requested a review from jbelkins June 4, 2025 16:02
@sichanyoo sichanyoo merged commit 7a77db8 into main Jun 17, 2025
33 checks passed
@sichanyoo sichanyoo deleted the feat/sts-web-identity-creds-resolver branch June 17, 2025 21:32
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.

2 participants