-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
ZOOKEEPER-4889: Fallback to DIGEST-MD5 auth mech should be disabled in Fips mode #2213
Conversation
We should have a common base class for SASL auth tests. |
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.
Perfect !
Lgtm
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
shouldn't we mention this to the documentation somewhere?
(I don't think this would really be a backward compatibility issue, as I guess noone is considering digest MD5 in a FIPS environment - yet still this is a change in the current behaviour)
That's very good point. You submitted a bit fast, but let me create an addendum patch. |
@eolivelli @symat Please see the addendum here: #2214 |
It's not about consideration, FIPS doesn't allow using MD5 anywhere in the running code. If ever the code runs on that code patch, runtime exception will be thrown and JVM halts. This change is backward compatible. |
I've backported the patch to |
Disable DIGEST-MD5 mech in Fips mode. I had to modify lots of unit tests, because fips mode is enabled by default on the master branch and unit tests heavily rely on using DIGEST-MD5 for Sasl authentication.
Scary number of files, but mostly refactoring in the tests.