-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-27270][SS] Add Kafka dynamic JAAS authentication debug possibility #24204
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
Conversation
|
cc @HeartSaVioR |
|
Test build #103915 has finished for PR 24204 at commit
|
HeartSaVioR
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Is this different from setting the |
|
I'm seeing some value to enable the option to only Kafka side instead of global (since that option normally brings verbose messages), but no strong opinion. |
|
It provides different kind of debug log entries just like
My change turns on debug messages only on Kafka related authentications. Not really sure what flag do you mean. |
That's what I meant in my comment, vs turning on/off global configuration. |
I didn't ask about that option. I asked about The only advantage I see here is to only enable that option for the kafka login, but is that really an advantage that justifies adding a new config option that people won't necessarily know about, when everybody who has to debug kerberos one time or another has to deal with that system property? Did you try setting that system property and seeing whether it shows the things you want to see when debugging? |
|
I also agree with @vanzin 's point of views. For the security stuff, we need to see all logs in many cases. I believe the current documentation is enough. |
|
Maybe my explanation was not enough/clean. Let me give a little bit more details. Test with Test with As a final conclusion even if global krb debug flag is enabled These messages is just a sample and |
|
To make life easier and testable by others as well the app can be found here. |
I guess I'm not seeing what's so useful about those messages. All the other stuff that is printed when you set the system property seems way more useful. |
|
That said the module contains 22 debug messages not only the 2 shown up.
|
|
If there are still concerns maybe the debug flag can be turned on by |
|
If you really think those extra debug messages are super important, I'd reuse the known system property for that purpose. |
The exception is also thrown, so it would show up anyway. |
|
After dealing several weeks with multi-cluster delegation token and facing constant kerberos problems I have 2 conclusions:
Considering these if no objection I would turn debug on with the mentioned global flag. |
|
Test build #104322 has finished for PR 24204 at commit
|
|
retest this please |
|
Test build #104523 has finished for PR 24204 at commit
|
|
Merging to master. |
What changes were proposed in this pull request?
Krb5LoginModulesupports debug parameter which is not yet supported from Spark side. This configuration makes it easier to debug authentication issues against Kafka.In this PR
Krb5LoginModuledebug flag controlled by eithersun.security.krb5.debugorcom.ibm.security.krb5.Krb5Debug.Additionally found some hardcoded values like
ssl.truststore.location, etc... which could be error prone if Kafka changes it so in such cases Kafka define used.How was this patch tested?
Existing + additional unit tests + on cluster.