We are tryin to test the kerberos authentication between telegraf and one of the kafka broker server.
We are using below version of telegraf:
Telegraf 1.22.4 (git: HEAD acf67065)
below is confluent kafka version:
2.5.0.7.1.7.113-1 (Commit:0fdee98df1627278)
This version of telegraf supports kerberos authentication, but the documentation related to configuration required to be done to get it working is not good enough.
The configurations provided in telegraf.conf to enable kerberos authentication is not working and every time it is resulting in different error.
We have used sasl_mechanism = “GSSAPI”.
In the existing set up, Kafka authentication using Keytab is successful on one side whereas Telegraf - Kerberos authentication using GSSAPI is failing on the other side of integration. We have closely looked at the config file and found that currently, Telegraf - Kerberos authentication using GSSAPI call is experimental.(Testing phase)
For now, these are at least 4 options available for consideration: OAUTHBEARER, PLAIN, SCRAM-SHA-256 and SCRAM-SHA-512 that are more mature enough to use. However, some of these authentication mechanism is less secure.
We have investigated more from networking side to see what is causing the handshaking(GSSAPI call) to stop communicating from Telegraf end.
This seems no longer a Telegraf issue. This is a gokrb5 issue, which is coming from Confluent’s stack.
Please provide your input and if possible, create a separate PR for gokorb5 to address this specific problem. We would be expecting to get this feature included in next major Telegraf release. Thank you!