Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ParquetEncryptionMode, to permit unencrypted files in initial key rotation #43

Merged
merged 4 commits into from
Sep 12, 2024

Conversation

srh
Copy link
Member

@srh srh commented Sep 11, 2024

So now read key sets can be [Unencrypted, key1, key2] when starting out.

Unencrypted,
/// Means the file is footer-encrypted -- well, fully-encrypted. The same key is used for all
/// the columns too, in this implementation.
FooterEncrypted(ParquetEncryptionKeyInfo),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emm, if it is fully encrypted — maybe it should be named similarly? Cause now it's a bit contractionary, nope?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it should be called EncryptedFooter -- because it's referring to the parquet encryption spec "encrypted footer mode", as opposed to plaintext footer mode. Every encrypted file (under the parquet encryption spec as well as our code) is "fully" encrypted, except for the footer in plaintext encryption mode, and except for the key metadata block.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and the comment could be less confusing too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have changed the comment.

@srh srh requested a review from KSDaemon September 12, 2024 03:07
@srh srh merged commit 1963799 into cube Sep 12, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants