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(experimentalIdentityAndAuth): release phase for services with signing customizations #5286

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

syall
Copy link
Contributor

@syall syall commented Sep 29, 2023

Issue

Issue number, if available, prefixed with "#"

N/A.

Description

What does this implement/fix? Explain your changes.

Release experimentalIdentityAndAuth support for services with signing customizations in aws-sdk-js-v3.

Services:

  • RDS
  • EC2
  • Polly

TODO:

  • Rebase and regenerate clients after Friday's SDK release

Testing

How was this change tested?

CI passes.

Additional context

Add any other context about the PR here.

Revert release PR: #5287


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Sorry, something went wrong.

@syall syall force-pushed the experimentalIdentityAndAuth-phase-4 branch from 817d829 to 7c69bad Compare October 2, 2023 22:44
@syall syall changed the title feat(experimentalIdentityAndAuth): release phase 4 feat(experimentalIdentityAndAuth): release phase for services with signing customizations Jan 5, 2024
@syall syall force-pushed the experimentalIdentityAndAuth-phase-4 branch from 7c69bad to 50b2bbb Compare January 5, 2024 03:18
@syall syall marked this pull request as ready for review January 5, 2024 14:50
@syall syall requested a review from a team as a code owner January 5, 2024 14:50
new DefaultIdentityProviderConfig({
"aws.auth#sigv4": config.credentials,
});
}
Copy link
Contributor

Choose a reason for hiding this comment

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

private methods should be at the bottom of a class

Copy link
Contributor Author

@syall syall Jan 5, 2024

Choose a reason for hiding this comment

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

Got it. I think this will require intercepting a different code section in smithy-typescript.

Currently it intercepts ClientPropertiesCodeSection, but I'm thinking for the private methods, it should intercept ClientBodyExtraCodeSection: https://github.com/smithy-lang/smithy-typescript/blob/9972041f7d31886e035ec68bffc5f0af12512dd3/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/ServiceBareBonesClientGenerator.java#L335C34-L335C60

Copy link
Contributor Author

Choose a reason for hiding this comment

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

{
schemeId: "aws.auth#sigv4",
identityProvider: (ipc: IdentityProviderConfig) => ipc.getIdentityProvider("aws.auth#sigv4"),
signer: new AWSSDKSigV4Signer(),
Copy link
Contributor

Choose a reason for hiding this comment

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

a bit late to address this, but this class should be called AwsSdkSigV4Signer. We don't capitalize other abbreviations like in HttpHandler

Copy link
Contributor

Choose a reason for hiding this comment

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

/**
 * @deprecated renamed.
 */
export const AWSSDKSigV4Signer = AwsSdkSigV4Signer;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See: #5667

Steven Yuan added 2 commits January 5, 2024 15:16

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…gning customizations

Services:

- RDS
- EC2
- Polly

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@syall syall force-pushed the experimentalIdentityAndAuth-phase-4 branch from 559882b to 27821e7 Compare January 5, 2024 20:17
@syall syall merged commit 1ba36c4 into aws:main Jan 5, 2024
@syall syall deleted the experimentalIdentityAndAuth-phase-4 branch January 5, 2024 20:46
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 Jan 26, 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.

None yet

3 participants