#security
12 notes · ← All notes
- Couple Court at /siam: a courtroom in the browserA showcase page for the Siam app with a pocket courtroom that rules in the page, then in one afternoon: a public jury, a verdict you can verify with WebCrypto, paw-print seals, share cards drawn on a canvas, and each judge speaking in its own voice.
- Making a document verifiable: canonical JSON, a hash, a signatureHow a verdict on /siam proves it was not edited: sort the keys so the same data always serialises the same way, hash it with SHA-256, sign the hash with Ed25519, check both in the browser with WebCrypto, and optionally anchor the hash in Bitcoin with OpenTimestamps.
- RabbitMQ lab: a second broker on shared partsA RabbitMQ lab at /rabbitmq built like the Kafka one, after first pulling the clock, rewind, story mode and toolbar out of Kafka into shared packages; a real RabbitMQ on the server with certificate login; and guided steps that loop with a draggable bar.
- RabbitMQ: running one in a container, with certificate loginHow the real broker behind /rabbitmq?mode=real is set up: config in conf.d, users and queues from definitions.json, password hashes made with openssl, EXTERNAL login by certificate name, a memory cap, and ports only on localhost.
- Kafka day: a simulated lab, a real cluster, and certificatesThe Kafka sub-project in one day: a deterministic simulator at /kafka, a real three-node KRaft cluster on a resized VM, client-certificate logins from the laptop, a build-your-own-Kafka course, and a run of fixes after actually using it.
- Kafka ACLs and authorization errorsHow Kafka decides who may do what: principals, resources, operations, deny-by-default, prefixed patterns, the permissions producers and consumers need, and what TOPIC_ and GROUP_AUTHORIZATION_FAILED mean.
- Logging in to Kafka and MySQL from a laptop with a client certificateA private CA, a client certificate, an SSH tunnel, and DataGrip: the command to run every time, the one-time setup, and every question that came up on the way.
- Running behind a reverse proxyWhat changes when Caddy or nginx sits in front of your app: client IPs, forwarded headers, http vs https, and origin checks.
- Automatic HTTPS with CaddyLet’s Encrypt, the ACME protocol, and a Caddyfile that gets and renews certificates by itself.
- HTTP status codes for error pagesThe handful of status codes a site actually shows, the 401 vs 403 difference, Basic auth, and making error pages part of the design.
- Managing secrets for a small deploymentWhere API keys and passwords should live, how to get them to a server without leaking them, and what to do when one leaks.
- SSH keys and knowing which machine you're onKey pairs, host keys, known_hosts, and the shell prompt as your most important piece of information.