-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Kerberos Authentication for Kafka #5413
Comments
I agree with @AndreAga, also Logstash's Kafka output plugin supports Kerberos SASL. |
@urso any news regarding this? |
@gmoskovicz Sorry, no updates on this ticket. |
+1 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
@jsoriano Is there a plan to add Kerberos Support in beats? |
+1 |
+1 |
2 similar comments
+1 |
+1 |
+1 |
One of our customers offered this response on why Kerberos is better than SSL:
|
1. when I give output.kafka.version: "2.5.0", I get below error:
ERROR instance/beat.go:958 Exiting: error initializing publisher:
unknown/unsupported kafka vesion '2.5.0' accessing 'output.kafka.version'
(source:'filebeat.yml')
Exiting: error initializing publisher: unknown/unsupported kafka vesion
'2.5.0' accessing 'output.kafka.version' (source:'filebeat.yml')
2. Also I see below Alert in Filebeat.
Known issue in version 7.8.0
The Kafka output fails to connect when using multiple TLS brokers. We
advise not to upgrade to Filebeat 7.8.0 if you’re using the Kafka output in
this configuration.
Do you recommend to use 7.8.0 in Prod with multiple broker( we have 3
broker). I started using 7.8 mainly to support SASL_SSL with GSSAPI
mechanism.
Thanks,
Mouli
On Wed, Aug 19, 2020 at 11:05 PM chandramouli srinivasan <
[email protected]> wrote:
… I tried logging: debug in YML file but not helpful to find what is the
issue. If you are aware of any debugging mechanism, let me know. Thanks.
Thanks,
Mouli
On Wed, Aug 19, 2020 at 12:23 PM chandramouli srinivasan <
***@***.***> wrote:
>
> I did that and I see below two errors. In the initial logs, it says it
> established kafka connection. But later I see below errors.
>
> DEBUG [harvester] log/log.go:107 End of file reached:
> E:\Logs\file.log; Backoff now.
> DEBUG [kafka] kafka/client.go:277 finished kafka batch
> DEBUG [kafka] kafka/client.go:291 Kafka publish failed with:
> kafka: client has run out of available brokers to talk to (Is your cluster
> reachable?)
>
> Kafka publish failed with: circuit breaker is open
>
>
> Thanks,
> Mouli
>
> On Wed, Aug 19, 2020 at 10:31 AM Noémi Ványi ***@***.***>
> wrote:
>
>> @moulisea <https://github.com/moulisea> ATM kerberos.username is
>> commented out. You need to remove # from the beginning of the line.
>>
>> —
>> You are receiving this because you were mentioned.
>> Reply to this email directly, view it on GitHub
>> <#5413 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AD2UZLQIPOWRM7G24RWJDHDSBPV5TANCNFSM4EAA7QHQ>
>> .
>>
>
|
Do you mind opening a Discuss question for these problems? This issue is about tracking Kerberos authentication for Kafka, not arbitrary Kafka issues. |
Thanks for response. I am not clear how to open a Discuss question for
these problems. can you provide some link, so I can start discussion on
this.
Yes, the issue is not able to connect to Kafka kerberos from Filebeat. so I
am exploring logstash now. But if we could make this work in Filebeat, that
would be really great.
Appreciate your help. Thanks.
Thanks,
Mouli
…Sent from my iPhone
On Aug 24, 2020, at 12:01 PM, Noémi Ványi <[email protected]> wrote:
Do you mind opening a Discuss question for these problems? This issue is
about tracking Kerberos authentication for Kafka, not arbitrary Kafka
issues.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5413 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD2UZLVPXZSWN2KHOQOSMLDSCKMINANCNFSM4EAA7QHQ>
.
|
I meant opening a question here: https://discuss.elastic.co/c/elastic-stack/beats/28 |
Thanks. I have created one. link below.
https://discuss.elastic.co/t/filebeat-connect-with-kafka-kerberos-sasl-ssl-not-working/246160
Thanks,
Mouli
On Wed, Aug 19, 2020 at 12:23 PM chandramouli srinivasan <
[email protected]> wrote:
…
I did that and I see below two errors. In the initial logs, it says it
established kafka connection. But later I see below errors.
DEBUG [harvester] log/log.go:107 End of file reached:
E:\Logs\file.log; Backoff now.
DEBUG [kafka] kafka/client.go:277 finished kafka batch
DEBUG [kafka] kafka/client.go:291 Kafka publish failed with:
kafka: client has run out of available brokers to talk to (Is your cluster
reachable?)
Kafka publish failed with: circuit breaker is open
Thanks,
Mouli
On Wed, Aug 19, 2020 at 10:31 AM Noémi Ványi ***@***.***>
wrote:
> @moulisea <https://github.com/moulisea> ATM kerberos.username is
> commented out. You need to remove # from the beginning of the line.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#5413 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AD2UZLQIPOWRM7G24RWJDHDSBPV5TANCNFSM4EAA7QHQ>
> .
>
|
same problem... did you find the solution? |
I am having same issue with filebeat-7.11.1 Any solution on sasl_ssl? Connection to kafka(xxxxx:9093) established |
Same problem. Searching for a link to a solution. |
Can you reproduce the issue with 7.12? |
We were on 7.10 from the standard rpm repository of Red Hat I believe. I'll ask to try on filebeat 7.12 I noticed that it's mostly a Kerberos issue, there is just no log about it. I noticed we're forced to put the service_name parameter, even though the authentification is successful without it (and with it, it actually fails... I'm trying to understand why on my side. |
Ok, I confirm that with 7.12, we're able to make it work with We just tested with 7.13, the same; clear text password works, but keytab doesn't. |
@elafontaine |
Same problem with 7.15. Searching for a link to a solution.
|
@JunTaoYuan80 jun Have you solved it now? I have the same problem |
no, but i change filebeat to logstash, it's ok. |
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
Our latest documentation claims Kerberos is supported:
https://www.elastic.co/guide/en/beats/filebeat/current/kafka-output.html#_sasl_mechanism However, we still don't have an integration test to track that it's working #29430 |
Closing this as this is supported and keeping #29430 open in order to add safety guards. |
Hi, If this issue is “done”, could you precise what will be beats release that includes this feature? |
@fbaligand as of 7.17 kerberos feature was available in beta mode as stated here: https://www.elastic.co/guide/en/beats/filebeat/7.17/kafka-output.html#_sasl_mechanism |
Thanks for the information. |
Hi guys,
I saw Beats Library doesn’t support Kerberos authentication for kafka output, but Logstash kafka input does. Any plan to add this kind of Auth?
Thanks.
The text was updated successfully, but these errors were encountered: