Gabriel39 opened a new pull request, #71066: URL: https://github.com/apache/doris/pull/71066
### Background Bouncy Castle supplies cryptographic and certificate APIs to Doris filesystem and lake connectors. FE and BE Java plugins have separate classloaders, and Paimon S3 embeds a component-only runtime. Maven version management does not replace classes already packed inside those dependency jars. ### What problem does this PR solve? Issue Number: None Related PR: #67000 (introduced the managed 1.84 pin), #68216 and #68352 (earlier proposed 1.85 upgrades) PR Type: Release/Dependency Problem Summary: Master packages Bouncy Castle 1.84 alongside embedded 1.65 and 1.78.1 copies, leaving upstream security fixes absent and unsigned older classes beside signed modules. Upgrade the managed modules to 1.87, replace the isolated Paimon S3 provider, and remove the old DLF copies from the two Hive shades. Keep replacements as signed jars where the loader supports them. Most added lines are regression tests for rejected inputs and valid cryptographic operations. ### Details - **Change map:** 200 added test lines; 78 added/26 removed build, dependency and license lines. The packaging changes handle managed version alignment, component-only Paimon S3 replacement, and DLF/Hive signer consistency. No production Java/C++ logic is changed. - **Versions:** Maven Central's bcprov/bcpkix/bcutil-jdk18on 1.84 to 1.87; Paimon S3's embedded provider 1.78.1 to 1.87; DLF's embedded 1.65 is replaced by managed signed modules. Preserve all non-BC Paimon runtime contents and update the bundled MIT license to the upstream text. - **Upstream changes:** Include the certificate-name constraint fixes in [1.85](https://www.bouncycastle.org/resources/new-release-bouncy-castle-java-1-85/) and [1.86](https://www.bouncycastle.org/resources/new-release-bouncy-castle-java-1-86/), including CVE-2026-8763 and CVE-2026-71889, plus [1.87's security fixes](https://www.bouncycastle.org/resources/new-release-bouncy-castle-java-1-87/). Empty CMS signer sets must also fail signature verification. - **Compatibility:** Checked locally on Linux x86_64/JDK 17. Normal RSA/CMS signatures, SM3/HMAC, PEM parsing and MaxCompute TLS remain covered. Paimon's component-only provider stays at its existing nested prefix. Its Hive closure also needs PKIX/PEM APIs used by Nimbus/Netty, so replacing it with a provider alone would be incomplete. The license remains MIT. - **Rollback:** Revert the dependency and packaging change together; no Doris persistent format or configuration migration is introduced. Returning to the old dependencies reintroduces the upstream vulnerabilities. ### Testing - Baseline Paimon regression: 7 tests, 2 expected assertion failures, no errors/skips. Separate real-API probes reproduce the normal-library and leaf-certificate constraint defects. - Local run-fe-ut.sh preset: all 98 selected cases passed, with no failures/errors/skips, including both new regression classes, Paimon S3/plugin/HMS/DLF, OBS and MaxCompute TLS tests. - Fresh FE build and Checkstyle passed. Recursive inspection of 3,397 built JAR paths found only BC 1.87; no BC remains inside either Hive shade. The nested provider matches official bytes and 40,101 common non-BC Paimon files are unchanged. - Actual FE/BE Java plugin runtimes passed all 179 assertions, including nested Paimon loading, certificate/CMS rejection, DLF SM3/HMAC and Nimbus PEM parsing. Normal signed modules use identical signing certificates. ### Notes for Reviewers Deploy refreshed FE plugins and BE Java plugin closures together. Verify the exact rebuilt release images separately; no commercial License startup, MS image scan, live-cloud service or deployed SQL regression was run locally. The dependency findings do not establish an exploitable Doris endpoint. ### Release note Upgrade Bouncy Castle to 1.87, including embedded Paimon/DLF dependency handling, to include upstream security fixes while preserving valid cryptographic operations. ### Check List (For Author) - Behavior changed: No - Does this need documentation: No - Pre-submission status: Ready ### AI Disclosure - Tool: Codex (GPT-6) - Generated: Dependency changes, tests, verification and this description - Human review: not stated - Prompts: Fix the dependency issue on master, verify the fix before committing, and complete local 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]
