Skip to content

feat(examples): add encryption round-trip example#2670

Open
aarushigupta132 wants to merge 2 commits into
apache:mainfrom
aarushigupta132:feat/encryption-example
Open

feat(examples): add encryption round-trip example#2670
aarushigupta132 wants to merge 2 commits into
apache:mainfrom
aarushigupta132:feat/encryption-example

Conversation

@aarushigupta132

@aarushigupta132 aarushigupta132 commented Jun 18, 2026

Copy link
Copy Markdown

Which issue does this PR close?

Related to the encryption work tracked in #2034.

What changes are included in this PR?

Adds a new example under crates/examples/ demonstrating the encryption KMS round-trip end-to-end.
Intended as user-facing documentation of the typical write-then-read flow for encrypted Iceberg data.

Run with:

cargo run --example encryption-round-trip -p iceberg-examples

Are these changes tested?

Verified locally:

  • make check passes (fmt, clippy, toml, machete)
  • The example runs

No library code is modified, so existing unit tests are unaffected.

Demonstrates DEK generation, KEK wrapping via MemoryKeyManagementClient,
and AES-GCM encrypt/decrypt round-trip.
@aarushigupta132 aarushigupta132 marked this pull request as ready for review June 18, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant