A pentest shows Jenkins is behind a reverse proxy but the "It appears that your reverse proxy set up is broken" warning is shown and some redirects go to `http://`. What do you fix?
IntermediateScenarioCredentials & security
Answer
Situation read → The proxy does not forward the right headers, or the Jenkins URL is wrong.
What I'd do →
- Set
unclassified.location.url: https://jenkins.example.com/in JCasC. - Configure the proxy to pass
Host,X-Forwarded-Proto: https,X-Forwarded-Port: 443andX-Forwarded-For, and to proxy WebSocket upgrades. - For nginx:
proxy_set_header X-Forwarded-Proto $scheme;andproxy_redirectcorrect; for ingress-nginx the defaults usually work with the URL set. - Enable HSTS at the proxy.
Why → Jenkins builds absolute URLs from its configured URL and forwarded headers.
Interview tip → Mention WebSocket agents also need upgrade headers through the proxy.
More on Credentials & security
What credential types does Jenkins support out of the box?BeginnerWhat is the difference between Global and System credential scope?IntermediateHow do folder-scoped credentials help multi-team controllers?IntermediateHow does Jenkins mask secrets in logs and what are its limits?AdvancedWhat authorization strategies are available?IntermediateWhat are the key permissions to understand in matrix auth?Intermediate