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: Update AWS SDK v2 to v3 [WIP] #528

Closed
wants to merge 56 commits into from

Conversation

davidvpe
Copy link
Contributor

Hi all, I started working on this a while ago, but since I had encountered one road block that I wasn't able to upgrade yet. The authentication part. I hope this community can give me a hand to complete this PR and we can finally upgrade to v3

// save the credentialsProvider for any of the services we initialize
AwsUtil.credentialsProvider = provider;

// oc: not sure if this is needed, my guess is not
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure. Isn't it necessary to pick up sso credentials for example?

To do this, specify a credential process in the shared AWS config file or the shared credentials file. If the AWS_SDK_LOAD_CONFIG environment variable is set to a truthy value, the SDK will prefer the process specified in the config file over the process specified in the credentials file (if any).

Copy link
Member

Choose a reason for hiding this comment

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

hmm.. the default credentials provider seems to be capable of dealing with all of it. we could just try to not set it and see what happens

public static async Initialize(credentials?: Provider<AwsCredentialIdentity>): Promise<void> {

// if no credentials(provider) was passed in this method, we use the default
const provider = credentials ?? defaultProvider({
Copy link
Member

Choose a reason for hiding this comment

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

is this custom credentials provider strictly here for testing purposes? I can't find anywhere in the code where it is invoked with a customer credentials provider

Copy link
Member

Choose a reason for hiding this comment

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

we used to do that for GovCloud (see here)

OlafConijn and others added 27 commits November 18, 2023 18:49
@OlafConijn OlafConijn force-pushed the feat/update_aws_sdk_v3 branch from be080e7 to 4860a81 Compare December 4, 2023 13:36
@OlafConijn OlafConijn closed this Dec 10, 2023
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.

3 participants