Skip to content

GH-47338: [C++][Python] Remove deprecated string-based Parquet encryption methods #47339

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

EnricoMi
Copy link
Contributor

@EnricoMi EnricoMi commented Aug 15, 2025

Rationale for this change

Passing encryption keys to Parquet via strings is insecure. Users are encouraged to use the SecureString based methods introduced in #46017 instead. To enforce this migration, deprecated methods are removed.

What changes are included in this PR?

Remove deprecated string-based methods.

Are these changes tested?

Existing Parquet encryption tests.

Are there any user-facing changes?

C++ user code that passes encryption keys to Parquet is affected and has to be adjusted. Python user code is not affected.

This PR includes breaking changes to public APIs.

Copy link

⚠️ GitHub issue #47338 has been automatically assigned in GitHub to PR creator.

@EnricoMi
Copy link
Contributor Author

@pitrou Here is the follow-up on migrating Parquet encryption to SecureStrings. The first commit has been approved as part of #46017: #46017 (comment)

There is no change to the Python API and only minimal glue-code for Python KMS client to work with the new C++ KMS client API. Rolling secure strings out to PyArrow is out of scope of this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant