This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new d30a34cc46d branch-4.1: [deps](fe) Upgrade bundled Bouncy Castle to
1.87 (#71066) (#71070)
d30a34cc46d is described below
commit d30a34cc46d4fa687b2ebabefb848d064fb14c53
Author: Gabriel <[email protected]>
AuthorDate: Mon Nov 30 09:19:28 2026 +0800
branch-4.1: [deps](fe) Upgrade bundled Bouncy Castle to 1.87 (#71066)
(#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.
---
dist/licenses/LICENSE.bouncycastle.txt | 24 ++--
fe/be-java-extensions/hadoop-deps/pom.xml | 5 +
fe/be-java-extensions/java-udf/pom.xml | 2 +-
.../java-udf/src/main/resources/package.xml | 4 +
fe/be-java-extensions/paimon-connector/pom.xml | 4 +-
.../doris/paimon/PaimonBouncyCastleTest.java | 80 +++++++++++
fe/be-java-extensions/paimon-s3-shade/pom.xml | 153 +++++++++++++++++++++
fe/be-java-extensions/pom.xml | 1 +
fe/be-java-extensions/preload-extensions/pom.xml | 8 ++
.../src/main/resources/package-deps.xml | 4 +
fe/cos-api-shade/pom.xml | 139 +++++++++++++++++++
.../apache/doris/common/CosBouncyCastleTest.java | 97 +++++++++++++
fe/fe-core/pom.xml | 13 +-
.../doris/common/BouncyCastleSecurityTest.java | 120 ++++++++++++++++
fe/hive-catalog-filtered/pom.xml | 103 ++++++++++++++
fe/pom.xml | 40 +++++-
16 files changed, 776 insertions(+), 21 deletions(-)
diff --git a/dist/licenses/LICENSE.bouncycastle.txt
b/dist/licenses/LICENSE.bouncycastle.txt
index e10bf1fa1c6..1f0172c5b42 100644
--- a/dist/licenses/LICENSE.bouncycastle.txt
+++ b/dist/licenses/LICENSE.bouncycastle.txt
@@ -1,9 +1,15 @@
-License
-
-Copyright (c) 2000 - 2011 The Legion Of The Bouncy Castle
(http://www.bouncycastle.org)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+MIT License (https://opensource.org/licenses/MIT)
+
+Copyright (c) 2000-2026 The Legion of the Bouncy Castle Inc.
(https://www.bouncycastle.org).
+Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and
+associated documentation files (the "Software"), to deal in the Software
without restriction,
+including without limitation the rights to use, copy, modify, merge, publish,
distribute,
+sub license, and/or sell copies of the Software, and to permit persons to whom
the Software is
+furnished to do so, subject to the following conditions: The above copyright
notice and this
+permission notice shall be included in all copies or substantial portions of
the Software.
+
+**THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT
+NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT
+OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.**
diff --git a/fe/be-java-extensions/hadoop-deps/pom.xml
b/fe/be-java-extensions/hadoop-deps/pom.xml
index f7074995e0b..b18bc406b70 100644
--- a/fe/be-java-extensions/hadoop-deps/pom.xml
+++ b/fe/be-java-extensions/hadoop-deps/pom.xml
@@ -51,6 +51,11 @@ under the License.
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
</dependency>
+ <!-- The shared JVM parent must supply the whole signed BC cohort
after fat-jar filtering. -->
+ <dependency>
+ <groupId>org.bouncycastle</groupId>
+ <artifactId>bcpkix-jdk18on</artifactId>
+ </dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-azure</artifactId>
diff --git a/fe/be-java-extensions/java-udf/pom.xml
b/fe/be-java-extensions/java-udf/pom.xml
index 8b1e57490dc..6a5c93e4b67 100644
--- a/fe/be-java-extensions/java-udf/pom.xml
+++ b/fe/be-java-extensions/java-udf/pom.xml
@@ -49,7 +49,7 @@ under the License.
</dependency>
<dependency>
<groupId>org.apache.doris</groupId>
- <artifactId>hive-catalog-shade</artifactId>
+ <artifactId>hive-catalog-filtered</artifactId>
<scope>compile</scope>
</dependency>
</dependencies>
diff --git a/fe/be-java-extensions/java-udf/src/main/resources/package.xml
b/fe/be-java-extensions/java-udf/src/main/resources/package.xml
index 06b30f57e5c..f6bd25fbfb9 100644
--- a/fe/be-java-extensions/java-udf/src/main/resources/package.xml
+++ b/fe/be-java-extensions/java-udf/src/main/resources/package.xml
@@ -34,6 +34,10 @@ under the License.
<unpackOptions>
<excludes>
<exclude>**/Log4j2Plugins.dat</exclude>
+ <!-- These jars precede Hadoop's shared libraries on the
JVM classpath.
+ Keep BC in its signed jars so JCE can authenticate
the provider. -->
+ <exclude>org/bouncycastle/**</exclude>
+ <exclude>META-INF/versions/**/org/bouncycastle/**</exclude>
<!-- hive-catalog-shade embeds Paimon 1.3 classes. This
fat jar is on the
JVM application classpath and therefore wins
parent-first resolution
over paimon-connector's isolated Paimon runtime. Java
UDF does not use
diff --git a/fe/be-java-extensions/paimon-connector/pom.xml
b/fe/be-java-extensions/paimon-connector/pom.xml
index afbc5a77dec..b5e4fa17500 100644
--- a/fe/be-java-extensions/paimon-connector/pom.xml
+++ b/fe/be-java-extensions/paimon-connector/pom.xml
@@ -69,8 +69,8 @@ under the License.
<!-- Keep FileIO service providers with the paimon-common SPI in this
connector's
isolated classloader. Loading them from preload-extensions breaks
provider linkage. -->
<dependency>
- <groupId>org.apache.paimon</groupId>
- <artifactId>paimon-s3</artifactId>
+ <groupId>org.apache.doris</groupId>
+ <artifactId>paimon-s3-shade</artifactId>
</dependency>
<dependency>
<groupId>org.apache.paimon</groupId>
diff --git
a/fe/be-java-extensions/paimon-connector/src/test/java/org/apache/doris/paimon/PaimonBouncyCastleTest.java
b/fe/be-java-extensions/paimon-connector/src/test/java/org/apache/doris/paimon/PaimonBouncyCastleTest.java
new file mode 100644
index 00000000000..d614261d286
--- /dev/null
+++
b/fe/be-java-extensions/paimon-connector/src/test/java/org/apache/doris/paimon/PaimonBouncyCastleTest.java
@@ -0,0 +1,80 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+package org.apache.doris.paimon;
+
+import org.apache.paimon.plugin.PluginLoader;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.CsvSource;
+
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.math.BigInteger;
+import java.net.URLClassLoader;
+import java.nio.charset.StandardCharsets;
+import java.security.MessageDigest;
+import java.security.Provider;
+
+class PaimonBouncyCastleTest {
+ @ParameterizedTest
+ @CsvSource({
+ "1,[email protected].,true",
+ "6,https://example.com./,true",
+ "1,[email protected],true",
+ "6,https://example.com/,true",
+ "1,[email protected],false",
+ "6,https://safe.example/,false"
+ })
+ void embeddedProviderEnforcesExcludedHosts(int tag, String candidate,
boolean excluded) throws Exception {
+ // Paimon's component-only loader cannot inherit a fixed provider from
the scanner classpath.
+ try (URLClassLoader loader = (URLClassLoader) new
PluginLoader("paimon-plugin-s3").submoduleClassLoader()) {
+ Class<?> nameType =
loader.loadClass("org.bouncycastle.asn1.x509.GeneralName");
+ Class<?> subtreeType =
loader.loadClass("org.bouncycastle.asn1.x509.GeneralSubtree");
+ Class<?> validatorType =
loader.loadClass("org.bouncycastle.jce.provider.PKIXNameConstraintValidator");
+ Object validator = validatorType.getConstructor().newInstance();
+ Object constraint = nameType.getConstructor(int.class,
String.class).newInstance(tag, "example.com");
+ Object subtree =
subtreeType.getConstructor(nameType).newInstance(constraint);
+ validatorType.getMethod("addExcludedSubtree",
subtreeType).invoke(validator, subtree);
+ Object name = nameType.getConstructor(int.class,
String.class).newInstance(tag, candidate);
+ Method check = validatorType.getMethod("checkExcluded", nameType);
+ if (excluded) {
+ InvocationTargetException failure = Assertions.assertThrows(
+ InvocationTargetException.class, () ->
check.invoke(validator, name));
+
Assertions.assertEquals("org.bouncycastle.jce.provider.PKIXNameConstraintValidatorException",
+ failure.getCause().getClass().getName());
+ } else {
+ Assertions.assertDoesNotThrow(() -> check.invoke(validator,
name));
+ }
+ }
+ }
+
+ @Test
+ void embeddedProviderRemainsIsolatedAndComputesSm3() throws Exception {
+ try (URLClassLoader loader = (URLClassLoader) new
PluginLoader("paimon-plugin-s3").submoduleClassLoader()) {
+ Class<?> providerType =
loader.loadClass("org.bouncycastle.jce.provider.BouncyCastleProvider");
+ Assertions.assertSame(loader, providerType.getClassLoader());
+ Assertions.assertNotSame(getClass().getClassLoader(),
providerType.getClassLoader());
+ Provider provider = (Provider)
providerType.getConstructor().newInstance();
+ byte[] digest = MessageDigest.getInstance("SM3", provider)
+ .digest("abc".getBytes(StandardCharsets.US_ASCII));
+
Assertions.assertEquals("66c7f0f462eeedd9d1f2d46bdc10e4e24167c4875cf2f7a2297da02b8f4ba8e0",
+ new BigInteger(1, digest).toString(16));
+ }
+ }
+}
diff --git a/fe/be-java-extensions/paimon-s3-shade/pom.xml
b/fe/be-java-extensions/paimon-s3-shade/pom.xml
new file mode 100644
index 00000000000..eea43d3ba32
--- /dev/null
+++ b/fe/be-java-extensions/paimon-s3-shade/pom.xml
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <artifactId>be-java-extensions</artifactId>
+ <groupId>org.apache.doris</groupId>
+ <version>${revision}</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>paimon-s3-shade</artifactId>
+ <packaging>jar</packaging>
+ <name>Doris BE Java Extensions - Paimon S3 Shade</name>
+ <description>
+ Repackages Paimon's self-contained S3 FileIO plugin with the managed
Bouncy Castle provider
+ and without the outer multi-release entries that leak out of its
embedded plugin runtime.
+ </description>
+
+ <dependencies>
+ <!--
+ paimon-s3 is an outer loader plus a complete child-first runtime
under
+ paimon-plugin-s3/. Its build also copies that runtime's
META-INF/versions tree to the
+ OUTER jar. Those outer entries include an older Bouncy Castle
overlay and therefore
+ override parts of hadoop-common's bcprov-jdk18on when both jars
share the scanner
+ classloader. Remove the accidental outer overlay and replace the
embedded provider below.
+ Optional plus wildcard exclusions ensure consumers get only this
corrected jar,
+ never the source artifact or another transitive copy.
+ -->
+ <dependency>
+ <groupId>org.apache.paimon</groupId>
+ <artifactId>paimon-s3</artifactId>
+ <optional>true</optional>
+ <exclusions>
+ <exclusion>
+ <groupId>*</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <!-- Paimon's component-only loader cannot use the provider on the
scanner classpath.
+ Replace its complete embedded BC tree, including multi-release
classes, at the same prefix. -->
+ <dependency>
+ <groupId>org.bouncycastle</groupId>
+ <artifactId>bcprov-jdk18on</artifactId>
+ <optional>true</optional>
+ </dependency>
+ </dependencies>
+
+ <profiles>
+ <profile>
+ <id>coverage</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <!-- Retain embedded multi-release classes in
the runtime jar, but do not
+ analyze their duplicate class names in
the coverage report. -->
+ <exclude>**/META-INF/versions/**</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+ <build>
+ <finalName>paimon-s3-shade</finalName>
+ <directory>${project.basedir}/target/</directory>
+ <plugins>
+ <!-- Incremental builds must not retain entries from a previously
unpacked version. -->
+ <plugin>
+ <artifactId>maven-clean-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>empty-classes-before-unpack</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>clean</goal>
+ </goals>
+ <configuration>
+
<excludeDefaultDirectories>true</excludeDefaultDirectories>
+ <filesets>
+ <fileset>
+
<directory>${project.build.outputDirectory}</directory>
+ </fileset>
+ </filesets>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack-paimon-s3</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.apache.paimon</groupId>
+ <artifactId>paimon-s3</artifactId>
+ <version>${paimon.version}</version>
+ <overWrite>true</overWrite>
+
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
+ <!-- Remove old BC classes before
unpacking their replacement, so retired
+ classes cannot survive alongside the
new provider. Keep non-BC contents. -->
+
<excludes>META-INF/maven/**,META-INF/versions/**,paimon-plugin-s3/org/bouncycastle/**,paimon-plugin-s3/META-INF/versions/**/org/bouncycastle/**</excludes>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.bouncycastle</groupId>
+ <artifactId>bcprov-jdk18on</artifactId>
+
<version>${bcprov-jdk18on.version}</version>
+ <overWrite>true</overWrite>
+
<outputDirectory>${project.build.outputDirectory}/paimon-plugin-s3</outputDirectory>
+ <!-- The upstream embedded runtime is
unsigned. Do not copy a signed jar's
+ manifest/signatures into it or
overwrite unrelated service registrations. -->
+
<includes>org/bouncycastle/**,META-INF/versions/**/org/bouncycastle/**,META-INF/LICENSE.md</includes>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/fe/be-java-extensions/pom.xml b/fe/be-java-extensions/pom.xml
index 5611b74e5c1..f57eee57271 100644
--- a/fe/be-java-extensions/pom.xml
+++ b/fe/be-java-extensions/pom.xml
@@ -26,6 +26,7 @@ under the License.
<module>java-common</module>
<module>java-udf</module>
<module>jdbc-scanner</module>
+ <module>paimon-s3-shade</module>
<module>paimon-connector</module>
<module>max-compute-connector</module>
<module>avro-scanner</module>
diff --git a/fe/be-java-extensions/preload-extensions/pom.xml
b/fe/be-java-extensions/preload-extensions/pom.xml
index 673069eb2d8..b20719b35b3 100644
--- a/fe/be-java-extensions/preload-extensions/pom.xml
+++ b/fe/be-java-extensions/preload-extensions/pom.xml
@@ -121,11 +121,19 @@ under the License.
</dependency>
<!-- For BE CosN Access -->
<!-- Keep a single declaration: Maven 3.10+ rejects duplicate
dependency coordinates. -->
+ <dependency>
+ <groupId>org.apache.doris</groupId>
+ <artifactId>cos-api-shade</artifactId>
+ </dependency>
<dependency>
<groupId>com.qcloud.cos</groupId>
<artifactId>hadoop-cos</artifactId>
<version>${tencentcos.version}</version>
<exclusions>
+ <exclusion>
+ <groupId>com.qcloud</groupId>
+ <artifactId>cos_api-bundle</artifactId>
+ </exclusion>
<exclusion>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
diff --git
a/fe/be-java-extensions/preload-extensions/src/main/resources/package-deps.xml
b/fe/be-java-extensions/preload-extensions/src/main/resources/package-deps.xml
index 52d0628ae3f..0e92ea428c4 100644
---
a/fe/be-java-extensions/preload-extensions/src/main/resources/package-deps.xml
+++
b/fe/be-java-extensions/preload-extensions/src/main/resources/package-deps.xml
@@ -34,6 +34,10 @@ under the License.
<unpackOptions>
<excludes>
<exclude>**/Log4j2Plugins.dat</exclude>
+ <!-- These jars precede Hadoop's shared libraries on the
JVM classpath.
+ Keep BC in its signed jars so JCE can authenticate
the provider. -->
+ <exclude>org/bouncycastle/**</exclude>
+ <exclude>META-INF/versions/**/org/bouncycastle/**</exclude>
</excludes>
</unpackOptions>
</dependencySet>
diff --git a/fe/cos-api-shade/pom.xml b/fe/cos-api-shade/pom.xml
new file mode 100644
index 00000000000..fc674387ba7
--- /dev/null
+++ b/fe/cos-api-shade/pom.xml
@@ -0,0 +1,139 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>fe</artifactId>
+ <groupId>org.apache.doris</groupId>
+ <version>${revision}</version>
+ </parent>
+ <artifactId>cos-api-shade</artifactId>
+ <name>Doris COS SDK Filtered Bundle</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>com.qcloud</groupId>
+ <artifactId>cos_api-bundle</artifactId>
+ <optional>true</optional>
+ <exclusions>
+ <exclusion>
+ <groupId>*</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <!-- COS reflects a private provider name. Redirect it to the official
signed provider:
+ relocating a replacement into this unsigned bundle would still
fail JCE authentication. -->
+ <dependency>
+ <groupId>org.bouncycastle</groupId>
+ <artifactId>bcprov-jdk18on</artifactId>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <!-- Consumers compile against this binary-only module during mvn
test. Create and
+ shade its main jar in the same early phase, with jar creation
first. -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>default-jar</id>
+ <phase>process-classes</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ <configuration>
+ <forceCreation>true</forceCreation>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>process-classes</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+
<createDependencyReducedPom>false</createDependencyReducedPom>
+ <artifactSet>
+ <includes>
+
<include>com.qcloud:cos_api-bundle</include>
+ </includes>
+ </artifactSet>
+ <filters>
+ <filter>
+ <artifact>*:*</artifact>
+ <excludes>
+ <exclude>META-INF/*.SF</exclude>
+ <exclude>META-INF/*.RSA</exclude>
+ <exclude>META-INF/*.DSA</exclude>
+ <exclude>META-INF/maven/**</exclude>
+ </excludes>
+ </filter>
+ <filter>
+
<artifact>com.qcloud:cos_api-bundle</artifact>
+ <excludes>
+
<exclude>com/qcloud/cos/thirdparty/org/bouncycastle/**</exclude>
+ <exclude>org/bouncycastle/**</exclude>
+ <!-- The source bundle is not
multi-release: these stale BC and
+ unrelated overlays must not
escape into another runtime jar. -->
+ <exclude>META-INF/versions/**</exclude>
+ </excludes>
+ </filter>
+ </filters>
+ <transformers>
+ <!-- Preserve the SDK's upstream notices
alongside the generated project notice. -->
+ <transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
+ <resource>META-INF/NOTICE</resource>
+ </transformer>
+ </transformers>
+ <relocations>
+ <relocation>
+
<pattern>com.qcloud.cos.thirdparty.org.bouncycastle</pattern>
+
<shadedPattern>org.bouncycastle</shadedPattern>
+ </relocation>
+ </relocations>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <!-- Exercise the processed SDK rather than the optional
source dependency. -->
+ <classpathDependencyExcludes>
+
<classpathDependencyExclude>com.qcloud:cos_api-bundle</classpathDependencyExclude>
+ </classpathDependencyExcludes>
+ <additionalClasspathElements>
+
<additionalClasspathElement>${project.build.directory}/${project.build.finalName}.jar</additionalClasspathElement>
+ </additionalClasspathElements>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git
a/fe/cos-api-shade/src/test/java/org/apache/doris/common/CosBouncyCastleTest.java
b/fe/cos-api-shade/src/test/java/org/apache/doris/common/CosBouncyCastleTest.java
new file mode 100644
index 00000000000..53ae13a446c
--- /dev/null
+++
b/fe/cos-api-shade/src/test/java/org/apache/doris/common/CosBouncyCastleTest.java
@@ -0,0 +1,97 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+package org.apache.doris.common;
+
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.CsvSource;
+
+import java.lang.reflect.Field;
+import java.lang.reflect.InvocationTargetException;
+import java.math.BigInteger;
+import java.nio.charset.StandardCharsets;
+import java.security.InvalidKeyException;
+import java.security.MessageDigest;
+import java.security.Provider;
+import java.util.HexFormat;
+import javax.crypto.Cipher;
+import javax.crypto.spec.SecretKeySpec;
+
+class CosBouncyCastleTest {
+ @ParameterizedTest
+ @CsvSource({
+ "1,[email protected].,true",
+ "6,https://example.com./,true",
+ "1,[email protected],true",
+ "6,https://example.com/,true",
+ "1,[email protected],false",
+ "6,https://safe.example/,false"
+ })
+ void sdkProviderEnforcesExcludedHosts(int tag, String candidate, boolean
excluded) throws Exception {
+ String prefix =
provider().getClass().getPackageName().replace(".jce.provider", "") + ".";
+ Class<?> nameType = Class.forName(prefix + "asn1.x509.GeneralName");
+ Class<?> subtreeType = Class.forName(prefix +
"asn1.x509.GeneralSubtree");
+ Class<?> validatorType = Class.forName(prefix +
"jce.provider.PKIXNameConstraintValidator");
+ Object validator = validatorType.getConstructor().newInstance();
+ Object constraint = nameType.getConstructor(int.class,
String.class).newInstance(tag, "example.com");
+ Object subtree =
subtreeType.getConstructor(nameType).newInstance(constraint);
+ validatorType.getMethod("addExcludedSubtree",
subtreeType).invoke(validator, subtree);
+ Object name = nameType.getConstructor(int.class,
String.class).newInstance(tag, candidate);
+ if (excluded) {
+ InvocationTargetException failure =
Assertions.assertThrows(InvocationTargetException.class,
+ () -> validatorType.getMethod("checkExcluded",
nameType).invoke(validator, name));
+ Assertions.assertEquals(prefix +
"jce.provider.PKIXNameConstraintValidatorException",
+ failure.getCause().getClass().getName());
+ } else {
+ Assertions.assertDoesNotThrow(
+ () -> validatorType.getMethod("checkExcluded",
nameType).invoke(validator, name));
+ }
+ }
+
+ @Test
+ void sdkProviderComputesSm3() throws Exception {
+ byte[] digest = MessageDigest.getInstance("SM3", provider())
+ .digest("abc".getBytes(StandardCharsets.US_ASCII));
+
Assertions.assertEquals("66c7f0f462eeedd9d1f2d46bdc10e4e24167c4875cf2f7a2297da02b8f4ba8e0",
+ new BigInteger(1, digest).toString(16));
+ }
+
+ @Test
+ void preservesAesKeyWrappingAndRejectsTampering() throws Exception {
+ HexFormat hex = HexFormat.of();
+ SecretKeySpec wrappingKey = new
SecretKeySpec(hex.parseHex("000102030405060708090a0b0c0d0e0f"), "AES");
+ byte[] keyBytes = hex.parseHex("00112233445566778899aabbccddeeff");
+ Cipher cipher = Cipher.getInstance("AESWrap", provider());
+ cipher.init(Cipher.WRAP_MODE, wrappingKey);
+ // RFC 3394 section 4.1 fixes the expected bytes independently of the
provider implementation.
+ byte[] wrapped = cipher.wrap(new SecretKeySpec(keyBytes, "AES"));
+
Assertions.assertArrayEquals(hex.parseHex("1fa68b0a8112b447aef34bd8fb5a7b829d3e862371d2cfe5"),
wrapped);
+ cipher.init(Cipher.UNWRAP_MODE, wrappingKey);
+ Assertions.assertArrayEquals(keyBytes, cipher.unwrap(wrapped, "AES",
Cipher.SECRET_KEY).getEncoded());
+ wrapped[0] ^= 1;
+ Assertions.assertThrows(InvalidKeyException.class, () ->
cipher.unwrap(wrapped, "AES", Cipher.SECRET_KEY));
+ }
+
+ private static Provider provider() throws ReflectiveOperationException {
+ Class<?> runtime =
Class.forName("com.qcloud.cos.internal.crypto.CryptoRuntime");
+ Field providerName = runtime.getDeclaredField("BC_PROVIDER_FQCN");
+ providerName.setAccessible(true);
+ return (Provider) Class.forName((String)
providerName.get(null)).getConstructor().newInstance();
+ }
+}
diff --git a/fe/fe-core/pom.xml b/fe/fe-core/pom.xml
index 7cda2fa5671..42b9246828c 100644
--- a/fe/fe-core/pom.xml
+++ b/fe/fe-core/pom.xml
@@ -327,6 +327,10 @@ under the License.
<groupId>com.huaweicloud</groupId>
<artifactId>hadoop-huaweicloud</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.apache.doris</groupId>
+ <artifactId>cos-api-shade</artifactId>
+ </dependency>
<dependency>
<groupId>com.qcloud.cos</groupId>
<artifactId>hadoop-cos</artifactId>
@@ -440,8 +444,7 @@ under the License.
</exclusion>
</exclusions>
</dependency>
- <!-- Replace Huawei IAM's bcprov-jdk15on 1.69/1.70 with 1.84 from the
maintained
- jdk18on line; it fixes CVE-2023-33202 and the later 2025/2026 BC
Java advisories. -->
+ <!-- Use the managed jdk18on provider rather than Huawei IAM's retired
jdk15on line. -->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk18on</artifactId>
@@ -486,7 +489,7 @@ under the License.
</dependency>
<dependency>
<groupId>org.apache.doris</groupId>
- <artifactId>hive-catalog-shade</artifactId>
+ <artifactId>hive-catalog-filtered</artifactId>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
@@ -610,8 +613,8 @@ under the License.
</dependency>
<dependency>
- <groupId>org.apache.paimon</groupId>
- <artifactId>paimon-s3</artifactId>
+ <groupId>org.apache.doris</groupId>
+ <artifactId>paimon-s3-shade</artifactId>
</dependency>
<dependency>
<groupId>org.apache.paimon</groupId>
diff --git
a/fe/fe-core/src/test/java/org/apache/doris/common/BouncyCastleSecurityTest.java
b/fe/fe-core/src/test/java/org/apache/doris/common/BouncyCastleSecurityTest.java
new file mode 100644
index 00000000000..666b5c0e585
--- /dev/null
+++
b/fe/fe-core/src/test/java/org/apache/doris/common/BouncyCastleSecurityTest.java
@@ -0,0 +1,120 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+package org.apache.doris.common;
+
+import org.bouncycastle.asn1.DEROctetString;
+import org.bouncycastle.asn1.DERSet;
+import org.bouncycastle.asn1.cms.CMSObjectIdentifiers;
+import org.bouncycastle.asn1.cms.ContentInfo;
+import org.bouncycastle.asn1.cms.SignedData;
+import org.bouncycastle.asn1.x509.GeneralName;
+import org.bouncycastle.asn1.x509.GeneralSubtree;
+import org.bouncycastle.cms.CMSException;
+import org.bouncycastle.cms.CMSProcessableByteArray;
+import org.bouncycastle.cms.CMSSignedData;
+import org.bouncycastle.cms.CMSSignedDataGenerator;
+import org.bouncycastle.cms.jcajce.JcaSignerInfoGeneratorBuilder;
+import org.bouncycastle.cms.jcajce.JcaSimpleSignerInfoVerifierBuilder;
+import org.bouncycastle.jce.provider.BouncyCastleProvider;
+import org.bouncycastle.jce.provider.PKIXNameConstraintValidator;
+import org.bouncycastle.jce.provider.PKIXNameConstraintValidatorException;
+import org.bouncycastle.operator.jcajce.JcaContentSignerBuilder;
+import org.bouncycastle.operator.jcajce.JcaDigestCalculatorProviderBuilder;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.CsvSource;
+
+import java.nio.charset.StandardCharsets;
+import java.security.KeyPair;
+import java.security.KeyPairGenerator;
+import java.security.Provider;
+import java.security.Signature;
+
+class BouncyCastleSecurityTest {
+ @ParameterizedTest
+ @CsvSource({
+ "1,[email protected].,true",
+ "6,https://example.com./,true",
+ "1,[email protected],true",
+ "6,https://example.com/,true",
+ "1,[email protected],false",
+ "6,https://safe.example/,false"
+ })
+ void enforcesExcludedHostsWithAndWithoutTrailingDots(int tag, String
candidate, boolean excluded) {
+ PKIXNameConstraintValidator validator = new
PKIXNameConstraintValidator();
+ validator.addExcludedSubtree(new GeneralSubtree(new GeneralName(tag,
"example.com")));
+ GeneralName name = new GeneralName(tag, candidate);
+ // A DNS root-label dot must not let an excluded certificate identity
escape its constraint.
+ if (excluded) {
+
Assertions.assertThrows(PKIXNameConstraintValidatorException.class, () ->
validator.checkExcluded(name));
+ } else {
+ Assertions.assertDoesNotThrow(() -> validator.checkExcluded(name));
+ }
+ }
+
+ @Test
+ void rejectsCmsWithNoSigners() throws Exception {
+ SignedData unsigned = new SignedData(new DERSet(),
+ new ContentInfo(CMSObjectIdentifiers.data, new
DEROctetString(new byte[] {1, 2, 3})),
+ null, null, new DERSet());
+ CMSSignedData data = new CMSSignedData(new
ContentInfo(CMSObjectIdentifiers.signedData, unsigned));
+ // An empty signer set must not turn signature verification into a
vacuous success.
+ Assertions.assertThrows(CMSException.class, () ->
data.verifySignatures(id -> {
+ throw new AssertionError("An unsigned message has no signer to
resolve");
+ }));
+ }
+
+ @Test
+ void verifiesSignedCmsAndRejectsTamperedContent() throws Exception {
+ KeyPairGenerator generator = KeyPairGenerator.getInstance("RSA");
+ generator.initialize(2048);
+ KeyPair keys = generator.generateKeyPair();
+ CMSSignedDataGenerator generatorCms = new CMSSignedDataGenerator();
+ generatorCms.addSignerInfoGenerator(new JcaSignerInfoGeneratorBuilder(
+ new JcaDigestCalculatorProviderBuilder().build()).build(
+ new
JcaContentSignerBuilder("SHA256withRSA").build(keys.getPrivate()), new byte[]
{1, 2, 3}));
+ CMSSignedData signed = generatorCms.generate(new
CMSProcessableByteArray(new byte[] {4, 5, 6}), false);
+ CMSSignedData valid = new CMSSignedData(new
CMSProcessableByteArray(new byte[] {4, 5, 6}), signed.getEncoded());
+ Assertions.assertTrue(valid.verifySignatures(
+ id -> new
JcaSimpleSignerInfoVerifierBuilder().build(keys.getPublic())));
+ CMSSignedData tampered = new CMSSignedData(
+ new CMSProcessableByteArray(new byte[] {4, 5, 7}),
signed.getEncoded());
+ Assertions.assertThrows(CMSException.class, () ->
tampered.verifySignatures(
+ id -> new
JcaSimpleSignerInfoVerifierBuilder().build(keys.getPublic())));
+ }
+
+ @Test
+ void initializesProviderAndPreservesRsaSignatureVerification() throws
Exception {
+ Provider provider = new BouncyCastleProvider();
+ KeyPairGenerator generator = KeyPairGenerator.getInstance("RSA");
+ generator.initialize(2048);
+ KeyPair keys = generator.generateKeyPair();
+ Signature signature = Signature.getInstance("SHA256withRSA", provider);
+ byte[] message =
"fixture-signed-content".getBytes(StandardCharsets.UTF_8);
+ signature.initSign(keys.getPrivate());
+ signature.update(message);
+ byte[] signed = signature.sign();
+ signature.initVerify(keys.getPublic());
+ signature.update(message);
+ Assertions.assertTrue(signature.verify(signed));
+ signature.initVerify(keys.getPublic());
+
signature.update("fixture-tampered-content".getBytes(StandardCharsets.UTF_8));
+ Assertions.assertFalse(signature.verify(signed));
+ }
+}
diff --git a/fe/hive-catalog-filtered/pom.xml b/fe/hive-catalog-filtered/pom.xml
new file mode 100644
index 00000000000..b2998763cd7
--- /dev/null
+++ b/fe/hive-catalog-filtered/pom.xml
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>fe</artifactId>
+ <groupId>org.apache.doris</groupId>
+ <version>${revision}</version>
+ </parent>
+ <artifactId>hive-catalog-filtered</artifactId>
+ <name>Doris Hive Catalog Filtered Bundle</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.doris</groupId>
+ <artifactId>hive-catalog-shade</artifactId>
+ <optional>true</optional>
+ <exclusions>
+ <exclusion>
+ <groupId>*</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <!-- The bundle embeds unsigned BC classes. Load all BC APIs from one
signed cohort
+ instead: mixing its old classes with new provider classes causes
signer mismatches. -->
+ <dependency>
+ <groupId>org.bouncycastle</groupId>
+ <artifactId>bcpkix-jdk18on</artifactId>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-clean-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>empty-classes-before-unpack</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>clean</goal>
+ </goals>
+ <configuration>
+
<excludeDefaultDirectories>true</excludeDefaultDirectories>
+ <filesets>
+ <fileset>
+
<directory>${project.build.outputDirectory}</directory>
+ </fileset>
+ </filesets>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack-hive-without-embedded-bc</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.apache.doris</groupId>
+ <artifactId>hive-catalog-shade</artifactId>
+
<version>${doris.hive.catalog.shade.version}</version>
+ <overWrite>true</overWrite>
+
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
+ <!-- Remove retired classes as well as MR
variants; overlaying a new jar
+ leaves old-only APIs and unsigned
classes on the runtime classpath. -->
+
<excludes>org/bouncycastle/**,META-INF/versions/**/org/bouncycastle/**,META-INF/maven/**,META-INF/*.SF,META-INF/*.RSA,META-INF/*.DSA</excludes>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/fe/pom.xml b/fe/pom.xml
index 5aa4783cf7e..5ac62e531b6 100644
--- a/fe/pom.xml
+++ b/fe/pom.xml
@@ -223,6 +223,8 @@ under the License.
<modules>
<module>fe-foundation</module>
<module>fe-common</module>
+ <module>cos-api-shade</module>
+ <module>hive-catalog-filtered</module>
<module>fe-core</module>
<module>hive-udf</module>
<module>be-java-extensions</module>
@@ -394,10 +396,9 @@ under the License.
<zookeeper.version>3.9.3</zookeeper.version>
<velocity-engine-core.version>2.4</velocity-engine-core.version>
<ranger-plugins-common.version>2.9.0</ranger-plugins-common.version>
- <!-- Huawei IAM pulls bcprov-jdk15on 1.69, whose final 1.70 release is
vulnerable to
- CVE-2023-33202. Use the compatible jdk18on line at 1.84, which
also fixes
- CVE-2025-14813, CVE-2026-0636, CVE-2026-3505, CVE-2026-5588, and
CVE-2026-5598. -->
- <bcprov-jdk18on.version>1.84</bcprov-jdk18on.version>
+ <!-- Keep provider, PKIX and utility modules aligned: 1.85/1.86 fix
excluded-name
+ constraints and empty CMS signer sets, which remain vulnerable in
1.84. -->
+ <bcprov-jdk18on.version>1.87</bcprov-jdk18on.version>
<woodstox.version>6.5.1</woodstox.version>
<kerby.version>2.0.3</kerby.version>
<jettison.version>1.5.4</jettison.version>
@@ -723,6 +724,16 @@ under the License.
<artifactId>bcprov-jdk18on</artifactId>
<version>${bcprov-jdk18on.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.bouncycastle</groupId>
+ <artifactId>bcpkix-jdk18on</artifactId>
+ <version>${bcprov-jdk18on.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.bouncycastle</groupId>
+ <artifactId>bcutil-jdk18on</artifactId>
+ <version>${bcprov-jdk18on.version}</version>
+ </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
@@ -861,6 +872,16 @@ under the License.
<artifactId>hive-catalog-shade</artifactId>
<version>${doris.hive.catalog.shade.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.doris</groupId>
+ <artifactId>hive-catalog-filtered</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.doris</groupId>
+ <artifactId>paimon-s3-shade</artifactId>
+ <version>${project.version}</version>
+ </dependency>
<dependency>
<groupId>org.apache.kerby</groupId>
<artifactId>kerb-simplekdc</artifactId>
@@ -2048,6 +2069,12 @@ under the License.
<artifactId>cos_api-bundle</artifactId>
<version>${cos-api.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.doris</groupId>
+ <artifactId>cos-api-shade</artifactId>
+ <version>${project.version}</version>
+ <scope>${cos.dependency.scope}</scope>
+ </dependency>
<dependency>
<groupId>com.qcloud</groupId>
<artifactId>qcloud-java-sdk</artifactId>
@@ -2060,6 +2087,11 @@ under the License.
<version>${tencentcos.version}</version>
<scope>${cos.dependency.scope}</scope>
<exclusions>
+ <!-- The filtered SDK supplies the signed managed provider
instead of embedded BC. -->
+ <exclusion>
+ <groupId>com.qcloud</groupId>
+ <artifactId>cos_api-bundle</artifactId>
+ </exclusion>
<exclusion>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]