-
Notifications
You must be signed in to change notification settings - Fork 202
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
Adds sigv4 support to Elasticsearch client #3305
Adds sigv4 support to Elasticsearch client #3305
Conversation
* An {@link HttpRequestInterceptor} that signs requests using any AWS {@link Signer} | ||
* and {@link AwsCredentialsProvider}. | ||
*/ | ||
final class AwsRequestSigningApacheInterceptor implements HttpRequestInterceptor { |
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 think we were moving this into the aws-plugin-api
project to re-use. Perhaps that PR hasn't yet been merged.
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 will make it a public class in aws-plugin-api
@@ -12,7 +13,7 @@ jacocoTestCoverageVerification { | |||
violationRules { | |||
rule { | |||
limit { | |||
minimum = 1.0 | |||
minimum = 0.95 |
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.
It would be very good to keep 100% coverage. Is there a certain line you are having difficulty reaching?
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.
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.
Because I can't mock the response of context.getAttribute to return an invalid HttpHost, and I can't mock it to throw either since that's a checked exception
Signed-off-by: Taylor Gray <[email protected]>
…source and sink Signed-off-by: Taylor Gray <[email protected]>
Signed-off-by: Taylor Gray <[email protected]>
Signed-off-by: Taylor Gray <[email protected]>
2c60a8e
to
5294eb3
Compare
Adds sigv4 support to Elasticsearch client. Move AwsRequestSigningApacheInterceptor to aws-plugin-api, use in os source and sink Signed-off-by: Taylor Gray <[email protected]>
Description
This was a miss from earlier on. The Elasticsearch client currently only supports username and password, and this adds sigv4 support so elasticsearch clusters will be able to alternatively specify an
sts_role_arn
Issues Resolved
Related to #1985
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.