[58_maintenance] [parquet] Allow more encryption algorithms (#9203)#10351
[58_maintenance] [parquet] Allow more encryption algorithms (#9203)#10351mbutrovich wants to merge 1 commit into
Conversation
# 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. --> - Closes apache#9202. # Rationale for this change <!-- Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed. Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes. --> - Iceberg [spec](https://iceberg.apache.org/gcm-stream-spec/#encryption-algorithm) supports AES key sizes of 128, 192 and 256 bits. Iceberg Rust depends on `arrow-rs` for Parquet I/O, I'd like to start supporting AES 256 with this PR. # What changes are included in this PR? <!-- There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR. --> - `RingGcmBlockEncryptor` and `RingGcmBlockDecryptor` will pick AES-128 or AES-256 based on key size - Refactor `encryption_async.rs` and `encryption.rs` to test both AES-128 and AES-256 encrypted parquet files # Are these changes tested? <!-- We typically require tests for all PRs in order to: 1. Prevent the code from being accidentally broken by subsequent changes 2. Serve as another way to document the expected behavior of the code If tests are not included in your PR, please explain why (for example, are they covered by existing tests)? --> Yes, unit test and on AES-256 encrypted Parquet files defined in https://github.com/apache/parquet-testing/tree/master/data/aes256 # Are there any user-facing changes? <!-- If there are user-facing changes then we may require documentation to be updated before approving the PR. If there are any breaking changes to public APIs, please call them out. --> No (cherry picked from commit accb1cf)
|
Hm, what's the best way to tackle the MSRV issue? |
|
Testing a change that adds |
That made CI worse, I'll take a look in the AM. |
f5aa920 to
98f3911
Compare
|
#7290 somewhat fixed this in |
|
The failing MSRV check is not specific to this PR (which only touches Cause: no
Two fixes verified locally (
Questions for @alamb:
The C Data Interface (Java to Rust) failure appears unrelated (Java allocator leak). |
I think we should do this. |
This PR:
58_maintenanceline