-
nginx-config-auditor v1.2.0
Stablereleased this
2026-10-16 19:57:49 -07:00 | 21 commits to master since this release- Includes are followed (globs too) and the merged tree is audited, so headers or TLS settings set in an
included snippet no longer produce false "missing" findings in every file. A directory with an
nginx.confis audited from it (files it never includes are listed as INFO);--localand--dump
auditnginx -Toutput;--dockernow runsnginx -Tinside the container (docker cp as fallback). - Security headers are checked per server, with http-level headers inherited exactly as nginx does.
- New checks:
add_headerredefinition in a location dropping inherited security headers, alias path
traversal (location/alias trailing-slash mismatch),valid_referers none,Host $http_host,
$uri/$document_uriin headers or redirects, unanchored Origin/Referer regexes, multi-line header
values, security headers withoutalways, short HSTS max-age. - A real parser (quotes, escapes,
${var}, multi-line directives); a config nginx can't parse exits 2. --fail-on(defaulthigh, the previous behaviour).- Installable as a package:
pipx install git+https://git.canutethegreat.com/CanuteTheGreat/nginx-config-auditor.git
puts anginx-config-auditorcommand on PATH (pyproject.toml, MIT license metadata). --versionflag.- Exit codes follow the shared convention: 0 = clean, 1 = findings at/above the gate, 2 = error or bad usage.
- Every tag now publishes a Forgejo release with this changelog, the wheel, the sdist and SHA256SUMS.
- CI installs the package with pip in a clean venv and checks
--version/--helpon every push.
Install
pipx install git+https://git.canutethegreat.com/CanuteTheGreat/nginx-config-auditor.git@v1.2.0 # or the wheel attached to this release: pipx install https://git.canutethegreat.com/CanuteTheGreat/nginx-config-auditor/releases/download/v1.2.0/nginx_config_auditor-1.2.0-py3-none-any.whl # or the single file (stdlib-only Python 3): curl -fsSLO https://git.canutethegreat.com/CanuteTheGreat/nginx-config-auditor/releases/download/v1.2.0/nginx_config_auditor.pySHA-256
769805c02d23162ef8d5f152bec2ded875213ba8a08bc33575bdbcb8cc1aff92 nginx_config_auditor.py 3465a0f82eaf573b39607e1dd8f4985142f6cf82f341b5209f51cf5f78dc0548 nginx_config_auditor-1.2.0-py3-none-any.whl d5e271c2afe5e1aabcdfc54350abfd75c0c61b434c66605796815fab7b4f1cb8 nginx_config_auditor-1.2.0.tar.gzDownloads
-
Source code (ZIP)
4 downloads
-
Source code (TAR.GZ)
6 downloads
- Includes are followed (globs too) and the merged tree is audited, so headers or TLS settings set in an