Skip to content
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

feat(credential-providers): lazy load STS & SSO clients in credential providers #5681

Merged
merged 6 commits into from
Jan 29, 2024

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Jan 12, 2024

As a followup to #5677 (dynamic imports for Node.js credential providers),
this PR uses the same lazy-loading mechanism for the STS and SSO clients used in credential resolution.

Additionally, the PR uses peerDependency declaration as an alternative to the bundling solution given in #5049.

  • yarn test:integration
  • yarn test:e2e
  • yarn test:e2e:legacy
  • full codegen (remove decorator, keep STS client dependency)

Browser Testing

  • fromCognitoIdentity
  • fromCognitoIdentityPool
  • fromTemporaryCredentials
  • fromWebToken
  • fromHttp

Node.js testing

  • fromContainerMetadata / fromInstanceMetadata
  • fromHttp
  • fromIni
  • fromProcess
  • fromTokenFile (uses fromWebToken)
  • fromSSO
  • fromNodeProviderChain a.k.a. defaultProvider

@kuhe kuhe force-pushed the feat/defer-auth-client branch 5 times, most recently from d4cf9e4 to 4bd6c32 Compare January 15, 2024 16:41
@kuhe kuhe force-pushed the feat/defer-auth-client branch 11 times, most recently from c0db7e0 to 6d909ab Compare January 25, 2024 18:11
@kuhe kuhe marked this pull request as ready for review January 25, 2024 18:11
@kuhe kuhe requested a review from a team as a code owner January 25, 2024 18:11
@kuhe kuhe force-pushed the feat/defer-auth-client branch 12 times, most recently from 76612ae to 1650823 Compare January 26, 2024 20:26
@kuhe kuhe requested a review from a team as a code owner January 26, 2024 20:26
@kuhe kuhe force-pushed the feat/defer-auth-client branch 5 times, most recently from 561131a to ed31aa3 Compare January 26, 2024 21:47
@kuhe kuhe force-pushed the feat/defer-auth-client branch 2 times, most recently from 02c0b9e to 25dd1ff Compare January 29, 2024 15:34
@kuhe kuhe force-pushed the feat/defer-auth-client branch from 25dd1ff to ee8c4b9 Compare January 29, 2024 16:19
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants