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

Kerberos Authentication for Kafka #5413

Closed
AndreAga opened this issue Oct 20, 2017 · 54 comments
Closed

Kerberos Authentication for Kafka #5413

AndreAga opened this issue Oct 20, 2017 · 54 comments

Comments

@AndreAga
Copy link

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.

@AndreAga AndreAga changed the title Request: Kerberos Auth on Kafka Auth Request: Kerberos Auth for Kafka Oct 20, 2017
@mellowonpsx
Copy link

I agree with @AndreAga, also Logstash's Kafka output plugin supports Kerberos SASL.
Kerberos Auth is a must-have feature for Bests Library.

@gmoskovicz
Copy link

@urso any news regarding this?

@urso
Copy link

urso commented Jan 8, 2018

@gmoskovicz Sorry, no updates on this ticket.

@miko-code
Copy link

+1

4 similar comments
@mmirabedini
Copy link

+1

@giezer
Copy link

giezer commented Apr 28, 2018

+1

@ioah86
Copy link

ioah86 commented Jul 19, 2018

+1

@dounine
Copy link

dounine commented Aug 28, 2018

+1

@mayank-mahajan-guavus
Copy link

@jsoriano Is there a plan to add Kerberos Support in beats?

@nathanrstacey nathanrstacey pinned this issue Jul 26, 2019
@nathanrstacey
Copy link

+1

@cwurm cwurm unpinned this issue Jul 29, 2019
@smaley07
Copy link

+1

2 similar comments
@vickhello
Copy link

+1

@Lswx2017
Copy link

Lswx2017 commented Jan 6, 2020

+1

@Yggdrassil80
Copy link

+1

@mostlyjason
Copy link

One of our customers offered this response on why Kerberos is better than SSL:

In the case of the Confluent article [showing SSL auth], they are using a very loose term for authentication, in saying that it is performing mutual authentication of the certificates and only validates that the certificate is trusted by way of the CA certificates. In other words, this is machine authentication, and it provides no context to the user on that machine. In our security context, SSL authentication is not sufficient.

@kvch kvch assigned kvch and unassigned faec Feb 25, 2020
@kvch kvch added Team:Services (Deprecated) Label for the former Integrations-Services team and removed Team:Beats labels Feb 25, 2020
@moulisea
Copy link

moulisea commented Aug 20, 2020 via email

@kvch
Copy link
Contributor

kvch commented Aug 24, 2020

Do you mind opening a Discuss question for these problems? This issue is about tracking Kerberos authentication for Kafka, not arbitrary Kafka issues.

@moulisea
Copy link

moulisea commented Aug 24, 2020 via email

@kvch
Copy link
Contributor

kvch commented Aug 24, 2020

I meant opening a question here: https://discuss.elastic.co/c/elastic-stack/beats/28
I will find someone to help you there. Thanks in advance.

@moulisea
Copy link

moulisea commented Aug 24, 2020 via email

@Ghaithjemai
Copy link

same problem... did you find the solution?

@atalukdar
Copy link

I am having same issue with filebeat-7.11.1

Any solution on sasl_ssl?

Connection to kafka(xxxxx:9093) established
[kafka] kafka/client.go:371 finished kafka batch
[kafka] kafka/client.go:385 Kafka publish failed with: kafka: client has run out of available brokers to talk to (Is your cluster reachable?)

@elafontaine
Copy link

Same problem. Searching for a link to a solution.

@urso
Copy link

urso commented May 19, 2021

Can you reproduce the issue with 7.12?

@elafontaine
Copy link

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.

@elafontaine
Copy link

Ok, I confirm that with 7.12, we're able to make it work with password type of authentification with kerberos (and clear text password in the configuration). However, as soon as we switch this to auth_type: keytab and pass the keytab option, it stops working. I have confirmed the keytab authentification with kinit and with the same service that filebeat should be trying to use as per the config.

We just tested with 7.13, the same; clear text password works, but keytab doesn't.

@theforcebemay
Copy link

@elafontaine
Could you share your filebeat.yml?

@kvch kvch removed their assignment Oct 7, 2021
@JunTaoYuan80
Copy link

Same problem with 7.15. Searching for a link to a solution.

2021-10-09T17:10:45.739+0800	INFO	[file_watcher]	filestream/fswatch.go:137	Start next scan
2021-10-09T17:10:50.838+0800	ERROR	[kafka]	kafka/client.go:317	Kafka (topic=common_log_topic): kafka: client has run out of available brokers to talk to (Is your cluster reachable?)```

@jaychouuu
Copy link

@JunTaoYuan80 jun Have you solved it now? I have the same problem

@JunTaoYuan80
Copy link

@JunTaoYuan80 jun Have you solved it now? I have the same problem

no, but i change filebeat to logstash, it's ok.

@jlind23 jlind23 added Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team and removed Team:Services (Deprecated) Label for the former Integrations-Services team labels Mar 30, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@jlind23
Copy link
Collaborator

jlind23 commented Mar 31, 2022

@rdner @faec does this issue rings a bell on your end?

@rdner
Copy link
Member

rdner commented Mar 31, 2022

Our latest documentation claims Kerberos is supported:

To use GSSAPI mechanism to authenticate with Kerberos, you must leave this field empty, and use the kerberos options.

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

@jlind23
Copy link
Collaborator

jlind23 commented Mar 31, 2022

Closing this as this is supported and keeping #29430 open in order to add safety guards.

@fbaligand
Copy link

Hi,

If this issue is “done”, could you precise what will be beats release that includes this feature?

@jlind23
Copy link
Collaborator

jlind23 commented Apr 1, 2022

@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

@fbaligand
Copy link

Thanks for the information.

@zube zube bot removed the [zube]: Done label Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests