-
Notifications
You must be signed in to change notification settings - Fork 4
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
Not able to enable FIPS for Liberty with Semeru Java 11 or 17 deployed with WLO #542
Comments
The keystore and trustore would have to be created externally and imported into the Liberty container. Once we have a clear understanding of the process, we could potentially look into generating them as part of the Liberty container image if possible. @idlewis The issue I mentioned in the scrum is WASdev/ci.docker#493. A stack product managed to import their custom keystore/truststore (although it required a workaround for the default keystore, which should no longer be required once the changes for OpenLiberty/ci.docker#427 is merged). |
Assuming that you already have TLS certificate/private key files, you can create a key.p12 file in the container build with a command similar to: You would also need to add keystore config to the liberty server.xml as part of the docker build. When deploying the application using the operator, I think you would also need to set .spec.manageTLS=false in the CR. |
@mtamboli please refer to the information above. We hope that it unblocks you and allows you to proceed with testing Liberty in containers with Semeru + FIPS. At this time we neither provide (nor claim to do) any FIPS support within Liberty container images and/or Operator. We plan to investigate what can be done at the Liberty container and Operator layers for a better user experience. Please share your feedback once your testing is completed. Thank you. |
@mtamboli Did you/your team have a chance to try the above? Please share feedback. We would like to plan for native FIPS support within Liberty container and/or Operator and are interested on SVT feedback. |
@leochr I will look at this again and get back to you soon. |
@idlewis @leochr are you suggesting that I create tls.crt and tls.key files locally and copy them to my container with other config files and build the key.p12 as part of the building container image? would that be acceptable from security perspective? |
Can you please provide me high level (valid scenario you expect to work) steps which you expect to work and I will be happy to try it out? |
@mtamboli Yes, that is what I was suggesting. It is not ideal from a security perspective, as the container image would contain the keystore, but until the operator has direct support for enabling FIPS, I'm not sure there is a better option. |
@mtamboli I've created a new git repo with some sample files that should build a liberty docker container that will run with FIPS support here: To run this container with the Liberty operator in OCP, I think all you would need to do is:
Hope that helps. |
Enabling FIPS for Liberty requires to use NSS tool to import keys and certificates from a PKCS#12 keystore file into the NSS database. User does not control the default keystore for Liberty container deployed with WLO. So it is not possible to enable FIPS for the Liberty application when using Semeru Java 11 or 17.
I followed docs to configure FIPS for Liberty.
I updated Containerfile
To install NSS and tools RUN dnf -y install nss && dnf -y install nss-tools
Update jvm.options
The text was updated successfully, but these errors were encountered: