-
Notifications
You must be signed in to change notification settings - Fork 221
Add support for Unframing SigV4 signed messages for Servers #4356
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
Changes from all commits
1893949
ba41f10
a2c5b6b
fedbf82
e226548
b953078
2532743
266592d
e46c519
b1188b4
7a66d27
b8cdd0b
9a260e8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| --- | ||
| applies_to: | ||
| - server | ||
| authors: | ||
| - rcoh | ||
| references: ["smithy-rs#4356"] | ||
| breaking: true | ||
| new_feature: true | ||
| bug_fix: false | ||
| --- | ||
| Parse EventStream signed-frames for servers marked with `@sigv4`. | ||
|
|
||
| This is a breaking change, because events from SigV4 services are wrapped in a SignedEvent frame. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,8 +6,10 @@ use smithy.framework#ValidationException | |
| use smithy.protocols#rpcv2Cbor | ||
| use smithy.test#httpResponseTests | ||
| use smithy.test#httpMalformedRequestTests | ||
| use aws.auth#sigv4 | ||
|
|
||
| @rpcv2Cbor | ||
| @sigv4(name: "rpcv2-cbor") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there an existing test service without @sigv4 to verify the code generator works for unsigned services? If not, perhaps instead of adding this annotation directly to the .smithy file, we could add it as part of a separate test to ensure both signed and unsigned services are covered? |
||
| service RpcV2CborService { | ||
| operations: [ | ||
| SimpleStructOperation | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Don't think you meant to leave info for a specific bug in the AGENTS file?