fix: reject malformed provider endpoint hosts - #1439
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 11, 2026, 10:05 AM ET / 14:05 UTC. Summary Reproducibility: yes. at source level: current main’s shared validator lacks decoded whitespace/control rejection, and the focused inputs exercise that exact path for both providers. The review did not run tests because the checkout was required to remain byte-for-byte read-only. Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the centralized decoded-host validation with its focused tests, preserving valid arbitrary HTTPS proxy/test hosts and the existing opt-in provider-owned-host policy. Do we have a high-confidence way to reproduce the issue? Yes at source level: current main’s shared validator lacks decoded whitespace/control rejection, and the focused inputs exercise that exact path for both providers. The review did not run tests because the checkout was required to remain byte-for-byte read-only. Is this the best way to solve the issue? Yes. Adding the checks once in the existing shared validator is the narrowest maintainable fix and avoids provider-specific validation drift. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1bb6d107664a. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Validated exact head
|
Summary
Verification
swift test --filter 'AlibabaCodingPlanSettingsReaderTests|MiniMaxEndpointOverrideSettingsTests'(28 tests)make checkautoreview --mode branch --base origin/main(clean)