-
Notifications
You must be signed in to change notification settings - Fork 5.3k
aws_request_signing: extend api to allow excluding headers from signing #18998
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
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 |
|---|---|---|
|
|
@@ -48,7 +48,10 @@ Http::FilterFactoryCb AwsLambdaFilterFactory::createFilterFactoryFromProtoTyped( | |
| const std::string region = arn->region(); | ||
| auto signer = std::make_shared<Extensions::Common::Aws::SignerImpl>( | ||
| service_name, region, std::move(credentials_provider), | ||
| context.mainThreadDispatcher().timeSource()); | ||
| context.mainThreadDispatcher().timeSource(), | ||
| // TODO: extend API to allow specifying header exclusion. ref: | ||
| // https://github.com/envoyproxy/envoy/pull/18998 | ||
| Extensions::Common::Aws::AwsSigV4HeaderExclusionVector{}); | ||
|
Member
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. Should there be a TODO here for allow configuration of this? Wouldn't the same problem exist for this filter?
Contributor
Author
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. Yes, I think we'd eventually want the same changes for the lambda and grpc iam filters. I'll add a TODO. |
||
|
|
||
| FilterSettings filter_settings{*arn, getInvocationMode(proto_config), | ||
| proto_config.payload_passthrough()}; | ||
|
|
||
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.
I see these defaults are pre-existing, but are they documented anywhere? Perhaps make it more clear in the API docs what the defaults are if not set?
Uh oh!
There was an error while loading. Please reload this page.
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.
Thanks Matt! Yes, I'll list them out in the doc.