shangxinli opened a new pull request, #1208: URL: https://github.com/apache/iceberg-cpp/pull/1208
Part of #988 (step 17 of the task breakdown). This is independent of the other encryption steps: it only builds on the `KmsRegistry` merged in #1031. Adds the optional `iceberg_kms` library (CMake option `ICEBERG_BUILD_KMS`, off by default) with key management clients for AWS KMS, Google Cloud KMS and Azure Key Vault, registered as the `aws`, `gcp` and `azure` KMS types. - The clients call each service's REST API through an injectable `HttpClient` (cpr by default) instead of a cloud SDK. Redirects are disabled, so wrapped key material is never replayed to another host. - They read the same catalog properties as the Java clients where Java defines one. Properties with no Java equivalent are marked "C++ only" in `kms_clients.h`, because Java takes those from the SDK's default credential chain. - AWS requests are signed with SigV4 (OpenSSL HMAC-SHA256), checked against the AWS SigV4 test suite vectors. - CI builds the clients in the Ubuntu Debug job. Known limits, also documented in `kms_clients.h`: - The SDK credential provider chains (AWS profiles, instance roles, web identity; Google application default credentials; Azure managed identities) are not implemented. Credentials come from properties, the standard AWS environment variables, or a token. A custom client can be registered for anything else. - Registration also runs at static initialization, which a static archive link can drop when nothing else references the library. `iceberg::kms::RegisterAll()` registers explicitly. The user documentation page for encryption lands with the PR that enables writes, so this PR has no docs change. Tests: `kms_clients_test` covers the three clients with a fake `HttpClient` plus the SigV4 vectors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
