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

Change EmailSslTest for FIPS 140 JVMs #46278

Merged
merged 1 commit into from
Sep 10, 2019

Conversation

jkakavas
Copy link
Member

@jkakavas jkakavas commented Sep 3, 2019

This commit changes the SSLContext for the email server we use in
the tests so that it loads its key material from an in memory
keystore instead of a PKCS#12 one. This is done so that when we run
our tests in FIPS 140-2 JVMs, the keystore is of a type that the
Security Provider actually supports.

This also mutes testCanSendMessageToSmtpServerByDisablingVerification
as we can't run tests with verification set to none in FIPS 140
JVMs.

Resolves: #46067

This commit changes the SSLContext for the email server we use in
the tests so that it loads its key material from an in memory
keystore instead of a PKCS#12 one. This is done so that when we run
our tests in FIPS 140-2 JVMs, the keystore is of a type that the
Security Provider actually supports.

This also mutes testCanSendMessageToSmtpServerByDisablingVerification
as we can't run tests with verification set to `none` in FIPS 140
JVMs.
@jkakavas jkakavas added >test-failure Triaged test failures from CI :Security/Security Security issues without another label v8.0.0 v7.4.0 v7.5.0 labels Sep 3, 2019
@jkakavas jkakavas requested a review from tvernum September 3, 2019 14:27
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security

@jkakavas jkakavas requested a review from bizybot September 10, 2019 09:37
Copy link
Contributor

@bizybot bizybot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thank you.

@jkakavas jkakavas merged commit cb230e5 into elastic:master Sep 10, 2019
jkakavas added a commit that referenced this pull request Sep 10, 2019
This commit changes the SSLContext for the email server we use in
the tests so that it loads its key material from an in memory
keystore (that is in turn built from a pair of PEM encoded private key
and certificate) instead of a PKCS#12 one. This is done so that when 
we run our tests in FIPS 140-2 JVMs, the keystore is of a type that the
Security Provider actually supports.

This also mutes testCanSendMessageToSmtpServerByDisablingVerification
as we can't run tests with verification set to `none` in FIPS 140
JVMs.
jkakavas added a commit that referenced this pull request Sep 10, 2019
This commit changes the SSLContext for the email server we use in
the tests so that it loads its key material from an in memory
keystore (that is in turn built from a pair of PEM encoded private key
and certificate) instead of a PKCS#12 one. This is done so that when 
we run our tests in FIPS 140-2 JVMs, the keystore is of a type that the
Security Provider actually supports.

This also mutes testCanSendMessageToSmtpServerByDisablingVerification
as we can't run tests with verification set to `none` in FIPS 140
JVMs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Security/Security Security issues without another label >test-failure Triaged test failures from CI v7.4.0 v7.5.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EmailSslTests failures
4 participants