feat(check): seven checks, and the one picture worth having
Adds mail-transport (MTA-STS + policy file, TLS-RPT, BIMI) and hardening (compression, CAA vs the issuing CA, cookie flags, version banners). Wiring them exposed a real gap: net-guard pinned accept-encoding to identity, so the compression question could only ever be answered 'not measured'. requestOnce now takes acceptEncoding, decompresses, and returns both the wire size and the decoded size - hoelee.com measures 39.6 KB against 119.4 KB. The hub gets a CSS trust-flow diagram instead of a picture: four boxes and three arrows cost no request, stay sharp, and can be corrected without re-exporting anything. The 1200x630 social card is drawn in HTML and screenshotted, because a diffusion model renders 'technical' as soft glyph soup that turns to mud at WhatsApp thumbnail size.
This commit is contained in:
1 parent
e407c0daba
commit
8925d10424
12 files changed
+3299
-34
No files matched your search
@@ -30,7 +30,7 @@ import `node:http`/`node:https` directly, must not use the global `fetch`, and m
|
||||
them is a finding against the visitor's site. Render it neutral (slate, no red, no "!"), and count
|
||||
it separately in the summary ("2 verified, 1 skipped by firewall").
|
||||
5. **Never claim what the data cannot support.** The exact wording rules are in `SPEC.md` §5; the
|
||||
five that get broken most often:
|
||||
seven that get broken most often:
|
||||
- DKIM: "No key found among the 13 common selectors; a custom selector cannot be found from DNS alone."
|
||||
Never "DKIM is not configured".
|
||||
- TLS: judge signature algorithms on the **leaf and intermediates only** — RFC 5280 exempts a
|
||||
@@ -54,7 +54,7 @@ import `node:http`/`node:https` directly, must not use the global `fetch`, and m
|
||||
```js
|
||||
// every check module exports exactly this
|
||||
export async function check(input, { lookup, now = Date.now(), cache } = {}) -> {
|
||||
id: 'who-holds' | 'mail-auth' | 'tls' | 'http' | 'host-shape',
|
||||
id: 'who-holds' | 'mail-auth' | 'mail-transport' | 'tls' | 'http' | 'host-shape' | 'hardening',
|
||||
state: 'ok' | 'warn' | 'fail' | 'not-evaluated',
|
||||
summary: string, // one plain-English line for a non-technical owner
|
||||
evidence: Array<{label, value, note?}>,
|
||||
|
||||
Reference in new issue
Block a user