hongzhi-gao opened a new pull request, #18597:
URL: https://github.com/apache/iotdb/pull/18597
## Description
### Add TLS and TLCP support
Add SSL configuration to the C++ Tree/Table Session, SessionPool, and C
APIs.
Support:
- TLS and TLCP
- One-way and mutual authentication
- PKCS12 and PEM credentials
- TLCP signing/encryption certificates
- Legacy `trustCertFilePath` compatibility
SSL context creation and credential validation are centralized in
`RpcSslUtils`.
### Add configurable NTLS providers
Add `IOTDB_NTLS_PROVIDER` with:
- `TONGSUO` as the default provider, built from pinned and
checksum-verified sources
- `GMSSL` as an optional native TLCP provider
Provider runtime libraries are bundled in the SDK. The build validates
provider compatibility and prevents system
OpenSSL headers from being mixed with Tongsuo libraries.
### Add tests and cross-platform packages
Add TLS/TLCP examples, documentation, credential fixtures, unit tests, and
integration tests.
The complete packaging matrix passed on Linux x86_64/ARM64, macOS
x86_64/ARM64, and Windows VS2017/2019/2022/2026:
https://github.com/hongzhi-gao/iotdb/actions/runs/34183045059
<hr>
This PR has:
- [x] been self-reviewed.
- [x] added documentation for new or modified features or behaviors.
- [x] added or updated license and notice information.
- [x] added comments explaining non-obvious design decisions.
- [x] added unit tests.
- [x] added integration tests.
- [x] been tested with C++ client integration tests and packaged examples.
<hr>
##### Key changed/added classes (or packages if there are too many
classes) in this PR
- `SslConfig`
- `RpcSslUtils`
- `GmsslTlcpSocket`
- `ThriftConnection`
- Session, TableSession, SessionPool, and C API builders
- CMake SSL/Thrift dependency modules
- TLS/TLCP examples and tests
- C++ client packaging workflow
--
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]