-
Notifications
You must be signed in to change notification settings - Fork 180
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
Add support for MSK with IAM authentication #521
base: master
Are you sure you want to change the base?
Conversation
Support for AWS MSK with IAM authentication
Reopening it based on conversation here. |
Fixing CI failures with Ruby 2.7
I fixed the dependencies that require Ruby > 3.0, so that the CI tests using Ruby 2.7 now also pass. I also added If there is interest at all in merging it in, I'd be happy to continue making improvements to the code with some input. Please let me know if this feature is not something that is considered useful and I can close the PR. In terms of possible improvements, I was wondering if it would be better to have a config param such as <match *>
@type rdkafka2
# other options
# AWS Region (required)
aws_msk_region us-east-1
# MSK IAM authentication settings (required)
rdkafka_options {
"security.protocol": "sasl_ssl",
"sasl.mechanisms": "OAUTHBEARER"
}
</match> the config could look like this: <match *>
@type rdkafka2
# ... other options ....
use_aws_msk_iam_auth true
aws_msk_region us-east-1
</match> Also, I was wondering if there is a way to not use the |
This adds support for using MSK IAM authentication with the
rdkafka2
output type. Authentication and authorization with an MSK cluster are facilitated through a base64-encoded signed URL, which is generated by the aws-msk-iam-sasl-signer-ruby library.