Skip to content

Enable tests in FIPS 140 in JDK 11 (#49485)#51660

Merged
jkakavas merged 1 commit intoelastic:7.6from
jkakavas:enable-fips-testing-7.6
Jan 30, 2020
Merged

Enable tests in FIPS 140 in JDK 11 (#49485)#51660
jkakavas merged 1 commit intoelastic:7.6from
jkakavas:enable-fips-testing-7.6

Conversation

@jkakavas
Copy link
Copy Markdown
Contributor

This change changes the way to run our test suites in
JVMs configured in FIPS 140 approved mode. It does so by:

  • Configuring any given runtime Java in FIPS mode with the bundled
    policy and security properties files, setting the system
    properties java.security.properties and java.security.policy
    with the == operator that overrides the default JVM properties
    and policy.

  • When runtime java is 11 and higher, using BouncyCastle FIPS
    Cryptographic provider and BCJSSE in FIPS mode. These are
    used as testRuntime dependencies for unit
    tests and internal clusters, and copied (relevant jars)
    explicitly to the lib directory for testclusters used in REST tests

  • When runtime java is 8, using BouncyCastle FIPS
    Cryptographic provider and SunJSSE in FIPS mode.

Running the tests in FIPS 140 approved mode doesn't require an
additional configuration either in CI workers or locally and is
controlled by specifying -Dtests.fips.enabled=true

Backport of #49485

This change changes the way to run our test suites in 
JVMs configured in FIPS 140 approved mode. It does so by:

- Configuring any given runtime Java in FIPS mode with the bundled
policy and security properties files, setting the system
properties java.security.properties and java.security.policy
with the == operator that overrides the default JVM properties
and policy.

- When runtime java is 11 and higher, using BouncyCastle FIPS 
Cryptographic provider and BCJSSE in FIPS mode. These are 
used as testRuntime dependencies for unit
tests and internal clusters, and copied (relevant jars)
explicitly to the lib directory for testclusters used in REST tests

- When runtime java is 8, using BouncyCastle FIPS 
Cryptographic provider and SunJSSE in FIPS mode. 

Running the tests in FIPS 140 approved mode doesn't require an
additional configuration either in CI workers or locally and is
controlled by specifying -Dtests.fips.enabled=true
@jkakavas jkakavas added :Delivery/Build Build or test infrastructure :Security/Security Security issues without another label backport labels Jan 30, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-security (:Security/Security)

@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Build)

@jkakavas
Copy link
Copy Markdown
Contributor Author

@elasticmachine test this please

@jkakavas jkakavas merged commit d12672e into elastic:7.6 Jan 30, 2020
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Delivery/Build Build or test infrastructure :Security/Security Security issues without another label Team:Delivery Meta label for Delivery team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants