#69808·teleport

Make the Application Service upstream response-header timeout configurable

Author: SeeMyPingCreated Sep 29, 2026Updated Oct 1, 2026
Labelsfeature-requestapplication-access

What would you like Teleport to do?

Allow operators to configure how long the Application Service waits for an HTTP application to start sending response headers, via a new app_service.response_header_timeout option in teleport.yaml:

yaml
app_service:
  enabled: true
  response_header_timeout: 3h

Today this limit is hard-coded to 1h (responseHeaderTimeout in lib/srv/app/transport.go, raised to 1h in #66647). The proposal keeps 1h as the default when the option is unset, so existing deployments are unaffected, and rejects negative values at startup.

The setting would be service-wide, alongside allowed_hosts / denied_hosts, and would not change the app resource, so no proto or API changes.

What problem does this solve?

Some HTTP applications legitimately take longer than the set limit to send response headers, and the only way to change this right now is to recompile Teleport.

The reverse also holds: operators who want wedged upstreams to fail faster than 1h have no way to lower the limit.

If a workaround exists, please include it.

None within Teleport. The only options are patching and rebuilding Teleport, or changing the application to send headers early (e.g. streaming a response), which isn't always possible.

I have a small change ready (config field → servicecfg.AppsConfig → ConnectionsHandlerConfig → HTTP transport, plus config tests and a config-reference docs entry) and can (re)open a PR if this approach is acceptable.

This issues was translated by Deepl, thanks.