Gabriel39 opened a new pull request, #71070: URL: https://github.com/apache/doris/pull/71070
Backport of #71066 to `branch-4.1`, with the release branch's Hive/Paimon packaging adaptation and the additional COS provider fix. ### What problem does this PR solve? Issue Number: None Related PR: #71066 PR Type: Release/Dependency Problem Summary: Bouncy Castle 1.84 and the embedded Hive/Paimon copies omit upstream security fixes. Align provider, PKIX and utility modules at 1.87, remove Hive's embedded 1.65 classes, and replace Paimon S3's isolated 1.78.1 provider. Preserve valid cryptographic operations and the upstream MIT license. Unlike master, this branch also distributes COS's relocated BC 1.70. Its SDK reflects the private provider name, and an unsigned replacement would fail JCE authentication. Filter that copy and redirect the SDK lookup to the official signed 1.87 provider. ### Release-branch adaptations - Keep Paimon 1.4.2, Hive bundle 3.1.3, COS SDK 5.6.269 and Hadoop COS 8.2.7 unchanged. Add shared wrappers for the existing Hive and Paimon S3 inputs; update both FE and BE consumers, including Java UDF's Hive dependency. - Keep BC out of the BE preload/Java UDF fat jars that precede the shared Hadoop libraries. Ship the aligned signed BC jars through the existing shared-library layout. - Preserve the COS SDK's original NOTICE. Most additions are three packaging POMs and 297 lines of regression tests covering the normal, Paimon and COS provider paths. - The upstream fixes are described in #71066. Rollback requires reverting the dependency and packaging changes together; no Doris persistent-format or configuration migration is introduced, and rollback restores the old vulnerabilities. ### Testing - Repository `run-fe-ut.sh` preset and the final package's selected JUnit tests: 60 passed, 1 existing disabled integration test, no failures/errors. All 24 new cases ran and passed. - Fresh `bash build.sh --fe` with Checkstyle enabled and build cache disabled: passed. - Built-artifact inspection: all BC class payloads match official 1.87; no unfiltered source Hive, COS-bundle or Paimon-S3 artifact remains. Normal FE/shared BC jars retain their official hashes, the nested Paimon provider matches official bytes, and both early BE fat jars contain no ordinary BC classes. - Actual packaged FE/BE Java classpaths and COS SDK initialization: 145 assertions passed, including name constraints, CMS rejection/valid signatures, SM3/HMAC, PEM parsing, AES-GCM and the RFC 3394 AES Key Wrap vector. No outbound network calls occurred in these probes. ### Notes for Reviewers Deploy the refreshed FE and BE Java dependency closures together. Validation used Linux x86_64/JDK 17 Java artifacts; live cloud services, deployed SQL regression, native BE/MS startup, commercial License startup and release-image scanning were not run. ### Release note Upgrade Bouncy Castle to 1.87 across managed and embedded Java dependencies, including COS's signed-provider handling. ### Check List (For Author) - Test: Unit tests and offline packaged-runtime regression checks. - Behavior changed: Invalid constrained identities and empty CMS signer sets are rejected; COS uses the authenticated signed provider. - Does this need documentation: No. - Pre-submission status: Ready. ### AI Disclosure - Tool: Codex (GPT-6). - Generated: Dependency/packaging changes, tests, verification and this description. - Human review: not stated. - Direction: Review the master change, backport it to both release branches, include COS, and verify/review before submission. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
