From 91e35ea42b3b1d366f08f8d0c16c6c379d732ae2 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Wed, 7 Oct 2026 10:02:42 -0400 Subject: [PATCH 1/5] fix(apache): Send HSTS on Apache-generated redirects and errors, not only on successful responses `Header set` applies only to responses Apache doesn't generate itself, so redirects and errors from mod_rewrite and access control lacked the header at the origin. Cloudflare's HSTS setting currently adds it at the edge. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01XB7xnMp5MnC8no9eDkui8n --- salt/apache/files/sites/docs.conf.include | 2 +- salt/apache/files/sites/wordpress.conf.include | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/apache/files/sites/docs.conf.include b/salt/apache/files/sites/docs.conf.include index 8016d1d5..27a44589 100644 --- a/salt/apache/files/sites/docs.conf.include +++ b/salt/apache/files/sites/docs.conf.include @@ -89,7 +89,7 @@ SetEnv BANNER /includes/banner_live.html # https://httpd.apache.org/docs/current/howto/ssi.html#configuring AddOutputFilter INCLUDES .html - Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" + Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" # docson needs unsafe-eval and frame-ancestors. infrastructure uses Google Fonts. standard, infrastructure, and public-private-partnerships use