How this site is secured
This site is static files. It has no accounts, forms, database or server code of my own, so there is little to steal. It sets no cookies. The theme you pick and a flag that stops the boot animation replaying stay in your browser's storage and never reach me.
What could go wrong
- A private file gets published. Cloudflare used to publish the whole repo, and one ignore file stood between my private notes and a public URL. Brand source pages got through it once. Now only the build output is deployed, so a file outside that output has no route to the site.
- Someone changes the site. A stolen GitHub or Cloudflare login could do it, and so could a bad build dependency. Nothing on this page stops that. They could reach this site's visitors, but they'd find no stored data, because the site holds none.
- Injected script runs in your browser. The content security policy below allows scripts from this site alone, with no inline code.
- Another page frames this one to trick your clicks. The policy forbids framing.
Cloudflare handles every request, keeps its own logs and could change what it serves. I accept that trust in exchange for not running servers. It also adds a bot detection script to each page, which this plan can't turn off. The policy blocks it, so your browser console shows one error and nothing runs.
What each header does
| Header | What it does here |
|---|---|
Content-Security-Policy | Blocks everything by default, then allows scripts, styles, images and fonts from this site. Images may also be data: URLs, which the stylesheet uses for its textures. |
Strict-Transport-Security | Tells browsers to use HTTPS for two years. Browsers already require it for every .dev domain, so this is a backstop. |
X-Content-Type-Options | Stops browsers guessing a file's type, so a text file can't run as a script. |
Referrer-Policy | Tells other sites which domain you came from, without the full address. |
Permissions-Policy | Turns off the camera, microphone, location and similar features, which this site has no use for. |
Cross-Origin-Opener-Policy | Keeps this page in its own browsing group, away from windows other sites open. |
Cross-Origin-Resource-Policy | Stops other sites loading these files into their pages. |
Fonts are self-hosted, so a visit here tells no font provider about you. A test on every pull request loads each page and fails if a resource is blocked or comes from another site.
The domain
DNSSEC signs the domain's DNS answers, so a resolver that checks can tell if someone forged them.
A CAA record limits who can issue HTTPS certificates for it to the authorities Cloudflare uses.
For email, SPF and DKIM say which servers may send as @wmtsoi.dev, and a DMARC
policy collects reports on mail that fails those checks. It only reports for now; once the
reports are clean, it will tell receivers to reject that mail.
What I left out
- A PGP key. This site holds no user data, and an unused key is worse than none. I'll add one if a researcher asks or the site starts holding data.
- A bug bounty. This is a personal site, so I can offer thanks and a credit here if you'd like one.
Reporting a problem
Email security@wmtsoi.dev, in English or French. I read those myself. The machine-readable version is at security.txt.
In scope: this site and what it serves. Out of scope: Cloudflare and GitHub themselves, which have their own programmes, along with denial of service and social engineering. Please test without harming the site or its visitors.
The lesson I kept: check what your host publishes. My repo was private the whole time, and that protected nothing once the host copied its files to a public URL.