-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
TLS connection from fluent-bit to Fluentd 0.14.21 not working #1711
Comments
From nahi's comment, the patch itself is good but need more update: fluent/fluent-bit#350 (comment)
|
@mpeltonen Could you send a patch to master? |
OK, I will do a PR later today or tomorrow. |
In case one needs to generate certificate manually (with |
TLS connection from fluent-bit when using fluentd-generated server certificate does not work. It seems that the problem is in fluentd certificate generation. See discussion and suggested patch in fluent/fluent-bit#350.
Steps to reproduce:
Create certificate:
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
... accept defaults, set passphrase to
fluentd
...Create fluentd.conf:
Run fluentd:
docker run -p 24224:24224 -v "$(pwd)":/fluentd/etc -e FLUENTD_CONF="fluentd.conf" fluent/fluentd:v0.14.21
Run fluent-bit:
docker run --network=host -v "$(pwd)":/certs fluent/fluent-bit:0.12.5 /fluent-bit/bin/fluent-bit -i random -o forward://127.0.0.1:24224 -p tls=on -p tls.verify=off -p tls.ca_file=/certs/cert.pem -p shared_key=fluentd -f 1
Applying the patch in fluent/fluent-bit#350 seems to make this work.
The text was updated successfully, but these errors were encountered: