Repository navigation
[fix][fn] Only load crypto_key_reader for python function when cryptoKeyReaderConfig is provided - #24783
Merged
Conversation
10 tasks
…pto-reader # Conflicts: # pulsar-functions/instance/src/main/python/python_instance.py
Replace the public/private key path check with an early return for a spec that has neither a reader class nor a config, so a partial default-reader config still logs an error instead of silently disabling encryption, and cover get_crypto_reader() with unit tests.
merlimat
approved these changes
Oct 22, 2026
Contributor
|
Hi @jiangpengcheng, thanks for this fix. It's still needed on master: an unset I pushed two commits to your branch to get it ready to merge:
Let me know if that works for you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #24782
Motivation
The python function will try to load crypto_config from
crypto_spec.cryptoKeyReaderConfigeven it's empty or None, which will show an un-expected error logFailed to load the crypto key reader from speModifications
check the
crypto_spec.cryptoKeyReaderConfigbefore load itVerifying this change
Make sure that the change passes the CI checks.
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: jiangpengcheng#48