Allow custom HTTP headers in API requests provided through the environment #9375
Labels
c-ct
Internal Customer Reference
c-sq
Internal Customer Reference
feature-request
Used for new features in Teleport, improvements to current should be #enhancements
What
Square requires connections to internal systems to transit through a BeyondCorp web proxy. Authentication is performed against this proxy by including a custom authentication cookie to proxied HTTP requests.
We'd like to be able to configure the teleport client to issue requests with these headers. Additionally, we'd like teleport to respect the existence of
https_proxy
andhttp_proxy
environment variables throughhttp.ProxyFromEnvironment
.How
all
http.Client
initialization should configure the client withProxy: http.ProxyFromEnvironment
.HTTP clients that fallback to insecure should allow doing so if either the request URL is a localhost address (current behavior) or if the proxy is a localhost address.
HTTP clients should look for an environment variable (suggested:
TELEPORT_WEBCLIENT_HEADERS
). When this variable is present, the headers contained within should be passed on through to HTTP client requests.Why
To get through Square's BeyondCorp authenticating proxy.
Workaround
Unfortunately no workaround exists.
The text was updated successfully, but these errors were encountered: