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

Disable FAST negotiation Kerberos #111

Closed
bad3bs opened this issue Aug 26, 2021 · 11 comments
Closed

Disable FAST negotiation Kerberos #111

bad3bs opened this issue Aug 26, 2021 · 11 comments

Comments

@bad3bs
Copy link

bad3bs commented Aug 26, 2021

KRBMessage_Handling_Error: KDC did not respond appropriately to FAST negotiation

@twmb
Copy link

twmb commented Aug 26, 2021

This might be a bug with the franz-go client's kerberos implementation.

Do you want to just generally disable FAST negotiation entirely, or would you like to get it working? I may need your help debugging this in the franz-go client.

@bad3bs
Copy link
Author

bad3bs commented Aug 26, 2021

It would be great to add an option to turn on/off

@weeco weeco closed this as completed in 30f84f5 Sep 1, 2021
@weeco
Copy link
Contributor

weeco commented Sep 1, 2021

@bad3bs I just committed a fix that allows you to configure FAST. It is enabled by default. See the new reference config: https://github.com/cloudhut/kminion/blob/30f84f50ebba412cf4194444f8e82f907a801d0d/docs/reference-config.yaml#L54

Would be nice to hear from you whether this fixes your issue.

@bad3bs
Copy link
Author

bad3bs commented Sep 3, 2021

Yes this problem fixed, but no way to set SASL_PLAINTEXT

@twmb
Copy link

twmb commented Sep 3, 2021

What do you mean set SASL_PLAINTEXT? That's independent from kerberos? SASL_PLAINTEXT basically means speaking over a normal tcp connection (no tls), and using SASL. That's currently the example in the reference config, actually.

@bad3bs
Copy link
Author

bad3bs commented Sep 3, 2021

In Kfaka server config:
properties.setProperty("security.protocol", "SASL_PLAINTEXT");

and encryption rc4-hmac

Receive:
{"level":"error","ts":"2021-09-03T04:06:35.259Z","logger":"main.kgo_client","msg":"unable to initialize sasl","broker":"seed 0","err":"wrong Token ID. Expected 0504, was 6030"}
{"level":"error","ts":"2021-09-03T04:06:35.373Z","logger":"main.kgo_client","msg":"unable to initialize sasl","broker":"seed 0","err":"wrong Token ID. Expected 0504, was 6030"}

@twmb
Copy link

twmb commented Sep 3, 2021

This might be a bug in the franz-go client, and if so I'll definitely need your help to look into it. If you're up to it let me know. There's been only two users of kerberos in two years of the client, you're the second.

@twmb
Copy link

twmb commented Sep 3, 2021

Looks like there is a similar discusson on the Sarama repo:
IBM/sarama#1400
IBM/sarama#1366 (comment)

The encryption type rc4-hmac is apparently not supported. Can you follow the linked comment in issue 1366?

@bad3bs
Copy link
Author

bad3bs commented Sep 3, 2021

Oh yes, I wanted to write the same links. :)

@twmb
Copy link

twmb commented Sep 3, 2021

If you're able to modify things, please let me know if kerberos works -- it'd be great to know if it actually does 😅

@bad3bs
Copy link
Author

bad3bs commented Sep 4, 2021

I suppose everything will work fine without rc4-hmac, but unfortunately I can't change the kafka settings. :)

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

No branches or pull requests

3 participants