Skip to content

[Python] Not able to decrypt the parquet file encrypted using c++ arrow code #45934

Answered by adamreeve
basu45 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @basu45. In your C++ example you are directly setting a footer key using the low-level encryption API. This isn't compatible with PyArrow, which only exposes the higher level "key management tools" API. With this API, the private_key you have configured in your InMemoryKmsClient isn't the key that decrypts Parquet data, but is instead used to decrypt keys that have been randomly generated by the Arrow library and stored encrypted in the key metadata.

There is a design document that describes this API at https://docs.google.com/document/d/1bEu903840yb95k9q2X-BlsYKuXoygE4VnMDl9xz_zhk/edit?usp=sharing.

You'll need to also use the key management tools API when writing files in C++ if you n…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by assignUser
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment