-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[python] Support CryptoKeyReader for Reader API in python clients #11447
Conversation
@rdhabalia - Can you take a look at this? |
I'm not sure how the python unit-tests would have passed without 57690f7 Also, I believe this documentation section https://pulsar.apache.org/docs/en/client-libraries-python/#end-to-end-encryption would benefit from an update if this PR is merged. |
Could you rebase to master for the fixed C++ CI? |
Sure. However this will result in a force push to this branch/pr |
Could you fix this error? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need documentation for this.
Hi @sanjivr Thanks for your great contribution. |
…1447) The Reader API in the python client does not support reading an encrypted message. This PR adds the same and leverages existing C++ Reader API which supports the same. * Updated `pulsar.Client.create_reader` to accept `crypto_key_reader` argument * Update existing unit test for Python encryption. (cherry picked from commit f7de12fa52e43f886404968691968b514831dac) Solved conflicts by modifing following files: - pulsar-client-cpp/python/pulsar_test.py - pulsar-client-cpp/python/src/config.cc
…ache#11447) ### Motivation The Reader API in the python client does not support reading an encrypted message. This PR adds the same and leverages existing C++ Reader API which supports the same. ### Modifications * Updated `pulsar.Client.create_reader` to accept `crypto_key_reader` argument * Update existing unit test for Python encryption.
Motivation
The Reader API in the python client does not support reading an encrypted message.
This PR adds the same and leverages existing C++ Reader API which supports the same.
Modifications
pulsar.Client.create_reader
to acceptcrypto_key_reader
argumentVerifying this change
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changesDocumentation
For contributor
For this PR, do we need to update docs?
No. These updates will be picked up automatically by pdoc as described at https://pulsar.apache.org/docs/en/client-libraries-python/
For committer
For this PR, do we need to update docs?
If yes,
if you update docs in this PR, label this PR with the
doc
label.if you plan to update docs later, label this PR with the
doc-required
label.if you need help on updating docs, create a follow-up issue with the
doc-required
label.If no, label this PR with the
no-need-doc
label and explain why.