Repository navigation
RHINENG-32537: add override header to candlepin - #2363
dominikvagner merged 1 commit into
Conversation
This makes Patchman add a `x-rh-override-exposed` header to Candlepin requests which is needed after the API has moved to Akamai. The header value is consumed from the content sources candlepin secret. If this header is configured, the debug requests are turned off to prevent logging the secret value. And the Candlepin CA environment variable is made optional as it should no longer be used.
Reviewer's GuideThe PR adds optional Candlepin override-header support by loading the secret from configuration, attaching it to client requests, and disabling HTTP debug dumps whenever it is configured to avoid secret leakage. It also makes the CA secret optional, wires both values through deployment manifests, and adds request and configuration tests. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Sourcery assessment
Needs a human reviewer. When configured, the client sends the secret header on Candlepin requests, where it may enable override behavior; if that value is wrong or exposed, requests could have effects that reverting the client change would not undo. Disabling HTTP dumps reduces one leak path, but does not undo a request already processed by Candlepin.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2363 +/- ##
==========================================
+ Coverage 58.89% 59.04% +0.14%
==========================================
Files 151 151
Lines 9706 9712 +6
==========================================
+ Hits 5716 5734 +18
+ Misses 3386 3372 -14
- Partials 604 606 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
This makes Patchman add a
x-rh-override-exposedheader to Candlepin requests which is needed after the API has moved to Akamai. The header value is consumed from the content sources candlepin secret. If this header is configured, the debug requests are turned off to prevent logging the secret value.And the Candlepin CA environment variable is made optional as it should no longer be used.
Summary by Sourcery
Support Akamai-backed Candlepin requests with an optional override header while protecting its secret value.
New Features:
Bug Fixes:
Enhancements:
Deployment:
Tests: