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

Enable testing in FIPS140 JVM (#31666) #32231

Merged
merged 2 commits into from
Jul 20, 2018
Merged

Commits on Jul 20, 2018

  1. Enable testing in FIPS140 JVM (elastic#31666)

    Ensure our tests can run in a FIPS JVM
    
    JKS keystores cannot be used in a FIPS JVM as attempting to use one
    in order to init a KeyManagerFactory or a TrustManagerFactory is not
    allowed.( JKS keystore algorithms for private key encryption are not
    FIPS 140 approved)
    This commit replaces JKS keystores in our tests with the
    corresponding PEM encoded key and certificates both for key and trust
    configurations.
    Whenever it's not possible to refactor the test, i.e. when we are
    testing that we can load a JKS keystore, etc. we attempt to
    mute the test when we are running in FIPS 140 JVM. Testing for the
    JVM is naive and is based on the name of the security provider as
    we would control the testing infrastrtucture and so this would be
    reliable enough.
    Other cases of tests being muted are the ones that involve custom
    TrustStoreManagers or KeyStoreManagers, null TLS Ciphers and the
    SAMLAuthneticator class as we cannot sign XML documents in the
    way we were doing. SAMLAuthenticator tests in a FIPS JVM can be
    reenabled with precomputed and signed SAML messages at a later stage.
    
    IT will be covered in a subsequent PR
    jkakavas committed Jul 20, 2018
    Configuration menu
    Copy the full SHA
    03f6211 View commit details
    Browse the repository at this point in the history
  2. Fix merge issues

    jkakavas committed Jul 20, 2018
    Configuration menu
    Copy the full SHA
    6ba47c0 View commit details
    Browse the repository at this point in the history