Sanitize the rbd file cmd parameter logs during qemu-img convert (through Script)#11801
Sanitize the rbd file cmd parameter logs during qemu-img convert (through Script)#11801DaanHoogland merged 1 commit intoapache:4.20apache/cloudstack:4.20from shapeblue:sanitize-rbd-convert-cmdshapeblue/cloudstack:sanitize-rbd-convert-cmdCopy head branch name to clipboard
Conversation
|
@blueorangutan package |
There was a problem hiding this comment.
Pull Request Overview
This PR improves command parameter sanitization by refactoring existing VI URL sanitization and adding new RBD file format parameter sanitization. The changes protect sensitive information like authentication keys from being exposed in command line logs.
- Refactored existing VI URL parameter sanitization into a dedicated method
- Added sanitization for RBD file format parameters containing authentication keys
- Consolidated sanitization logic to improve code maintainability
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #11801 +/- ##
=========================================
Coverage 16.17% 16.17%
- Complexity 13295 13298 +3
=========================================
Files 5656 5656
Lines 498262 498282 +20
Branches 60464 60466 +2
=========================================
+ Hits 80582 80587 +5
- Misses 408710 408723 +13
- Partials 8970 8972 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
a784e50 to
7fdfc11
Compare
|
@blueorangutan package |
|
@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15317 |
|
@blueorangutan test |
|
@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-14574)
|
Description
This PR sanitises the rbd file cmd parameter logs during qemu-img convert (through Script).
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Verified logs using deploy instance and migrate volume on ceph/rbd storage.
How did you try to break this feature and the system with this change?