Skip to content
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

Use Ruby Kafka's ssl_ca_cert_file_path parameter to feed the CA certs #410

Merged
merged 2 commits into from
Aug 26, 2021

Conversation

syedriko
Copy link
Contributor

@syedriko syedriko commented Jul 8, 2021

This is another take on #390, with a more correct way of fixing #287, where the Fluentd Kafka plugin doesn't need to know how to parse PEM certificates. This PR depends on zendesk/ruby-kafka#905.
It is also in line with #287 (comment), which I completely agree with.

Signed-off-by: Sergey Yedrikov <syedriko@redhat.com>
@syedriko
Copy link
Contributor Author

syedriko commented Jul 8, 2021

/cc @kenhys

@syedriko
Copy link
Contributor Author

The dependency just got approved: zendesk/ruby-kafka#905 (review)

@syedriko
Copy link
Contributor Author

zendesk/ruby-kafka#905 has merged.

@ashie ashie self-requested a review August 5, 2021 02:26
Copy link
Contributor

@kenhys kenhys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@ashie
Copy link
Member

ashie commented Aug 26, 2021

ruby-kafka 1.4.0 has been released: https://rubygems.org/gems/ruby-kafka/versions/1.4.0

This PR depends on zendesk/ruby-kafka#905.

Although it's not described in CHANGELOG.md, it seems that it ships this feature too.

Copy link
Member

@ashie ashie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ssl_ca_cert option of this plugin accepts an array of paths but ruby-kafka 1.3.0 or before doesn't. So we should update the gemspec to require ruby-kafka 1.4.0 or later.

Array support of ssl_ca_cert_file_path is needed:

zendesk/ruby-kafka#905
fluent#410

Signed-off-by: Takuro Ashie <ashie@clear-code.com>
@ashie
Copy link
Member

ashie commented Aug 26, 2021

ssl_ca_cert option of this plugin accepts an array of paths but ruby-kafka 1.3.0 or before doesn't. So we should update the gemspec to require ruby-kafka 1.4.0 or later.

I've added the commit to this pull request.

@ashie ashie merged commit a9fd985 into fluent:master Aug 26, 2021
@ashie
Copy link
Member

ashie commented Aug 26, 2021

Merged. Thanks for your contribution!

@syedriko syedriko deleted the ssl_ca_cert_file_path_array branch October 19, 2022 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants