Update logic in FipsBuildParams.isInFipsApprovedOnlyMode to check for env param instead of org.bouncycastle.fips.approved_only - #21366
Conversation
… env param instead of org.bouncycastle.fips.approved_only Signed-off-by: Craig Perkins <cwperx@amazon.com>
|
@beanuwave @terryquigleysas here's another PR from our discussion last week. Let me know what you think. |
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit 3b50892.
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. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #21366 +/- ##
============================================
- Coverage 73.34% 73.34% -0.01%
+ Complexity 74223 74204 -19
============================================
Files 5958 5958
Lines 337309 337359 +50
Branches 48664 48687 +23
============================================
+ Hits 247408 247432 +24
+ Misses 70188 70169 -19
- Partials 19713 19758 +45 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
… env param instead of org.bouncycastle.fips.approved_only (opensearch-project#21366) Signed-off-by: Craig Perkins <cwperx@amazon.com>
… env param instead of org.bouncycastle.fips.approved_only (opensearch-project#21366) Signed-off-by: Craig Perkins <cwperx@amazon.com>
Description
Currently, FipsBuildParam looks for the system prop (
org.bouncycastle.fips.approved_only) to determine if FIPS is enforced at runtime. This system prop is specific to the bouncycastle library and implicitly set here in opensearch-env. This PR makes configuring FIPS more intentional by the cluster operator by looking for an OpenSearch env var instead of the bouncycastle system prop to determine if FIPS should be enforced at runtime.Related Issues
Related to #20738
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.