-
http-header-auditor v2.0.0
Stablereleased this
2026-11-23 15:20:29 -08:00 | 2 commits to master since this release- Shared CLI contract across the Errant Solutions tools (docs/CLI-CONTRACT.md): exit 0 clean, 1 findings, 2 usage/input error, 3 unexpected runtime error (an uncaught exception used to be a traceback with exit 1). Exit codes this tool already documented for other cases are kept and marked legacy in the README.
- New
--quiet/-q: no stdout, exit code only (errors stay on stderr). - Changed (breaking for
--jsonconsumers):--jsonnow prints one object{"schema_version": 1, "tool", "version", "exit_code", "results": [...]}; the previous top-level list is now theresultsvalue, unchanged. Major version bump for that reason. - The JSON Schema of the
--jsonoutput is inschema/; contract tests (exit codes, JSON against the schema, quiet, stderr) run on every push, and the push trigger now covers every branch.
Install
pipx install git+https://git.canutethegreat.com/CanuteTheGreat/http-header-auditor.git@v2.0.0 # or the wheel attached to this release: pipx install https://git.canutethegreat.com/CanuteTheGreat/http-header-auditor/releases/download/v2.0.0/http_header_auditor-2.0.0-py3-none-any.whl # or the single file (stdlib-only Python 3): curl -fsSLO https://git.canutethegreat.com/CanuteTheGreat/http-header-auditor/releases/download/v2.0.0/http_header_auditor.pySHA-256
45ae3867c6cab653e72f5aba3b17771f6c2393e5c8f8deff4973e74d564de969 http_header_auditor.py cd697bd41bec79325c84ace14f18a8d33c74d0934661aabe2434253f326549fc http_header_auditor-2.0.0-py3-none-any.whl ea73d63a6d6c4f892cf7b2b2d6d49a76af8c659f28b043a6f6233e3dd8460712 http_header_auditor-2.0.0.tar.gzDownloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
http-header-auditor v1.2.1
Stablereleased this
2026-10-17 01:50:05 -07:00 | 18 commits to master since this release- Scores now match the Mozilla HTTP Observatory table (checked on 18 header profiles): a CSP with
unsafe-inlinefor styles only is no longer penalised as a script hole (it cost -20 and the grade),unsafe-evalalone is -10, a CSP withoutunsafe-*earns the +5/+10 bonus, cookies count their worst problem (session cookie without HttpOnly -30, without Secure -40, less under HSTS) instead of a capped sum. - Clickjacking:
X-Frame-Optionsvalues other than DENY/SAMEORIGIN (browsers ignore them) andframe-ancestors *no longer count as protection. Strict-Transport-Security: max-age=0(HSTS switched off) is treated as no HSTS; an unrecognised Referrer-Policy value is flagged.- Session-cookie detection uses name words, not substrings:
consider/author_prefare no longer "session cookies", and CSRF cookies (csrftoken,XSRF-TOKEN) that frameworks need scripts to read aren't flagged. - Tests: Observatory-table accuracy suite, mutation testing (nightly), claims ledger.
Install
pipx install git+https://git.canutethegreat.com/CanuteTheGreat/http-header-auditor.git@v1.2.1 # or the wheel attached to this release: pipx install https://git.canutethegreat.com/CanuteTheGreat/http-header-auditor/releases/download/v1.2.1/http_header_auditor-1.2.1-py3-none-any.whl # or the single file (stdlib-only Python 3): curl -fsSLO https://git.canutethegreat.com/CanuteTheGreat/http-header-auditor/releases/download/v1.2.1/http_header_auditor.pySHA-256
7288184b2c5ab4cda8b5548465d622cb1488fad61bb4ade2a29303e6e630acbc http_header_auditor.py 2f4ba049242b952bc34247f2732b08b74d39b8d09415413a8fa4e6c9681c1764 http_header_auditor-1.2.1-py3-none-any.whl e490915cb662595140ec8a23aceb85a1a65e55e4b48b9fd887b0ca9b68ff55e2 http_header_auditor-1.2.1.tar.gzDownloads
-
Source code (ZIP)
11 downloads
-
Source code (TAR.GZ)
14 downloads
- Scores now match the Mozilla HTTP Observatory table (checked on 18 header profiles): a CSP with
-
http-header-auditor v1.2.0
Stablereleased this
2026-10-16 19:57:45 -07:00 | 24 commits to master since this release- Score and grade (A+ to F) in the style of the Mozilla HTTP Observatory, with
--fail-on-grade. - New checks: HSTS preload-list eligibility, cookie
__Host-/__Secure-prefix rules and script-readable
session cookies, CORS (anAccess-Control-Allow-Originechoing any origin, with or without credentials),
Cross-Origin-Opener/Embedder/Resource-Policy, Subresource Integrity on cross-origin scripts/stylesheets,
Referrer-Policy strength, and the redirect chain (first hop must be HTTPS on the same host). - Exit codes now follow the shared convention:
--fail-on(defaultmissing) makes MISSING/FAIL
checks exit 1, and an unreachable target exits 2. 1.x exited 0 unless a--fail-on-*flag was given;
pass--fail-on neverfor the old behaviour. - Installable as a package:
pipx install git+https://git.canutethegreat.com/CanuteTheGreat/http-header-auditor.git
puts ahttp-header-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/http-header-auditor.git@v1.2.0 # or the wheel attached to this release: pipx install https://git.canutethegreat.com/CanuteTheGreat/http-header-auditor/releases/download/v1.2.0/http_header_auditor-1.2.0-py3-none-any.whl # or the single file (stdlib-only Python 3): curl -fsSLO https://git.canutethegreat.com/CanuteTheGreat/http-header-auditor/releases/download/v1.2.0/http_header_auditor.pySHA-256
09d436aceda87e7675597684402b481f3159ca232872a55e73fafe1cf5e7bab1 http_header_auditor.py a6e4dba875c30d1999b506911f3ccf023c6ad18afe32ec7c68e4511e6e68576f http_header_auditor-1.2.0-py3-none-any.whl 80a148d2a05da810918260f05b47fbfa05478b91e0aed5527f61c44a298c66c9 http_header_auditor-1.2.0.tar.gzDownloads
-
Source code (ZIP)
5 downloads
-
Source code (TAR.GZ)
8 downloads
- Score and grade (A+ to F) in the style of the Mozilla HTTP Observatory, with