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
+7
-2
@@ -28,9 +28,11 @@ const COMMIT = process.env.APP_COMMIT || 'dev';
|
||||
const loaders = {
|
||||
'who-holds': () => import('./checks/who-holds.mjs'),
|
||||
'mail-auth': () => import('./checks/mail-auth.mjs'),
|
||||
'mail-transport': () => import('./checks/mail-transport.mjs'),
|
||||
tls: () => import('./checks/tls.mjs'),
|
||||
'http': () => import('./checks/http.mjs'),
|
||||
'host-shape': () => import('./checks/host-shape.mjs')
|
||||
'host-shape': () => import('./checks/host-shape.mjs'),
|
||||
hardening: () => import('./checks/hardening.mjs')
|
||||
};
|
||||
const modules = {};
|
||||
for (const [id, load] of Object.entries(loaders)) {
|
||||
@@ -45,7 +47,10 @@ for (const [id, load] of Object.entries(loaders)) {
|
||||
}
|
||||
|
||||
const STATIC = {
|
||||
'/assets/style.css': { file: 'public/style.css', type: 'text/css; charset=utf-8' }
|
||||
'/assets/style.css': { file: 'public/style.css', type: 'text/css; charset=utf-8' },
|
||||
// The link-preview card. 1200x630, drawn in HTML and screenshotted, so it carries real type
|
||||
// instead of the soft glyph soup a diffusion model produces at thumbnail size.
|
||||
'/assets/og.png': { file: 'public/og.png', type: 'image/png' }
|
||||
};
|
||||
|
||||
function send(res, status, headers, body) {
|
||||
|
||||
Reference in new issue
Block a user