Migrate from BC to BCFIPS libraries#1087
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1087 +/- ##
=========================================
Coverage 76.30% 76.30%
Complexity 1076 1076
=========================================
Files 101 101
Lines 5276 5276
Branches 504 504
=========================================
Hits 4026 4026
Misses 1001 1001
Partials 249 249 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hey @cwperks we previously had 1.8.0 which caused jar hell. We downgraded to the version catalog to avoid that. (See #1072) But I expect our dependency manager will suggest an upgrade again. Can you be more clear on the reason for this downgrade if it is not for consistency with other dependencies? Can we not make this 1.8.0 again by reverting #1078? |
|
@dbwiddis I can try to update the version, but the purpose of this PR is to put the version inline instead of referencing the version catalog because @beanuwave has been working on a large effort around FIPS-140-3 compliance for OpenSearch which includes swapping BC non-FIPS jars with FIPS jars so non-FIPS references were removed from the core. Currently the jar swap is only for the core and has not been performed in the plugins. Plugins that referenced the version of bouncycastle from core's version catalog now need to put the version inline. |
|
@dbwiddis I think the update will work, but core also changed the qualifier to beta1 and we now need to wait for all of FF's dependent plugins to update accordingly. Switching back to 1.78 in the interim |
Confirmed it would work. When checking out core you need to specify the qualifier when building. i.e. |
|
The bigger question is why we are not aligning on a common version. I’d like to prevent future churn. |
|
One option could be to do the swap in this repo from non-FIPS -> FIPS deps for BC dependencies. CC @beanuwave |
Sure, happy to look into this. Still trying to understand what happened here.
|
It used to collide with the dependencies in opensearch-test-framework here. With this PR those deps changed to BCFIPS. |
|
@cwperks Thanks for updating the PR! We'll merge this and switch to beta1 once all our upstream repos do... One curious question remains:
Yeah, but we had bumped to 1.8.0 on Jan 15, and from 1.78 to 1.79 back on Nov 1 last year. But the Jar hell only started relatively recently. Maybe it was whatever security fix we needed that caused the 2.19.1 release since it happened around that time... |
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
Description
bouncycastlewas removed from the gradle version catalog in https://github.com/opensearch-project/OpenSearch/pull/17507/files#diff-697f70cdd88ba88fe77eebda60c7e143f6ad1286bca75017421e93ad84fb87df.This PR migrates from BC to BCFIPS libraries for this repo
Check List
--signoff.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.