Commit Graph
6 Commits
Author SHA1 Message Date
hoelee 8925d10424 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.
2026-11-10 19:20:16 +08:00
hoelee e407c0daba feat(check): who-holds and host-shape, wired and honest about what they cannot see
Two new checks: the registry/mail/hosting card, and whether the address works with and
without www. Wiring forced three corrections that are the point of this commit:

- who-holds emitted a numeric checkedAt while the envelope contract is an ISO string;
  a second shape in the same results array breaks any staleness comparison.
- Linode's pattern matched 'akamai', so maybank2u.com.my - a bank behind Akamai's edge -
  was reported as sitting on Linode. Two brands, one owner, different platforms.
- A refused DNS query was printed as 'this domain does not resolve', which is a claim
  about the customer's domain rather than about our resolver. Transient codes now get
  one retry, and only NXDOMAIN is allowed to say a name does not exist.

about page now lists the real request budget (page + five HEAD hops + image + three
www-form requests + two registry), and the hub says five checks instead of three.
2026-11-10 18:45:36 +08:00
hoelee e4f50e9cf4 fix(check): judge the certificate where the visitor lands, and actually fetch the declared og:image
Two false-verdict classes, both found by an outside review of the v1 wording:

- TLS read the certificate of the host the visitor typed. When apex redirects to www,
  or a CDN name fronts the site, the report judged the redirector. It now walks the
  chain with HEAD requests (no page bodies) and judges the final address, keeps the
  typed certificate as evidence, and takes the worse of the two. A blocked or
  unreachable target stays 'not checked' with a reason, never 'broken'.
- The WhatsApp preview read og:image and printed its URL without fetching it. A 404,
  an HTML page, a 2 MB PNG or a WebP all looked like a working card. It now sends one
  guarded HEAD (1 KB GET fallback) and reports status, type and size.

Also: requestOnce takes an explicit Accept header so an image fetch is not answered
with text/html, and the about page no longer claims 'exactly one connection' now that
two bounded HEAD requests exist.
2026-11-10 16:25:00 +08:00
hoelee 5a7e67d0b8 fix(http): count redirects, not requests, against the chain limit
A chain of five redirects is six requests. The check failed it while net-guard
had just followed it to the end, so the tool blamed the visitor for something it
had already done. The budget now counts redirects, and an abandoned chain that
ends on a 3xx counts the redirect it was in the middle of. 99 tests.
2026-11-10 13:03:46 +08:00
hoelee bc29f2a963 fix: IPv4-first dialling, and a mail-less subdomain is not a broken domain
Two false results found by running the real checks, not by reading the code:
example.com reported its certificate as skipped because dns.lookup returned the
AAAA answer first and the local IPv6 route stalls; tools.hoelee.com reported
'Broken' email because a website-only subdomain publishes no MX, SPF or DMARC,
which is normal. resolvePublic now sorts IPv4 first, and applyHostRole points
such a host at its registrable apex (keeping .com.my intact).

96 tests green.
2026-11-10 13:00:52 +08:00
hoelee b2707f49f7 hoelee-check: v1 skeleton — net-guard, cache, ratelimit, router, pages, three checks
Zero-dependency Node service mounted at www.hoelee.com/check/.
net-guard pins the resolved IP, re-validates every redirect hop, and refuses
private ranges; the certificate is read off the same socket as the request.
Pages: hub, certificate, email auth, redirects/preview, about, report.
Argon review applied: optional-hardening wording, DKIM/SHA-1 root rules,
neutral not-evaluated, cache-before-scan, single-connection TLS.
2026-11-10 12:56:48 +08:00