-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Update to OpenSAML 4 #77012
Update to OpenSAML 4 #77012
Conversation
This commit switches the security and identity-provider plugins to use v4 of the OpenSAML library (upgraded from v3). In order to facilitate this upgrade the following changes are also made: - Common Codec is upgraded to 1.15 across all modules - Guava is upgraded to v30 in the 2 affected modules - BouncyCastle has added of the 2 affected modules (OpenSAML4 has a direct dependency on BouncyCastle that we haven't found a way to avoid yet) - SecureSM has been changed to support the Cleaner class in Java9, and the InnocuousThread more generally
Pinging @elastic/es-security (Team:Security) |
Reconfirming what we already know, adding the standard BC Jars to the classpath means that we cannot run in FIPS mode.
|
And if I remove
|
I can use a javaagent to load BCFIPS & BCJSSE on an isolated classloader and register them as security providers. That avoids the JarHell problems (both the triggering of the check and the real problem of having 2 different versions of a class within a single classloading hierarchy). However, that still means that we would ship with a non-FIPS-certified version of BC, we just wouldn't install it as a Which is to say, I think we can make it work technically, but there could still be a FIPS policy problem. |
This resolves FIPS issues by removing the direct dependency on BouncyCastle's bcprov jar, see http://shibboleth.net/pipermail/users/2021-May/049989.html
@elasticmachine update branch |
@elasticmachine update branch |
@elasticmachine run elasticsearch-ci/part-2-fips please |
CI job failed due to #78160 |
@elasticmachine update branch |
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.
Worked through all the Java changes, LGTM
@elasticmachine run elasticsearch-ci/part-2 please |
This reverts some changes from e73d16dc20cf50a5215ee8ff8cccfcbd2f0c1a7es that were incorrectly included within elastic#77012.
This commit switches the security and identity-provider plugins to use
v4.0 of the OpenSAML library (upgraded from v3.4).
In order to facilitate this upgrade the following changes are also
made:
Relates: #71983