Check for -Dorg.bouncycastle.fips.approved_only in testclusters to run with FIPS enforcement#20685
Check for -Dorg.bouncycastle.fips.approved_only in testclusters to run with FIPS enforcement#20685cwperks wants to merge 4 commits intoopensearch-project:mainfrom
Conversation
…to enforce running with FIPS enforcement Signed-off-by: Craig Perkins <cwperx@amazon.com>
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughModified the FIPS mode validation in OpenSearchNode.start() to require both FIPS mode enabled and the system property Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
❗ AI-powered Code-Diff-Analyzer found issues on commit c09fabc.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
|
@reta when you have a moment, this is a quick fix to fix an issue encountered with testclusters. |
buildSrc/src/main/java/org/opensearch/gradle/testclusters/OpenSearchNode.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Craig Perkins <cwperx@amazon.com>
|
❌ Gradle check result for 62fd04d: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
buildSrc/src/main/java/org/opensearch/gradle/info/FipsBuildParams.java
Outdated
Show resolved
Hide resolved
…ams.java Co-authored-by: Andriy Redko <andriy.redko@aiven.io> Signed-off-by: Craig Perkins <craig5008@gmail.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
|
❌ Gradle check result for e8525f8: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #20685 +/- ##
============================================
- Coverage 73.32% 73.27% -0.06%
+ Complexity 72064 71972 -92
============================================
Files 5781 5781
Lines 329395 329403 +8
Branches 47525 47527 +2
============================================
- Hits 241536 241370 -166
- Misses 68507 68659 +152
- Partials 19352 19374 +22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Currently, testclusters will always assume that it should run with FIPS enforcement if
-Pcrypto.standard=FIPS-140-3is supplied. The problem is, this is a build param needed for assembly, but at runtime the JVM expects the system proporg.bouncycastle.fips.approved_onlyto enforce that a cluster is running in FIPS mode.Without this change, testclusters fail with
and the workaround is to add
keystorePassword 'notarealpasswordphrase'to the testclusters declaration.Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.