-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Support for FIPS compliance mode #14912
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
Closed
beanuwave
wants to merge
26
commits into
opensearch-project:main
from
sternadsoftware:fips_compliance2
Closed
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
92aa408
Draft to allow run in FIPS compliace mode
iigonin abdfe72
make tests run without BC (not BCFIPS) libraries.
iigonin dcffe2b
disable approved-only mode for launch configuration of testcluster
iigonin cffb257
update all BC libraries to support JAVA 21
iigonin 142068a
try to pass bwc staged build by adding expected version
iigonin 3eccd6e
ensure FIPS-mode can be enabled by fixing existent and creating addit…
iigonin a4e0e74
fixing additional tests.
iigonin 851f8b4
Configure FIPS mode through global ENV VAR instead of thread-based.
iigonin e2276e9
write some additional unit tests.
iigonin 25213cb
test SystemJvmOptions.java & replace FIPS-140-2 by FIPS-140-3
iigonin 9b7ea4f
categorize JKS keystore as untrusted
iigonin 2e95da5
general exclusion of keystore binaries and certificates from fobidden…
iigonin e3a830c
Kerberos, forbiddenApis, SecureRandom, SunJCE, AzureTests
iigonin bf49295
remove BC libs from 'libs:common'; revert SecureRandomHolder
iigonin 3dd921e
loosen some direct BC dependencies
iigonin 09a7fc1
set default testcluster password for all project modules
iigonin 55d6f6b
build with 'crypto.standard' gradle build parameter
iigonin 96524cf
run REST-tests with JKS & BCFKS keystores
iigonin 0a4a81a
merge with main
1da3c64
Merge branch 'main' into fips_compliance2
b79f303
Migrate from BC to BCFIPS libraries
aa11b27
reduce footprint of BC libraries
iigonin cad0454
Merge branch 'bc_to_bcfips_migration' into fips_compliance2
iigonin 8edda48
reduce footprint of BC libs
iigonin 458f2c0
Merge branch 'bc_to_bcfips_migration' into fips_compliance2
iigonin 9a88327
Merge branch 'main' into fips_compliance2
iigonin 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
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
35 changes: 35 additions & 0 deletions
35
buildSrc/src/main/java/org/opensearch/gradle/info/FipsBuildParams.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| /* | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| * | ||
| * The OpenSearch Contributors require contributions made to | ||
| * this file be licensed under the Apache-2.0 license or a | ||
| * compatible open source license. | ||
| */ | ||
|
|
||
| package org.opensearch.gradle.info; | ||
|
|
||
| import java.util.function.Function; | ||
|
|
||
| public class FipsBuildParams { | ||
|
|
||
| public static final String FIPS_BUILD_PARAM = "crypto.standard"; | ||
|
|
||
| public static final String FIPS_ENV_VAR = "OPENSEARCH_CRYPTO_STANDARD"; | ||
|
|
||
| private static String fipsMode; | ||
|
|
||
| public static void init(Function<String, Object> fipsValue) { | ||
| fipsMode = (String) fipsValue.apply(FIPS_BUILD_PARAM); | ||
| } | ||
|
|
||
| private FipsBuildParams() {} | ||
|
|
||
| public static boolean isInFipsMode() { | ||
| return "FIPS-140-3".equals(fipsMode); | ||
| } | ||
|
|
||
| public static String getFipsMode() { | ||
| return fipsMode; | ||
| } | ||
|
|
||
| } |
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
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
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.