Reject provider query parameters for connector result passthrough (#62421)

## Why

The Responses client checks the gateway URL and request headers before
allowing connector result bodies to be attached. Provider query parameters
can also change the request while leaving those checks satisfied.

## What changed

Require an empty provider query parameter map, or no map, when selecting
a connector result destination. Check the ChatGPT credential variants
directly and retain the current auth owner for thread grant verification.

## Testing

Extend the client setup test to check that a custom provider URL is
ineligible even with refreshed ChatGPT credentials. Extend the enterprise
MCP lifecycle test to check that the configured provider receives the
account bearer token and executed tool-call metadata. Allow HTTP client
tests to cache a direct system proxy decision as well as a proxied route.

GitOrigin-RevId: 1e7e77ec6e65263eaff658ba39943ec51230d332
This commit is contained in:
ssetty-oai
2026-11-19 03:58:01 +00:00
committed by copyberry
parent fc483d4b4d
commit 770c38d0b1
4 changed files with 71 additions and 29 deletions
+5 -2
View File
@@ -646,8 +646,11 @@ fn cache_system_proxy_decision(request_url: &str, decision: SystemProxyDecision)
///
/// This is public only so tests in HTTP-client consumers can exercise system-proxy routing
/// deterministically on every supported platform.
pub fn cache_system_proxy_route_for_test(request_url: &str, proxy_url: String) {
cache_system_proxy_decision(request_url, SystemProxyDecision::Proxy { url: proxy_url });
pub fn cache_system_proxy_route_for_test(request_url: &str, proxy_url: impl Into<Option<String>>) {
let decision = proxy_url.into().map_or(SystemProxyDecision::Direct, |url| {
SystemProxyDecision::Proxy { url }
});
cache_system_proxy_decision(request_url, decision);
}
fn insert_system_proxy_cache_entry(