-
Notifications
You must be signed in to change notification settings - Fork 196
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
add Sigv4A support #2939
add Sigv4A support #2939
Conversation
26b9f64
to
e8daee5
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
|
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
e67e1a4
to
294ebe2
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super awesome that you got this working! Great work. I have a number of questions/suggestions, and it looks like there might have been some merge issues that resulted in deleted tests.
rust-runtime/aws-smithy-runtime/src/client/orchestrator/auth.rs
Outdated
Show resolved
Hide resolved
rust-runtime/aws-smithy-runtime/src/client/orchestrator/auth.rs
Outdated
Show resolved
Hide resolved
aws/sdk-codegen/src/test/kotlin/software/amazon/smithy/rustsdk/EndpointBuiltInsDecoratorTest.kt
Outdated
Show resolved
Hide resolved
aws/sdk-codegen/src/test/kotlin/software/amazon/smithy/rustsdk/TestUtil.kt
Show resolved
Hide resolved
aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/SigV4AuthDecorator.kt
Outdated
Show resolved
Hide resolved
A new generated diff is ready to view.
A new doc preview is ready to view. |
1e540e4
to
b411f99
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I'll wait to approve until a changelog entry is available for the PR, which I suspect is not so short.
Co-authored-by: ysaito1001 <awsaito@amazon.com>
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
use fixed date in MRAP signature test
A new generated diff is ready to view.
A new doc preview is ready to view. |
|
@@ -27,7 +27,7 @@ hmac = "0.12" | |||
http = { version = "0.2", optional = true } | |||
num-bigint = { version = "0.4", optional = true } | |||
once_cell = "1.8" | |||
p256 = { version = "0.13.2", features = ["ecdsa"], optional = true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
intentional downgrade?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, b/c it would otherwise conflict with the version of digest
required by hmac
aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/SigV4AuthDecorator.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved — see inline comments, I don't think they're blocking but we should get to the bottom of them at some point.
you need to add the |
update feature gate helper to work on blocks instead of lines
A new generated diff is ready to view.
A new doc preview is ready to view. |
Motivation
smithy-rs#1797
Description
This PR adds Sigv4a support along with many tests that were ported from the CRT Sigv4a project. It does not include:
Additionally, test Sigv4a is annoying because Sigv4a signing is non-deterministic. Because of this, the tests test signature generation by first signing a request, and then by verifying that signature (This is how the CRT tests this feature).
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.