| Hi Jeffrey Buchbinder, thank you for taking the time to make a contribution to puppet! The issue of HSTS comes up from time to time, because scanners like Nessus flag puppetserver's port 8140. For example, see https://www.reddit.com/r/Puppet/comments/l7vrrf/puppet_security_scan_findings_for_hsts_on_8140/. However, my understanding is that the header should only be included in web server responses to protect against MITM attacks in cases where a browser connects to an HTTP URL and the server redirects to HTTPS. Puppetserver doesn't accept HTTP requests or redirect in that way, so HSTS isn't needed (since the attack it's protecting against isn't possible). A second issue is the code in lib/puppet/http is used by the agent to make HTTP client requests. The server-side HTTP handling is contained in the https://github.com/puppetlabs/puppetserver repo. So if wanted to add something to puppetserver responses, it would need to be done there. Thanks again for taking the time to submit a pull request! |