Repository navigation
fix(http): stop client fault rules when http is turned off - #227
Conversation
When the overlay connects with the http inspector or actions.http off, it deletes the client fault rules stored in sessionStorage and the interceptor stops applying stored rules for the rest of that load. With both on, rules still persist across reloads. Requests made before the overlay connects can still use stale rules once. Closes pangular-inspector#69
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe overlay now disables stored client HTTP fault rules when HTTP inspection or HTTP actions are off. The rule registry ignores rules stored while disabled and continues to retain and apply enabled rules across reloads. The documentation and tests cover these cases. ChangesHTTP client rule gating
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~12 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to Client HTTP fault rules now stop applying when either HTTP inspection or HTTP actions are off. Rules still persist across reloads when both are on. The change is small and tested, and no merge-blocking risk is evident. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change strengthens the development-time HTTP rule disable control. No new privilege escalation or cross-service exposure was established. Remaining uncertainty concerns existing startup, persistence-failure, and replacement-overlay behavior. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 3 | ❌ 1 | ❓ 1❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
Full details: Linked Issues checkExplanation The client requirements in Full details: Docstring CoverageExplanation Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 3 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
inspectors.httporactions.httpis off (it used to check onlyinspectors.http).Tests
Closes #69
Summary by CodeRabbit
Bug Fixes
Documentation