OpenSearch/libs
Ioannis Kakavas 239ada1669
Test adjustments for FIPS 140 (#56526)
This change aims to fix our setup in CI so that we can run 7.x in
FIPS 140 mode. The major issue that we have in 7.x and did not
have in master is that we can't use the diagnostic trust manager
in FIPS mode in Java 8 with SunJSSE in FIPS approved mode as it
explicitly disallows the wrapping of X509TrustManager.

Previous attempts like #56427 and #52211 focused on disabling the
setting in all of our tests when creating a Settings object or
on setting fips_mode.enabled accordingly (which implicitly disables
the diagnostic trust manager). The attempts weren't future proof
though as nothing would forbid someone to add new tests without
setting the necessary setting and forcing this would be very
inconvenient for any other case ( see
#56427 (comment) for the full argumentation).

This change introduces a runtime check in SSLService that overrides
the configuration value of xpack.security.ssl.diagnose.trust and
disables the diagnostic trust manager when we are running in Java 8
and the SunJSSE provider is set in FIPS mode.
2020-05-15 18:10:45 +03:00
..
cli Move publishing configuration to a separate plugin (#56727) 2020-05-14 20:23:07 -07:00
core Move publishing configuration to a separate plugin (#56727) 2020-05-14 20:23:07 -07:00
dissect Use task avoidance with forbidden apis (#55034) 2020-04-15 13:27:53 -07:00
geo Move publishing configuration to a separate plugin (#56727) 2020-05-14 20:23:07 -07:00
grok [7.x] Prevent stack overflow for numerous grok patterns. (#55899) (#56065) 2020-05-05 16:52:56 -05:00
nio Move publishing configuration to a separate plugin (#56727) 2020-05-14 20:23:07 -07:00
plugin-classloader Use task avoidance with forbidden apis (#55034) 2020-04-15 13:27:53 -07:00
secure-sm Move publishing configuration to a separate plugin (#56727) 2020-05-14 20:23:07 -07:00
ssl-config Test adjustments for FIPS 140 (#56526) 2020-05-15 18:10:45 +03:00
x-content Move publishing configuration to a separate plugin (#56727) 2020-05-14 20:23:07 -07:00
build.gradle Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00