changelog
Database prices leave out app operations
A cheaper database doesn't settle where I host my work app. In postgres / hosting, I compare keeping the app services on Render with moving them to Ubicloud. Render already runs the services. On Ubicloud, I would need more tooling for deploys and recovery. Database savings alone don't pay for that work.
Production stays where it is while I plan a staging comparison in Virginia. Each database would get the same scrubbed dump and the same page requests. I count enforced company SSO in the cost, and I would rehearse an upgrade and a failover before moving production.
For go / benchmarks, I compare a hot-path change against main with alternating benchmark runs. When timing is too noisy, allocation counts still show whether the change removes work. A faster path must produce the same output and keep the same input limits.
I assess security findings against a threat model
A scanner reports paths from untrusted input to code and data I own. In ai / security, I assess each finding against the adversaries in my threat model. Code in a check can be hostile even when I wrote the change. An agent's token grants limited access, not permission to act as an operator.
Each finding has an ID that connects it to a fix plan. I keep the reason for a fix in git before I close the finding in the scanner. When I accept a risk, I record why. The scanner's recommendation doesn't decide which risks I accept.
For go / json, I keep strict decoding for data my own programs write. Each external peer gets a named option set with tests for the rules I relax. A caller can see which decoding rules apply.
An agent follows a slow route from deploy to logs
An agent investigating a slow route must be able to follow the change to the deploy, then inspect the requests in that window. In apps / sockeye, I keep stable record IDs and report what each read leaves out. An agent can't reconstruct a request that I never recorded.
In web / charts, I select one time range across the plots and logs. Selecting buckets sets fixed start and end times in the URL. Links to logs preserve those times and the service filter. The next page shows the interval I selected rather than a moving last hour.
For web / ajax, I send one autosave request at a time for each input. If I pause while a save runs, the client sends the latest text after it finishes. An older response can't replace a newer save.
My servers accept web traffic only from Cloudflare
A CDN protects a hostname, but a scanner can find the origin IP address in certificate transparency logs. A client that connects to that address skips the edge rules. In unix / firewall, the cloud firewall accepts ports 80 and 443 only from Cloudflare IP ranges. Two ports across 22 ranges come to 44 rules.
The virtual machines in one region share one cloud firewall. So one rule change reaches every one of them, and a client that skips Cloudflare gets no connection.
Behind the edge, web / bot prevention drops
probes for /.env with custom WAF rules. web / server limits sets a 10-second header timeout on every Go
server. In git / todo, I document my directory layout for
task files.
A Go web service can boot as its own VM
cmd / uni boots one Go web service as a virtual machine guest with no operating system under it. The guest serves HTTP and queries Postgres. It runs no Linux, so it has no shell to log in to. I booted it on a 1-vCPU Ubicloud VM and then on a 2-vCPU one.
A platform patches Linux for me and adds a margin. A plain VM costs less, but I harden it myself. A guest has one binary and one open port. An application bug still hurts, but an attacker who finds it cannot run commands on the host.
In go / test, each test runs inside a rolled-back transaction so it touches no network. Once a week, sockeye clones its git backup to verify the repository, as git / restore rehearsals describes. sockeye also now tracks errors by fingerprint.
Declare the database view once, in Go
go / declarative views moves the SQL of a database view into Go. One list of field declarations generates the view and drives the filter UI, so only one copy of the SQL exists. web / css describes a stylesheet in five layers with a lint for class names. A style change on one page used to break another.
The job queue, pool, and test articles now say how a pool recovers after it loses a database connection, and what to do after editing a migration that already ran.
apps / sockeye changed the most. It is my own git forge, so when a 277 KB diff didn't display, I raised its patch limit to 2 MiB.
A health check must fail when the service is broken
In web / health checks, the health endpoint now reads data that the service uses. That endpoint blocks traffic to a new version until it passes, and it runs every minute after that.
One rule changed in unix / systemd. Each service runs
as its own system user, so app state and credentials stay out of my
home directory. A missing useradd step doesn't matter anymore,
because StateDirectory= makes systemd create the directory.
apps / sports also has a description of the sports content agent.