Add Async proxy configuration support for AWS Kinesis/Cloudwatch input#26404
Open
Nithin-Kasam wants to merge 2 commits into
Open
Add Async proxy configuration support for AWS Kinesis/Cloudwatch input#26404Nithin-Kasam wants to merge 2 commits into
Nithin-Kasam wants to merge 2 commits into
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Added async proxy configuration support for AWS Kinesis/CloudWatch input by introducing a new AWSAsyncProxyConfigurationProvider class.
Motivation and Context
The existing
AWSProxyConfigurationProvideruses the Apache HTTP client, which cannot be used by AWS async clients (DynamoDB, CloudWatch, Kinesis) that the Kinesis input relies on. The Kinesis Client Library additionally requires HTTP/2, which is only supported by the Netty async client. This change enables the Kinesis/CloudWatch input to work through the configured Graylog HTTP proxy.closes https://github.com/Graylog2/graylog-plugin-enterprise/issues/14460
How Has This Been Tested?
-> Installed tiny proxy in my system.
-> Configured tiny.cfg file with
port 8888
Listen 0.0.0.0
Allow 127.0.0.1
ConnectPort 443
ConnectPort 80
-> Run the file . tinyproxy -c tiny.cfg
-> Configured http_proxy_uri = http://graylog:password12345@127.0.0.1:8888 in graylog.conf file
-> Verified logs by creating the input.
Added comprehensive unit tests in [AWSAsyncProxyConfigurationProviderTest.java] covering:
Screenshots (if appropriate):
Types of changes
Checklist: