hongzhi-gao opened a new pull request, #19199: URL: https://github.com/apache/iotdb/pull/19199
## Description Backport #18601 (commit 280c0189aa505e0d78967aa4c2b0da6ef4566a30) to `rc/2.0.12`. This adds standard TLS and mutual TLS to the C++ and C tree/table clients and SessionPool, carries SSL settings through node discovery and reconnection, and includes the upstream OpenSSL build/package updates and plain/TLS/mTLS integration tests. The only cherry-pick conflict was the root `pom.xml` RAT exclusions. Keep the release branch's existing configuration and add only the TLS test fixture exclusions; do not bring in the unrelated AINode notice exclusions from the source commit's context. All 46 other changed files exactly match the original commit. ## Validation Executed on Linux with JDK 17, GCC 13 and system OpenSSL 3.0.13: - `mvn -o -Pwith-cpp -pl iotdb-client/client-cpp spotless:check apache-rat:check -Ddevelocity.off=true` using clang-format 17.0.6: passed. - `mvn -o -N apache-rat:check -Ddevelocity.off=true`: passed. - `mvn -o package -pl distribution -am -DskipTests -Ddevelocity.off=true`: passed; server built from this release branch. - CMake client builds with `WITH_SSL=ON` / `BUILD_TESTING=ON` and `WITH_SSL=OFF`: passed. - CMake install and standalone examples compiled against the installed SDK: passed. - `ctest --test-dir /tmp/rc2012-cpp-tls-build -R '^sessionUtilsTest$' --output-on-failure`: passed. - `run_cpp_it_phases.py` against the freshly built standalone server: passed all 7 CTest suites (5 plain, 1 TLS, 1 mTLS), including C/C++ tree/table sessions, SessionPool, discovery/failover and rejection of clients without a certificate. Run with `MEMORY_SIZE=4G` using a fresh distribution directory. - `git diff upstream/rc/2.0.12...HEAD --check`: passed. An initial run limited to `MEMORY_SIZE=1G` exhausted the server's direct-memory budget during the plain C tests and failed; the stuck C test was stopped. The complete rerun above used a fresh distribution directory with 4G and passed without code or assertion changes. Windows/macOS runtime and packaging checks, and the default source-built OpenSSL package path, were not run locally; these remain for CI. Self-review checked the conflict scope, SSL configuration propagation, failed-open/close handling, and node discovery worker lifecycle. No server storage, WAL, RPC schema or persistent format changes are included. -- 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]
