shangxinli opened a new pull request, #1207:
URL: https://github.com/apache/iceberg-cpp/pull/1207

   Part of #988 (step 7 of the task breakdown), following #1071.
   
   `EncryptingFileIO` is the `FileIO` of an encrypted table: the catalog's 
`FileIO` paired with the table's `EncryptionManager`. It mirrors Java's 
`EncryptingFileIO`.
   
   - Plain calls pass through to the wrapped `FileIO` unchanged, which covers 
unencrypted files and Parquet files (encrypted natively by the format).
   - `ForFile` / `ForKeyMetadata` return a decrypting view for a file whose key 
metadata is known (manifests, Avro data files, Puffin files). The view wraps 
the raw file in an `EncryptedInputFile` and decrypts it through 
`EncryptionManager::Decrypt`.
   - `NewEncryptingOutputFile` wraps a new output file through 
`EncryptionManager::Encrypt` and returns the `EncryptedOutputFile`, so the 
caller can record the generated key metadata once writing completes.
   - The Arrow I/O adapter unwraps an `EncryptingFileIO` for plain reads and 
writes, so Arrow file systems keep their fast path. Decrypting views are not 
unwrapped.
   
   Not in this PR: reading a manifest list by snapshot key id. That needs the 
manifest list key unwrap in the bundle-only `EncryptionUtil`, so it comes with 
the manifest list reader.
   
   Tests: unit tests with a recording `EncryptionManager` in `encryption_test`, 
and an AES GCM Stream write/read round trip through `StandardEncryptionManager` 
and the Arrow adapter in `crypto_test`.
   
   🤖 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]

Reply via email to