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