Repository navigation
feat(kms): add AWS, GCP and Azure KMS clients - #1208
Open
shangxinli wants to merge 3 commits into
Open
shangxinli wants to merge 3 commits into
shangxinli wants to merge 3 commits into
Conversation
Add the optional iceberg_kms library (CMake option ICEBERG_BUILD_KMS) with key management clients for AWS KMS, Google Cloud KMS and Azure Key Vault, registered in KmsRegistry as the `aws`, `gcp` and `azure` KMS types. The clients call the services' REST APIs through an injectable HTTP client (cpr by default, with redirects disabled so key material is never replayed to another host) instead of the cloud SDKs, and read the same catalog properties as Java where Java defines them. AWS requests are signed with SigV4 (OpenSSL HMAC-SHA256), tested against the AWS SigV4 test suite. Credentials come from properties or the standard AWS environment variables; GCP and Azure take an access token. CI builds the clients in the Ubuntu Debug job.
shangxinli
force-pushed
the
pr-enc17-kms-clients
branch
from
December 3, 2026 18:34
e021531 to
c2742c5
Compare
… so KMS sources get a compile database
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #988 (step 17 of the task breakdown). This is independent of the other encryption steps: it only builds on the
KmsRegistrymerged in #1031.Adds the optional
iceberg_kmslibrary (CMake optionICEBERG_BUILD_KMS, off by default) with key management clients for AWS KMS, Google Cloud KMS and Azure Key Vault, registered as theaws,gcpandazureKMS types.HttpClient(cpr by default) instead of a cloud SDK. Redirects are disabled, so wrapped key material is never replayed to another host.kms_clients.h, because Java takes those from the SDK's default credential chain.Known limits, also documented in
kms_clients.h: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_testcovers the three clients with a fakeHttpClientplus the SigV4 vectors.🤖 Generated with Claude Code