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

CryptoUtil.nounce(nounceLength,secureRandom) is too slow in Openshift 4 #567

Open
FrostbittenKing opened this issue Dec 1, 2021 · 0 comments

Comments

@FrostbittenKing
Copy link

FrostbittenKing commented Dec 1, 2021

Hi, we discovered a problem with this driver when running applications in Openshift 4.
In openshift 4 /dev/random takes too long to generate the 24 random bytes with the CryptoUtil.nounce(nounceLength,secureRandom) call in the ScramSessionFactory.
It would be really great, if you could update the driver with a parameter, to expose the secureRandomAlgorithmProvider method in the Builder in ScramSessionFactory.
Interestingly enough, this method exists, but is never used.
For now we patched the AuthenticationHandler class and added this builder method in #authenticateSASL, but it would be really great, if we could drop that patch with a future version.

In Openshift 3 this wasn't an issue, because in the images we used, /dev/urandom was redirected to /dev/random via some service.
So this worked by coincidence in the past.

Thanks for a timely response.

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

1 participant