BE: Prevent the masking of externally-provided references in Kafka Connect config#1886
BE: Prevent the masking of externally-provided references in Kafka Connect config#1886nkachami wants to merge 2 commits into
Conversation
|
AI Summary The issue addresses a problem where Kafka Connect config-provider references in connector configurations were being masked, potentially hiding sensitive information. The proposed solution modifies |
📝 WalkthroughWalkthrough
ChangesConfig-provider reference passthrough in KafkaConfigSanitizer
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Hi nkachami! 👋
Welcome, and thank you for opening your first PR in the repo!
Please wait for triaging by our maintainers.
Please take a look at our contributing guide.
|
@Haarolean Can you please review this and share your feedback if any? @nkachami works with me and we tested this, and have high confidence that it will work as expected without breaking anything We are open to make changes as needed baced on feedback and/or share any additional evidence you may need. if any issue comes from this, we'll push a follow up with high priority, just tag us (we'll also watch the repo) 🙏 Thanks as always for your time and support :) |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
@Haarolean This failure seems unrelated to the change at hand. Could you please re-try the workflow and/or merge this PR when ready? Thanks as usual! As an aside I was just telling @nkachami that you cannot merge until he adds the cute animal picture :) |
|
Rolo has been added 🐱 |
|
We need to add a Mandatory check for the animal picture |
Fixes #1887
What changes did you make? (Give an overview)
Made changes to KafkaConfigSanitizer.java and KafkaConfigSanitizerTest.java to review credential based keys' values to confirm they are not a externalized-secret reference.
Is there anything you'd like reviewers to focus on?
Regex Pattern not overstepping into general password domains.
How Has This Been Tested? (put an "x" (case-sensitive!) next to an item)
Checklist (put an "x" (case-sensitive!) next to all the items, otherwise the build will fail)
Check out Contributing and Code of Conduct
A picture of a cute animal (not mandatory but encouraged)
Summary by CodeRabbit
Summary by CodeRabbit
${file:...},${vault:...},${env:...}), while continuing to obfuscate other secret-like values.Screenshots Proving Functionality:
Config pre submit:
Route to task screen for a refresh after submitting (could be any screen):
Come back to config:
Normal passwords that do not match the exact regex pattern of ${provider:path/to/secret:secret-key} still looks like BAU functionality: