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

Migrate to github.com/aws/aws-sdk-go-v2 #408

Merged
merged 2 commits into from
Jan 19, 2024
Merged

Migrate to github.com/aws/aws-sdk-go-v2 #408

merged 2 commits into from
Jan 19, 2024

Conversation

maraino
Copy link
Contributor

@maraino maraino commented Jan 19, 2024

Description

This PR migrates the awskms implementation to the v2 of AWS SDK.

Fixes #405

This PR migrates the awskms implementation to the v2 of AWS SDK.

Fixes #405
Comment on lines 367 to 369
{"SHA512WithRSA+2048", args{apiv1.SHA256WithRSA, 2048}, types.KeySpecRsa2048, assert.NoError},
{"SHA512WithRSA+3072", args{apiv1.SHA256WithRSA, 3072}, types.KeySpecRsa3072, assert.NoError},
{"SHA512WithRSA+4096", args{apiv1.SHA256WithRSA, 4096}, types.KeySpecRsa4096, assert.NoError},
Copy link
Member

Choose a reason for hiding this comment

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

I think those should have apiv1.SHA512WithRSA for the names to match??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy paste. They succeed because AWS is not like GCP, and you can use the same key for different types of signatures. Fixed with 3404685

Comment on lines 375 to 377
{"SHA512WithRSAPSS+2048", args{apiv1.SHA256WithRSA, 2048}, types.KeySpecRsa2048, assert.NoError},
{"SHA512WithRSAPSS+3072", args{apiv1.SHA256WithRSA, 3072}, types.KeySpecRsa3072, assert.NoError},
{"SHA512WithRSAPSS+4096", args{apiv1.SHA256WithRSA, 4096}, types.KeySpecRsa4096, assert.NoError},
Copy link
Member

Choose a reason for hiding this comment

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

Those too should have SHA512WithRSA?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@maraino maraino requested a review from hslatman January 19, 2024 18:21
@maraino maraino merged commit a421914 into master Jan 19, 2024
13 checks passed
@maraino maraino deleted the aws-v2 branch January 19, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate to AWS Go SDK v2
2 participants