You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "zakariya-s (via GitHub)" <gi...@apache.org> on 2026/09/08 10:51:34 UTC

[PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

zakariya-s opened a new pull request, #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173

   ## Which issue does this PR close?
   
   <!--
   We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
   -->
   
   - Working towards #2034.
   - Supersedes the closed draft #2466.
   
   ## What changes are included in this PR?
   
   <!--
   Provide a summary of the modifications in this PR. List the main changes such as new features, bug fixes, refactoring, or any other updates.
   -->
   
   Adds a new `iceberg-kms-aws` crate implementing Iceberg client-side encryption key management with AWS KMS.
   
   The KMS client is created once from the application-supplied catalog properties and shared across the catalog, matching the existing `KmsClientFactory` lifecycle.
   
   ## Are these changes tested?
   
   <!--
   Specify what test covers (unit test, integration test, etc.).
   
   If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?
   -->
   
   Yes.
   
   The AWS SDK mock framework was also used to test AWS calls.
   
   ## AI Disclosure
   
   <!--
   https://iceberg.apache.org/contribute/#guidelines-for-ai-assisted-contributions
   -->
   
   LLMs were used to assist, but the code has been validated by hand.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "zakariya-s (via GitHub)" <gi...@apache.org>.
zakariya-s commented on PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#issuecomment-5790134425

   CI fails because we're creating a new `iceberg-kms` crate


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "hsiang-c (via GitHub)" <gi...@apache.org>.
hsiang-c commented on PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#issuecomment-5604862393

   @zakariya-s Thanks for working on it, I'll review your PR.
   
   @mbutrovich Thanks for the reminder!


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "xanderbailey (via GitHub)" <gi...@apache.org>.
xanderbailey commented on PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#issuecomment-5718865852

   I’ll take a look here this evening! 


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "xanderbailey (via GitHub) via issues" <is...@iceberg.apache.org>.
xanderbailey commented on PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#issuecomment-6911752368

   I'll take a look at this today! Let's see if we can get this merged this week! 


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "zakariya-s (via GitHub)" <gi...@apache.org>.
zakariya-s commented on code in PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#discussion_r4045663441


##########
crates/kms/src/aws/client.rs:
##########


Review Comment:
   25dc118f823e285ed7dcdf1b8c316b2b6e848c72



-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "xanderbailey (via GitHub)" <gi...@apache.org>.
xanderbailey commented on code in PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#discussion_r4039878853


##########
crates/kms/aws/src/client.rs:
##########


Review Comment:
   I think let’s follow what we do for the opendal storage implementations. Its an established pattern



-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "zakariya-s (via GitHub)" <gi...@apache.org>.
zakariya-s commented on code in PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#discussion_r4208393542


##########
crates/kms/Cargo.toml:
##########
@@ -0,0 +1,47 @@
+# 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]
+edition = { workspace = true }
+homepage = { workspace = true }
+name = "iceberg-kms-aws"
+publish = true
+readme = "README.md"
+rust-version = { workspace = true }
+version = { workspace = true }
+
+categories = ["database"]
+description = "AWS KMS support for Apache Iceberg client-side encryption"
+keywords = ["iceberg", "aws", "kms", "encryption"]
+license = { workspace = true }
+repository = { workspace = true }
+
+[dependencies]
+async-trait = { workspace = true }
+aws-config = { workspace = true }
+aws-sdk-kms = { workspace = true }
+iceberg = { workspace = true }
+iceberg-property-macro = { workspace = true }
+
+[dev-dependencies]
+aws-sdk-kms = { workspace = true, features = ["test-util"] }

Review Comment:
   no longer



-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "zakariya-s (via GitHub)" <gi...@apache.org>.
zakariya-s commented on code in PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#discussion_r3957755848


##########
crates/kms/aws/src/client.rs:
##########


Review Comment:
   Yeah I'm not sure either, I considered both but for opendal the backends all share the same adapter while the KMS implementations wouldn't have the same. Java Iceberg also has separate modules for AWS, etc. Having them in separate crates also keeps SDK deps isolated. I can see three potential ways to organise this:
   
   - Keep it in the core crate and use feature flags
   - Have separate crates for iceberg-kms-aws, etc.
   - Have one iceberg-kms crate with feature flags for AWS, etc.
   
   I'm happy with any of these approaches honestly



-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "zakariya-s (via GitHub)" <gi...@apache.org>.
zakariya-s commented on code in PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#discussion_r3967368055


##########
crates/kms/aws/Cargo.toml:
##########
@@ -0,0 +1,47 @@
+# 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]
+edition = { workspace = true }
+homepage = { workspace = true }
+name = "iceberg-kms-aws"
+publish = true
+readme = "README.md"
+rust-version = { workspace = true }
+version = { workspace = true }
+
+categories = ["database"]
+description = "AWS KMS support for Apache Iceberg client-side encryption"
+keywords = ["iceberg", "aws", "kms", "encryption"]
+license = { workspace = true }
+repository = { workspace = true }
+
+[dependencies]
+async-trait = { workspace = true }
+aws-config = { workspace = true }
+aws-sdk-kms = { workspace = true }
+iceberg = { workspace = true }
+iceberg-property-macro = { workspace = true }
+
+[dev-dependencies]
+aws-sdk-kms = { workspace = true, features = ["test-util"] }

Review Comment:
   Security audit is failing because of `h2 0.3.27` ([RUSTSEC-2026-0258](https://rustsec.org/advisories/RUSTSEC-2026-0258.html)) introduced through `aws-sdk-kms/test-util`. It's a low-severity issue but still fails the checks.
   
   We could do a temporary audit exception for it? Especially since this only affects tests.



-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "github-actions[bot] (via GitHub) via issues" <is...@iceberg.apache.org>.
github-actions[bot] commented on PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#issuecomment-6868270546

   This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "zakariya-s (via GitHub) via issues" <is...@iceberg.apache.org>.
zakariya-s commented on PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#issuecomment-6909945041

   Not stale


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "zakariya-s (via GitHub)" <gi...@apache.org>.
zakariya-s commented on code in PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#discussion_r3967472643


##########
crates/kms/aws/Cargo.toml:
##########
@@ -0,0 +1,47 @@
+# 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]
+edition = { workspace = true }
+homepage = { workspace = true }
+name = "iceberg-kms-aws"
+publish = true
+readme = "README.md"
+rust-version = { workspace = true }
+version = { workspace = true }
+
+categories = ["database"]
+description = "AWS KMS support for Apache Iceberg client-side encryption"
+keywords = ["iceberg", "aws", "kms", "encryption"]
+license = { workspace = true }
+repository = { workspace = true }
+
+[dependencies]
+async-trait = { workspace = true }
+aws-config = { workspace = true }
+aws-sdk-kms = { workspace = true }
+iceberg = { workspace = true }
+iceberg-property-macro = { workspace = true }
+
+[dev-dependencies]
+aws-sdk-kms = { workspace = true, features = ["test-util"] }

Review Comment:
   c4540306cb45409a969ba8a99523aa6b7f17b5cd



-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "zakariya-s (via GitHub)" <gi...@apache.org>.
zakariya-s commented on PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#issuecomment-5717880834

   Hey @hsiang-c @mbutrovich @CTTY could I get a review here when you have time please? Thanks


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "zakariya-s (via GitHub)" <gi...@apache.org>.
zakariya-s commented on PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#issuecomment-5588724018

   > How does this compare to #2466?
   > 
   > cc @hsiang-c
   
   It implements the same but the previous PR has been inactive for a few months now. This also addresses some of @xanderbailey's comments.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "mbutrovich (via GitHub)" <gi...@apache.org>.
mbutrovich commented on PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#issuecomment-5588377051

   How does this compare to #2466?


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "xanderbailey (via GitHub)" <gi...@apache.org>.
xanderbailey commented on code in PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#discussion_r3957216213


##########
crates/kms/aws/src/config.rs:
##########
@@ -0,0 +1,147 @@
+// 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.
+
+use std::collections::HashMap;
+
+use aws_sdk_kms::types::{DataKeySpec, EncryptionAlgorithmSpec};
+use iceberg::{Error, ErrorKind, Result};
+
+/// Catalog property selecting an AWS profile.
+pub const AWS_PROFILE_NAME: &str = "profile_name";
+/// Catalog property selecting the AWS region.
+pub const AWS_REGION_NAME: &str = "region_name";
+/// Catalog property containing a static AWS access key ID.
+pub const AWS_ACCESS_KEY_ID: &str = "aws_access_key_id";
+/// Catalog property containing a static AWS secret access key.
+pub const AWS_SECRET_ACCESS_KEY: &str = "aws_secret_access_key";
+/// Catalog property containing a static AWS session token.
+pub const AWS_SESSION_TOKEN: &str = "aws_session_token";
+
+/// Catalog property overriding the AWS KMS service endpoint.
+pub const KMS_ENDPOINT: &str = "kms.endpoint";
+/// Catalog property selecting the AWS KMS encryption algorithm.
+pub const KMS_ENCRYPTION_ALGORITHM_SPEC: &str = "kms.encryption-algorithm-spec";
+/// Default AWS KMS encryption algorithm, matching Iceberg Java.
+pub const KMS_ENCRYPTION_ALGORITHM_SPEC_DEFAULT: &str = "SYMMETRIC_DEFAULT";
+/// Catalog property selecting the size of keys generated by AWS KMS.
+pub const KMS_DATA_KEY_SPEC: &str = "kms.data-key-spec";
+/// Default AWS KMS generated key size, matching Iceberg Java.
+pub const KMS_DATA_KEY_SPEC_DEFAULT: &str = "AES_256";
+
+#[derive(Clone)]
+pub(crate) struct AwsKmsConfig {
+    pub(crate) endpoint: Option<String>,
+    pub(crate) encryption_algorithm: EncryptionAlgorithmSpec,
+    pub(crate) data_key_spec: DataKeySpec,
+}
+
+impl AwsKmsConfig {
+    pub(crate) fn from_properties(properties: &HashMap<String, String>) -> Result<Self> {

Review Comment:
   Config macro will help you here I think



-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "xanderbailey (via GitHub) via issues" <is...@iceberg.apache.org>.
xanderbailey commented on code in PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#discussion_r4658946151


##########
crates/kms/DEPENDENCIES.rust.tsv:
##########
@@ -0,0 +1,298 @@
+crate	0BSD	Apache-2.0	Apache-2.0 WITH LLVM-exception	BSD-2-Clause	BSD-3-Clause	BSL-1.0	CC0-1.0	ISC	LGPL-2.1-or-later	MIT	Unicode-3.0	Unlicense	Zlib

Review Comment:
   We've removed these since https://github.com/apache/iceberg-rust/pull/3338



-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "zakariya-s (via GitHub) via issues" <is...@iceberg.apache.org>.
zakariya-s commented on code in PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#discussion_r4665303033


##########
crates/kms/DEPENDENCIES.rust.tsv:
##########
@@ -0,0 +1,298 @@
+crate	0BSD	Apache-2.0	Apache-2.0 WITH LLVM-exception	BSD-2-Clause	BSD-3-Clause	BSL-1.0	CC0-1.0	ISC	LGPL-2.1-or-later	MIT	Unicode-3.0	Unlicense	Zlib

Review Comment:
   removed in 534375d571a1478318feff00d90e4e427456ce09



-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "xanderbailey (via GitHub)" <gi...@apache.org>.
xanderbailey commented on code in PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#discussion_r3965806677


##########
crates/kms/aws/src/client.rs:
##########


Review Comment:
   One KMS crate with KMS impls makes sense to me rather than a crate per provider. @blackmwk might have a preference here 



-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "xanderbailey (via GitHub)" <gi...@apache.org>.
xanderbailey commented on code in PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#discussion_r3957223720


##########
crates/kms/aws/src/client.rs:
##########


Review Comment:
   I don't know if this should be a whole new crate or just a feature flag, opendal backends we just feature flag WDYT?



-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "zakariya-s (via GitHub)" <gi...@apache.org>.
zakariya-s commented on code in PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#discussion_r3957678944


##########
crates/kms/aws/src/config.rs:
##########
@@ -0,0 +1,147 @@
+// 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.
+
+use std::collections::HashMap;
+
+use aws_sdk_kms::types::{DataKeySpec, EncryptionAlgorithmSpec};
+use iceberg::{Error, ErrorKind, Result};
+
+/// Catalog property selecting an AWS profile.
+pub const AWS_PROFILE_NAME: &str = "profile_name";
+/// Catalog property selecting the AWS region.
+pub const AWS_REGION_NAME: &str = "region_name";
+/// Catalog property containing a static AWS access key ID.
+pub const AWS_ACCESS_KEY_ID: &str = "aws_access_key_id";
+/// Catalog property containing a static AWS secret access key.
+pub const AWS_SECRET_ACCESS_KEY: &str = "aws_secret_access_key";
+/// Catalog property containing a static AWS session token.
+pub const AWS_SESSION_TOKEN: &str = "aws_session_token";
+
+/// Catalog property overriding the AWS KMS service endpoint.
+pub const KMS_ENDPOINT: &str = "kms.endpoint";
+/// Catalog property selecting the AWS KMS encryption algorithm.
+pub const KMS_ENCRYPTION_ALGORITHM_SPEC: &str = "kms.encryption-algorithm-spec";
+/// Default AWS KMS encryption algorithm, matching Iceberg Java.
+pub const KMS_ENCRYPTION_ALGORITHM_SPEC_DEFAULT: &str = "SYMMETRIC_DEFAULT";
+/// Catalog property selecting the size of keys generated by AWS KMS.
+pub const KMS_DATA_KEY_SPEC: &str = "kms.data-key-spec";
+/// Default AWS KMS generated key size, matching Iceberg Java.
+pub const KMS_DATA_KEY_SPEC_DEFAULT: &str = "AES_256";
+
+#[derive(Clone)]
+pub(crate) struct AwsKmsConfig {
+    pub(crate) endpoint: Option<String>,
+    pub(crate) encryption_algorithm: EncryptionAlgorithmSpec,
+    pub(crate) data_key_spec: DataKeySpec,
+}
+
+impl AwsKmsConfig {
+    pub(crate) fn from_properties(properties: &HashMap<String, String>) -> Result<Self> {

Review Comment:
   Nice! Makes things a bit nicer: 7596b6fdee6e41beba423a89b5db6c41c086b3ef



-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "github-actions[bot] (via GitHub) via issues" <is...@iceberg.apache.org>.
github-actions[bot] commented on PR #3173:
URL: https://github.com/apache/iceberg-rust/pull/3173#issuecomment-6699384659

   This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] feat(encryption/kms): Add AWS KMS client [iceberg-rust]

Posted by "github-actions[bot] (via GitHub) via issues" <is...@iceberg.apache.org>.
github-actions[bot] closed pull request #3173: feat(encryption/kms): Add AWS KMS client
URL: https://github.com/apache/iceberg-rust/pull/3173


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org