mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
feat: add upstream proxy support to aiproxy for passthrough requests (#21512)
## Description Adds upstream proxy support for AI Bridge Proxy passthrough requests. This allows aiproxy to forward non-allowlisted requests through an upstream proxy. Currently, the only supported configuration is when aiproxy is the first proxy in the chain (client → aiproxy → upstream proxy). ## Changes * Add `--aibridge-proxy-upstream` option to configure an upstream HTTP/HTTPS proxy URL for passthrough requests * Add `--aibridge-proxy-upstream-ca` option to trust custom CA certificates for HTTPS upstream proxies * Passthrough requests (non-allowlisted domains) are forwarded through the upstream proxy * MITM'd requests (allowlisted domains) continue to go directly to aibridge, not through the upstream proxy * Add tests for upstream proxy configuration and request routing Closes: https://github.com/coder/internal/issues/1204
This commit is contained in:
Generated
+6
@@ -12157,6 +12157,12 @@ const docTemplate = `{
|
||||
},
|
||||
"listen_addr": {
|
||||
"type": "string"
|
||||
},
|
||||
"upstream_proxy": {
|
||||
"type": "string"
|
||||
},
|
||||
"upstream_proxy_ca": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Generated
+6
@@ -10809,6 +10809,12 @@
|
||||
},
|
||||
"listen_addr": {
|
||||
"type": "string"
|
||||
},
|
||||
"upstream_proxy": {
|
||||
"type": "string"
|
||||
},
|
||||
"upstream_proxy_ca": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user