-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[fips] do not expliclity set the default distro #91101
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
27426a4
[fips] do not expliclity set the default distro
jakelandis 19ee878
spotless
jakelandis 27f0578
temp -> align fips flag for testing
jakelandis 95cfcd0
spotless
jakelandis 91f7217
more fips flag shenanigans
jakelandis dbf20b2
Merge branch 'main' into fips_no_default_distro
jakelandis 1b10b9b
Merge branch 'main' into fips_no_default_distro
jakelandis 5433a44
Merge branch 'main' into fips_no_default_distro
jakelandis 1cc2735
remove default tests.fips.enabled=true
jakelandis 1d0b650
remove default tests.fips.enabled=true
jakelandis ecee769
Merge branch 'main' into fips_no_default_distro
jakelandis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This has the effect that allows you to enable security via the integ_test distribution (in x-pack or core). I think that is a good thing especially if we want to start using the integ_test distro for all module/plugin REST tests.
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.
It seems that security is disabled by default for
INTEG_TESTdistribution.elasticsearch/build-tools/src/main/java/org/elasticsearch/gradle/testclusters/ElasticsearchCluster.java
Lines 355 to 356 in 0ac81ce
I think that means most FIPS related stuff will not be excercised in tests with
INTEG_TESTdistribution even thefips.gradlefile configures a bunch of settings, e.g.xpack.security.fips_mode.enabled. Theoretically, this is probably a reduced coverage for FIPS since we are currently forcingDEFAULTdistribution for FIPS tests?That said, there are still tons of tests that use the
DEFAULTdistribution so that coverage is not really an issue. And we can later look into whether it is necessary and how to enable security for INTEG_TEST.Uh oh!
There was an error while loading. Please reload this page.
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.
I don't think this will reduce coverage since security is also disabled for FIPS tests with the DEFAULT distribution. Individual tests can enable security. Before this change they could only enable security if they used the default distribution, but with this change they can override for any REST test.
elasticsearch/build-tools-internal/src/main/groovy/elasticsearch.fips.gradle
Line 73 in 0ac81ce
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.
I missed that. Thanks!