[feature]: make HTTP read header timeout configurable #7232
Labels
config
Parameters/arguments/config file related issues/PRs
enhancement
Improvements to existing features / behaviour
good first issue
Issues suitable for first time contributors to LND
P3
might get fixed, nice to have
REST
Is your feature request related to a problem? Please describe.
One of the new linters has a rule to detect potential problems with intentionally slow clients:
G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server (gosec)
Describe the solution you'd like
We should add the
ReadHeaderTimeout
config value everywhere we use ahttp.Server
(non-exhaustive list of examples: REST proxy server, pprof server, let's encrypt cert server) and also make the value globally configurable.The text was updated successfully, but these errors were encountered: