API, Core, Spark 4.1: Add key_metadata and encrypted write support for StatisticsFile - #17417
API, Core, Spark 4.1: Add key_metadata and encrypted write support for StatisticsFile#17417gaborkaszab wants to merge 1 commit into
Conversation
|
Notes:
Potential follow-up: do the same changes for partition statistics files. Note, a spec change is required for that as |
|
In general, SGTM; it'd be good to have all table files encrypted and tamper-proofed. |
|
Thinking more about this, there could be a problem. If StatisticFile structs are kept in the metadata.json file (and not in a manifest/list file), the encryption key etc would be exposed in the |
|
and the encrypted |
|
Yeah I think we have an issue here. I don't think we can just put the key metadata in plain text in metadata.json ? |
|
Yep, the key metadata keeps the encryption key in the open.. It can be encrypted by a "key encryption key" - like we do for the snapshot (manifest list file) keys. But then we have a storage issue, because we also need a pointer to the "key encryption key". For snapshots, we don't have a A (technically) straightforward solution would be to add a There might be less straightforward solutions that don't require spec changes, but they either are looking not great (like packing everything needed inside the |
|
Thanks for pointing this out @ggershinsky and @RussellSpitzer ! |
No description provided.