-
Notifications
You must be signed in to change notification settings - Fork 201
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
MySQL client does not use providers by default available in FIPS-enabled environment #1436
Comments
Thanks for reporting this @michalvavrik , I'll take a look asap |
@michalvavrik I've checked what the MySQL Connector for Java does for caching sha-2 authentication and it seems to use the same cipher. Have you bean able to create a working setup with Quarkus + MySQL JDBC driver with fips mode enabled? In this case, can you help me do the same or get access to such an environment? I'd like to debug what the driver does in this case. Thanks |
MySQL JDBC driver is now working in FIPS-enabled environment with the https://github.com/mysql/mysql-connector-j/blob/release/8.x/src/main/protocol-impl/java/com/mysql/cj/protocol/a/authentication/CachingSha2PasswordPlugin.java#L156 RSA/ECB/PKCS1Padding, I can certainly give you temp access to such an environment. I'll send you DM. |
@michalvavrik any news about this? |
Yeah, right? I am terribly sorry to forgetting about you. ATM I have urgent work stuff, but I'll find time by the end of this week and prepare you env. I'll send you email before the end of the week. |
No worries, this is not high priority from a community standpoint, so it can wait until next week. In fact, I won't be able to work on this immediately. Just wanted to give you heads-up so that we both plan some time. |
Questions
I am having trouble to use MySQL client in FIPS-enabled environment as
RSA/ECB/OAEPWithSHA-1AndMGF1Padding
set in the https://github.com/eclipse-vertx/vertx-sql-client/blob/master/vertx-mysql-client/src/main/java/io/vertx/mysqlclient/impl/util/RsaPublicKeyEncryptor.java#L59 is in OpenJDK provided bySunJCE
provider in non-FIPS mode. But the provier is not present by default in FIPS-enabled env.Version
Vert.X 4.5.7.
Context
I'd expect that if the cipher has to be hardcoded, the default cipher is such that I can actually use in FIPS-enabled environment. with the RH OpenJDK without doing any extra work and have it working. For example
RSA/ECB/PKCS1Padding
could be used.Do you have a reproducer?
Yes. Run it in FIPS-enabled environment.
Steps to reproduce
git clone git@github.com:michalvavrik/quarkus-test-suite.git
cd quarkus-test-suite/security/webauthn
git checkout feature/fix-webauth-fips
mvn clean verify -Dreruns=0
(if you don't have Quarkus 999-SNAPSHOT I guess you can also use-Dquarkus.platform.version=3.9.4
or some other version)Extra
registry.access.redhat.com/rhscl/mysql-80-rhel7
The text was updated successfully, but these errors were encountered: