-
Notifications
You must be signed in to change notification settings - Fork 737
Fix SRA auth trailing checksum retry bug #2438
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
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
eae1c77
fixes up until now
isaiahvita 0ad4fd9
set use trailer context flag to pass integ tests
isaiahvita 7634559
add integ test
isaiahvita 586b1fd
fix signing middleware not found bug
isaiahvita 2884b76
add back removed useTrailer due to use in unit test
isaiahvita 1c0c19a
remove mistakenly included go v1 module
isaiahvita 5d57184
fix stack list check
isaiahvita 1ca711f
fix trailer checksum unit tests
isaiahvita 3426a95
add expected signed retry header in unit tests
isaiahvita c011334
drop retry middlewares from presigning ops
isaiahvita 3a41268
add noop sra auth relevant middlewares to imds
isaiahvita 8b40b4d
fix minor issues
isaiahvita 4ae5721
add noop sra auth middlewares to endpointscreds credsprovider
isaiahvita 59ad5e3
fix imds unit tests
isaiahvita be6440c
fix imds unit tests
isaiahvita 8474f64
run make format on whole repos
isaiahvita 8bf8242
regen everything
isaiahvita c5d52f6
change formatting to unwrap
isaiahvita be46607
change back sprintf to not unwrap because not supported
isaiahvita 2b02a90
change to unwrap and change the formatting func, because its better
isaiahvita 10d07e7
fixed wrong function
isaiahvita e5e486d
fix error func return type
isaiahvita 133a52f
error func has to return a string, so this usage cannot use unwrapping
isaiahvita File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| package client | ||
|
|
||
| import ( | ||
| "context" | ||
| "github.com/aws/smithy-go/middleware" | ||
| ) | ||
|
|
||
| type getIdentityMiddleware struct { | ||
| options Options | ||
| } | ||
|
|
||
| func (*getIdentityMiddleware) ID() string { | ||
| return "GetIdentity" | ||
| } | ||
|
|
||
| func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( | ||
| out middleware.FinalizeOutput, metadata middleware.Metadata, err error, | ||
| ) { | ||
| return next.HandleFinalize(ctx, in) | ||
| } | ||
|
|
||
| type signRequestMiddleware struct { | ||
| } | ||
|
|
||
| func (*signRequestMiddleware) ID() string { | ||
| return "Signing" | ||
| } | ||
|
|
||
| func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( | ||
| out middleware.FinalizeOutput, metadata middleware.Metadata, err error, | ||
| ) { | ||
| return next.HandleFinalize(ctx, in) | ||
| } | ||
|
|
||
| type resolveAuthSchemeMiddleware struct { | ||
| operation string | ||
| options Options | ||
| } | ||
|
|
||
| func (*resolveAuthSchemeMiddleware) ID() string { | ||
| return "ResolveAuthScheme" | ||
| } | ||
|
|
||
| func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( | ||
| out middleware.FinalizeOutput, metadata middleware.Metadata, err error, | ||
| ) { | ||
| return next.HandleFinalize(ctx, in) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| package client | ||
|
|
||
| import ( | ||
| "context" | ||
| "github.com/aws/smithy-go/middleware" | ||
| ) | ||
|
|
||
| type resolveEndpointV2Middleware struct { | ||
| options Options | ||
| } | ||
|
|
||
| func (*resolveEndpointV2Middleware) ID() string { | ||
| return "ResolveEndpointV2" | ||
| } | ||
|
|
||
| func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( | ||
| out middleware.FinalizeOutput, metadata middleware.Metadata, err error, | ||
| ) { | ||
| return next.HandleFinalize(ctx, in) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| package imds | ||
|
|
||
| import ( | ||
| "context" | ||
| "github.com/aws/smithy-go/middleware" | ||
| ) | ||
|
|
||
| type getIdentityMiddleware struct { | ||
| options Options | ||
| } | ||
|
|
||
| func (*getIdentityMiddleware) ID() string { | ||
| return "GetIdentity" | ||
| } | ||
|
|
||
| func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( | ||
| out middleware.FinalizeOutput, metadata middleware.Metadata, err error, | ||
| ) { | ||
| return next.HandleFinalize(ctx, in) | ||
| } | ||
|
|
||
| type signRequestMiddleware struct { | ||
| } | ||
|
|
||
| func (*signRequestMiddleware) ID() string { | ||
| return "Signing" | ||
| } | ||
|
|
||
| func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( | ||
| out middleware.FinalizeOutput, metadata middleware.Metadata, err error, | ||
| ) { | ||
| return next.HandleFinalize(ctx, in) | ||
| } | ||
|
|
||
| type resolveAuthSchemeMiddleware struct { | ||
| operation string | ||
| options Options | ||
| } | ||
|
|
||
| func (*resolveAuthSchemeMiddleware) ID() string { | ||
| return "ResolveAuthScheme" | ||
| } | ||
|
|
||
| func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( | ||
| out middleware.FinalizeOutput, metadata middleware.Metadata, err error, | ||
| ) { | ||
| return next.HandleFinalize(ctx, in) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| package imds | ||
|
|
||
| import ( | ||
| "context" | ||
| "github.com/aws/smithy-go/middleware" | ||
| ) | ||
|
|
||
| type resolveEndpointV2Middleware struct { | ||
| options Options | ||
| } | ||
|
|
||
| func (*resolveEndpointV2Middleware) ID() string { | ||
| return "ResolveEndpointV2" | ||
| } | ||
|
|
||
| func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( | ||
| out middleware.FinalizeOutput, metadata middleware.Metadata, err error, | ||
| ) { | ||
| return next.HandleFinalize(ctx, in) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.