You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is great for applications that require mixed proxy usage (requests both internal and external). However, within an organization having an abundance of internal sub-domains (e.g. foo.example.com, bar.example.com, etc), every single known sub-domain must be included in the no_grpc_proxy/no_proxy list.
Solution
Support conventional wildcard entries within no_grpc_proxy/no_proxy. There are two ways to obtain multi-level sub-domain matching, whereby both have the same effect:
*.example.com: use *, although less common
.example.com: just prefix the domain with a ., most common
In both of these cases, foo.example.com, bar.qux.example.com, and example.com would match.
Secondarily, using no_proxy='*' effectively disables any and all proxy configurations. This is seen in request (linked below).
PR #1243 introduced proxy support, and preemptively both the
no_grpc_proxy
andno_proxy
configurations which dictate what hosts/domains should not be proxied. Currently, only strict equality is used to test if a host should not be proxied. See https://github.com/grpc/grpc-node/blob/%40grpc/grpc-js%400.7.0/packages/grpc-js/src/http_proxy.ts#L119This is great for applications that require mixed proxy usage (requests both internal and external). However, within an organization having an abundance of internal sub-domains (e.g. foo.example.com, bar.example.com, etc), every single known sub-domain must be included in the
no_grpc_proxy
/no_proxy
list.Solution
Support conventional wildcard entries within
no_grpc_proxy
/no_proxy
. There are two ways to obtain multi-level sub-domain matching, whereby both have the same effect:*.example.com
: use*
, although less common.example.com
: just prefix the domain with a.
, most commonIn both of these cases,
foo.example.com
,bar.qux.example.com
, andexample.com
would match.Secondarily, using
no_proxy='*'
effectively disables any and all proxy configurations. This is seen inrequest
(linked below).Additional references
request: request/request#1096
curl: curl/curl#1208 (comment)
GNU Emacs: https://www.gnu.org/software/emacs/manual/html_node/url/Proxies.html
The text was updated successfully, but these errors were encountered: