# Ed Stuurman - Full Site Documentation Archive
> Complete concatenated archive of stuurman.com for LLM ingestion, agent analysis, and retrieval.
> Canonical URL: https://www.stuurman.com
---
# About Ed Stuurman
- Role: Infrastructure & Reliability Engineer
- Location: Japan
- URL: https://www.stuurman.com/about/
## Summary
My path in infrastructure started in Europe, handling enterprise hardware escalations and kernel dump diagnostics at Hewlett Packard Enterprise. Since moving to Japan, my work has centered on carrier-grade messaging systems—scaling distributed logging, observability, and predictive email security platforms protecting millions of domains at Vade.
I ran Linux as my daily driver for 15 years starting in 2006 and have been daily driving a Mac for the past 5 years—though Linux remains the backbone of everything I run in production and across my homelab. My engineering approach has always been hands-on: I get genuine satisfaction from digging into complex, elusive problems—whether that’s tracking down a reverse-proxy header flaw, diagnosing a CPU microcode bug, or automating cloud infrastructure for my homelab with Terraform.
Outside of production systems, I like working with my hands and staying active outdoors. When I’m not testing new virtualization setups in my homelab, you’ll usually find me working on projects in the yard, out on the ski slopes, or building LEGO projects with my kid.
## Career History
### Enterprise Email Engineering — Confidential
- Period: November 2026 – Present
- Location: Japan
- Skills: Email, Infrastructure
- Joined a new enterprise email organization, currently in onboarding and knowledge transfer.
- Getting up to speed on the platform, operational processes, and customer-facing delivery workflows.
### Professional Sabbatical / Career Break — Self-Directed
- Period: October 2024 – October 2026 (2 yrs)
- Location: Japan
- Took a multi-year personal sabbatical dedicated to health recovery, family life, and intensive home landscaping and infrastructure projects.
- Balanced personal well-being with continuous self-directed technical focus, maintaining sharp expertise in high-volume systems architecture, email routing, and cloud infrastructure.
### Engineering Program Manager / Principal Messaging Engineer — Vade
- Period: June 2019 – September 2024 (5 yrs 4 mos)
- Location: Tokyo, Japan
- Progression: Customer Support Engineer → Principal Engineer → Engineering Program Manager
- Skills: AI, Email, Security, Observability, Docker, CI/CD, Infrastructure
- Spearheaded advanced engineering and program management for high-scale enterprise email security platforms protecting mail for millions of domains worldwide.
- Designed and scaled robust monitoring and logging architectures using the ELK stack (Elasticsearch, Logstash, Kibana) and Graylog, accelerating incident detection and minimizing MTTR.
- Conducted deep statistical accuracy and performance analyses across real-time blackhole lists (RBLs) to optimize filtering weights and platform accuracy.
- Built automated containerized services (Docker) and GitLab CI/CD pipelines with linting and unit testing to streamline continuous deployment.
- Partnered cross-functionally across global timezones to resolve tier-3 escalations and ensure carrier-grade service reliability.
### Server Response & Software Support Engineer — Hewlett Packard Enterprise (HPE)
- Period: September 2015 – November 2018 (3 yrs 3 mos)
- Location: Leixlip, Ireland
- Skills: VMware, Linux, Hardware, GPU, Windows Server, Networking
- Drove complex hardware and software escalations to root-cause resolution across HPE ProLiant BL, DL, ML, and XL server architectures.
- Investigated deep technical issues including minidump and kernel crash diagnostics, as well as GPU compute environments (NVIDIA Kepler and Maxwell architectures) for VDI and high-compute workloads.
- Provided high-tier software support across VMware vSphere, ESXi, and Microsoft Windows Server in complex multi-vendor enterprise environments (Cisco UCS, Dell PowerEdge).
- Coached and mentored technical peers in diagnostic methodologies, packet analysis with Wireshark, and fault isolation.
### Customer Advocate & Technical Support — OVHcloud (OVH)
- Period: December 2014 – July 2015 (8 mos)
- Location: Dublin, Ireland
- Skills: Cloud, OpenStack, Networking, Infrastructure
- Supported enterprise customers across public cloud infrastructure, bare-metal dedicated servers, and high-throughput networking.
- Represented OVH as brand ambassador at the OpenStack Summit in Vancouver.
- Delivered a technical presentation on Anycast IP load-balancing architecture at the OVH World Tour in the UK.
- Built trusted rapport with key clients, scaling several customer accounts from zero to over €100k+ in annual recurring cloud revenue.
### Technical Support Specialist — Google Nest (Voxpro)
- Period: August 2014 – December 2014 (5 mos)
- Location: Dublin, Ireland
- Skills: IoT, Networking, Hardware
- Provided specialized technical support and hardware diagnostics for Nest connected devices during the inaugural European market launch across Belgium, the Netherlands, and Luxembourg (Benelux).
- Diagnosed complex Wi-Fi networking, smart thermostat heating systems, and consumer IoT connectivity issues.
### Technical Support Analyst — Hewlett Packard (CPL Integrated Services)
- Period: February 2014 – August 2014 (7 mos)
- Location: Leixlip, Ireland
- Skills: Infrastructure, Windows Server, Systems
- Supported enterprise workstations, operating systems, and production systems for multinational corporate clients including AkzoNobel, Alcatel-Lucent, and Philips.
- Diagnosed and resolved complex application and corporate network incidents under strict enterprise SLAs.
## Peer Recommendations
### Peer Recommendation (MV)
“Thinking back on the 3 or so years that Ed and I worked together, the relationship that we built had a monumental impact on me personally and professionally. We were able to navigate complex situations with clear and direct communication and open feedback. Ed helped me see what is possible with motivation from a strong vision, clear strategy and goals. I was able to set the scene, sit back and watch Ed simply bloom.
Ed always stood out to me as one of the strongest examples I've ever seen as someone with a keen ability to learn, fixate on intricate, old, new and emerging technologies. Engrossing himself with them until he developed a deep understanding. Combined with a very practical and efficient work style, he is able to take on a high workload of complex activity.
Any time I invested in coaching or advising Ed was very well spent as he was quick to implement different approaches to his work. He has a tenacity, and a glow in him when he envisions something and is quick to execute to make it a reality.
Ed has a strong set of principals, his character is honorable and he accepts vulnerability to grow as a person. I was never left to wonder about his dedication and commitment to our goals, team and company. His authenticity gives him the capability to act as a coach and mentor which was pivotal to our teams development.
I would highly recommend Ed for roles that require tenacity, quick learning and high levels of technical and analytical proficiency.”
### Peer Recommendation (MS)
“When you think back to previous employment, there are always a few people that you miss working with. Ed is such a person and still remains one of my favorites colleagues to this day. Our work together was both as Hardware Engineers, but for different languages.
Even when working with a full team of technicians and engineers, Ed stood out as a "go-to" guy, as his technical ability and drive to learn always put in the front, even in a team of specialists. This is paired with a very open and cooperative personality, leading to frequent cases of knowledge exchange, improvement, talking shop, or simply friendly exchanges.
No matter what field Ed may be in, I can only imagine him as being at the center of it with 100% effort and anyone should be happy to have him join their team.”
### Peer Recommendation (AD)
“With much enthusiasm i recommend Ed to any IT job that are thinking on having him onboard.
Helping others and going the extra mile for the business needs are truly phenomenal.
When it comes to new hires and out of scope he is willing to help other people to improve themselves and learn them from his years of experience in the job field.
Have been working with Ed for sometime and every time a difficult IT related issue comes along Ed for me was first point of contact as i always got a clear view of the issue and a clear path forward.
He has a very special place for me as i learn so much from him and know he will go very far in life.”
### Peer Recommendation (YM)
“Ed is a serious guy with a professional attitude who is nice to work with. I'd work with him again with pleasure!”
### Peer Recommendation (PK)
“Ed has been a great Colleague at HPE and is very knoledgeable and reliable. He is also a great team player and always willing to help his peers. I would highly recomend Ed.”
### Peer Recommendation (MH)
“It was a pleasure to work with Ed on the very first days OVHcloud Public cloud customer support, more than 5 years ago. Everything had to be built from scratch and ED's curiosity, technicity and customer empathy were key to the success of what has quickly become the 3rd source of revenue for the company.
Fluent in multiple language, Ed was also very autonomous to write the technical content we were lacking. Looking forward to work with him again one day !”
### Peer Recommendation (MH)
“I had the pleasure of working with Ed for OVH, Ed is a talented, hard-working and friendly co-worker and a joy to work alongside.
Trustworthy and with great communication skills. If necessary he can translate technical terms to layman's language.
He is open to questions from as well co-workers, clients as managers of several levels and also gives great constructive feedback/advise. He is dedicated to all parts of his job.
In OVH he always went above and beyond in informing clients.”
### Peer Recommendation (DF)
“Ed was a great colleague to work with in HPE, always thinking ahead and very proactive, would recommend to any employer!”
---
# Articles Archive
---
# Six Access Points Is Too Many (On Default Settings): Planning Seven VLANs Without Losing My Mind
- URL: https://www.stuurman.com/blog/2026-11-11-six-access-points-seven-vlans-unifi-home-network-plan/
- Published Date: Nov 11, 2026
- Tags: Homelab, Networking, Security, Hardware, Architecture
- Description: Normal people plug in one ISP router and go outside. Here is my planned home network blueprint for six UniFi U6 In-Wall units, seven VLANs, two remote workers on quarantined corporate laptops, and smart plugs with the networking stack of a toaster.
> [!NOTE]
> **Blueprint Status (Planned Network Rollout)**: Like my recent [mail](/blog/2026-11-09-zero-port-homelab-mail-ses-s3-stalwart/) and [analytics](/blog/2026-11-09-zero-port-homelab-analytics-umami-lambda-s3/) write-ups, this is the **planned VLAN and Wi-Fi design** for our house as I finish consolidating onto a unified UniFi core and a single Proxmox VE host—written down *before* I inevitably lock myself out of a switch port at 11:30 p.m.
Normal homeowners set up Wi-Fi in about four minutes. They plug in whatever beige plastic router the fiber installer handed them, leave the network named `isp-router-8842`, tape an eighteen-character password to the side of the fridge, and go on to live happy, well-adjusted lives.
I, on the other hand, have **six UniFi U6 In-Wall access points**, a UDM Pro gateway, a Proxmox server, two people working remotely whose respective corporate environments have no business knowing the other exists, a slowly growing collection of smart-home gadgets that want to phone home to mysterious cloud buckets every twelve seconds, and a strong desire to never share a Layer 2 broadcast domain with a robot vacuum.
Here is how I'm planning the VLANs, switch ports, and radio layout so everything stays fast, isolated, and invisible.
---
## 1. Six Access Points Is Too Many (Until You Turn Half of Them Off)
Admitting you have **six** access points in a single house sounds completely unhinged until you picture how they're mounted.
Instead of bolting glowing flying saucers to the middle of every ceiling, our house uses six **UniFi U6 In-Wall (`U6-IW`)** units mounted **high up on the walls**—blending in like clean white wall plates while clearing every desk, monitor, and sofa in the room.
Because high-wall mounting gives the antennas unobstructed line-of-sight, the catch is what happens if you plug six of them in and leave the radio settings on **Auto**.
In consumer and prosumer Wi-Fi gear, "Auto Transmit Power" is almost universally polite phrasing for *"scream at the maximum legal regulatory limit."* Putting six full-power, unobstructed access points inside one home is like putting six tour guides with megaphones in the same living room, it's noisy:
1. **The Sticky Phone Problem**: You walk upstairs, your phone still hears the living-room AP faintly through the floor, and it stubbornly clings to that terrible signal like a toddler holding onto a doorframe—while ignoring the fresh access point two meters away.
2. **The `2.4 GHz` Traffic Jam**: The `2.4 GHz` band punches straight through walls and only has **three** non-overlapping channels (`1`, `6`, and `11`). Turn `2.4 GHz` on across six APs and you guarantee your own hardware will spend all day arguing with itself.
The planned fix is delightfully counterintuitive:
- **Turn `2.4 GHz` completely OFF on three of the six APs.** Only three spaced-out units get `2.4 GHz` enabled—pinned manually to Channels `1`, `6`, and `11` on Low power. The other three radios take a permanent vacation.
- **Dial `5 GHz` down to Low power for room-sized micro-cells.** With clear high-wall line-of-sight, dropping `5 GHz` transmit power to Low across all six units gives every room its own clean bubble on a dedicated non-overlapping channel, so phones and laptops roam crisply the moment you walk down the hall.
---
## 2. The Seven-VLAN Floorplan
To keep firewall logs readable at a glance without doing mental subnet math, every VLAN gets a matching third octet (`VLAN 20` = `10.0.20.0/24`):
| VLAN | Zone | Subnet | DNS Server | Client Isolation | Who Lives Here |
| :---: | :--- | :--- | :--- | :---: | :--- |
| **1** | **Mgmt / Infra** | `10.0.1.0/24` | Local Unbound | Off | UniFi gateway, switches, the 6 `U6-IW`s, UPS, and Proxmox host UI. **Zero Wi-Fi.** |
| **10** | **Home** | `10.0.10.0/24` | **Local Unbound** | Off | Personal laptops, phones, wired desktop PCs, Sonos, Apple TV, printer. |
| **20** | **Homelab** | `10.0.20.0/24` | Local Unbound | Off | Proxmox LXCs & VMs: Caddy (`*.home-lab.net`), Immich, Stalwart mail, GitLab, Home Assistant. |
| **31** | **Work 1** | `10.0.31.0/24` | `1.1.1.1` / `9.9.9.9` | **On** | Remote worker #1 (quarantined internet-only). |
| **32** | **Work 2** | `10.0.32.0/24` | `1.1.1.1` / `9.9.9.9` | **On** | Remote worker #2 (quarantined internet-only). |
| **40** | **IoT** | `10.0.40.0/24` | `1.1.1.1` | Off* | Smart TV panels, plugs, sensors, robot vacuums, appliances. |
| **90** | **Guest** | `10.0.90.0/24` | `1.1.1.1` | **On** | Friends & family visiting—with a welcome portal. |
*\*Left off on IoT only where local Matter/HomeKit bridges expect peer-to-peer discovery.*
### Putting Work Laptops in "Coffee-Shop Jail" (`VLAN 31` & `VLAN 32`)
When two people work remotely from home for different employers, their respective company laptops come pre-installed with corporate endpoint agents whose entire job description is being nosy—passively cataloguing local subnets, gateway MACs, neighbor tables, and DNS replies.
Putting `Work 1` and `Work 2` on their own separate, isolated VLANs with **Client Device Isolation** turned on—and handing them plain public DNS (`1.1.1.1`) instead of my local split-horizon **Unbound** server—gives both machines the exact network experience of sitting in a Starbucks across town from each other:
- Fast, reliable internet with zero visibility into our personal machines, home servers, or each other's work equipment.
- Typing `home-lab.net` on either work laptop resolves innocently to the **public AWS CloudFront static site**, never leaking internal `10.0.20.x` homelab addresses into corporate VPN telemetry.
### Shutting Off the Ceiling-Height Ports (Until Camera Day)
Each `U6-IW` has a 4-port Ethernet switch built into its bottom edge—including **`PoE` passthrough on Port 1**. When your APs are mounted high up on the wall, you obviously aren't plugging desktop PCs into them unless you want Ethernet cords dangling down the drywall like spiderwebs, *but* having PoE-capable switch ports already sitting near ceiling height is a huge ace up the sleeve for future PoE cameras:
- **Default All 24 Bottom Ports to `Disabled` Now, Enable `Port 1` Only Where Needed**: Using a shared `Disabled` Ethernet Port Profile in UniFi shuts off Ports 1–4 across all six `U6-IW`s today (while regular low-wall jacks get `VLAN 10`, `31`, or `32` directly on the central switch). Whenever a camera goes up near an AP later, flipping **only `Port 1`** back on—powered via upstream `PoE+` (`802.3at`) and locked to a zero-internet **`Cameras` / `IoT-No-WAN` VLAN**—powers and isolates the camera over a short patch run without pulling a single new cable back to the rack.
- **Smart TVs in `IoT`, Sonos on `Home`**: Smart TV panels (whose built-in OSes love phoning home with ad telemetry) belong on `VLAN 40 (IoT)`. **Sonos speakers and Apple TV**, on the other hand, stay on **`VLAN 10 (Home)`**—because Sonos's legacy `SSDP` discovery opens reverse connections on random high ports back to your phone, and life is far too short to spend Saturday night debugging multicast relays when someone just wants to play music in the kitchen. *(Meanwhile, Proxmox sits safely walled off on `VLAN 20`).*
---
## 3. Dodging "SSID Bloat" While Still Spoiling Guests
When people discover VLANs, the classic mistake is creating **one Wi-Fi network name per VLAN**.
The problem is Wi-Fi physics: every distinct SSID on a radio has to broadcast management "beacon" frames roughly ten times a second at the slowest legacy data rates. Broadcast six SSIDs across six access points and a surprising share of your airtime goes to access points clearing their throats to announce their own names—while turning everyone's phone Wi-Fi menu into a discovering Wi-Fi in an airport experience.
By combining band-splitting with UniFi's **Private Pre-Shared Keys (PPSK)**—where a single Wi-Fi network name drops devices onto different VLANs depending on which password they type—**no radio ever broadcasts more than three SSIDs**:
```mermaid
flowchart LR
subgraph FiveGHz["5 GHz Radios (All 6 U6-IWs — Low/Med Power)"]
S1["SSID 1: Home (WPA3)"] --> V10["VLAN 10: Home"]
S2["SSID 2: Work (WPA2 PPSK)"] -->|Password A| V31["VLAN 31: Work 1"]
S2 -->|Password B| V32["VLAN 32: Work 2"]
S3["SSID 3: Guest (Hotspot Portal)"] --> V90["VLAN 90: Guest"]
end
subgraph TwoFourGHz["2.4 GHz Radios (Only 3 U6-IWs — Ch 1, 6, 11)"]
S4["SSID 4: IoT (WPA2, PMF Off)"] --> V40["VLAN 40: IoT"]
end
```
Each SSID has a very specific personality:
- **`Home` (`5 GHz` · WPA3)**: Fast modern Wi-Fi for phones and laptops—and listed as the trusted SSID in my [**AlwaysRoute**](https://www.alwaysroute.com) WireGuard On-Demand profile so my phone automatically drops its VPN tunnel the moment I walk through the front door.
- **`Work` (`5 GHz` · WPA2 PPSK)**: One SSID, two passwords, two completely air-gapped VLANs—and no captive portal to confuse always-on corporate VPN clients.
- **`Guest` (`5 GHz` · UniFi Hotspot Portal)**: Since UniFi's gateway includes a built-in captive portal, visitors get a clean dark-mode welcome screen (and a polite per-client speed cap so a cousin's phone backing up 40 GB of vacation videos doesn't torpedo a call).
- **`IoT` (`2.4 GHz` only · WPA2, PMF Off, Fast Roaming Off)**: Because a smart plug from 2021 has the TCP/IP stack of a Pop-Tart and suffers a nervous breakdown the moment it sees WPA3 or `5 GHz` band steering.
---
## 4. Teaching Home Assistant to Talk to Toasters (Safely)
Isolating VLANs is easy; letting *just enough* traffic cross the border without turning your firewall rules into spaghetti is the tricky part. Two patterns keep the rule list tiny:
### One-Way Doors Between `Home` and `Homelab`
Devices on **`VLAN 10 (Home)`** can initiate connections into **`VLAN 20 (Homelab)`** on **DNS (`:53`)** for local `*.home-lab.net` resolution and **HTTPS (`:443`)** for Caddy (which fronts everything behind Authelia passkey login). Return packets flow back via standard `Established / Related` state—but **`Homelab` cannot initiate new connections into `Home`**. Even if a test container in the lab went sideways, personal laptops and phones sit behind a one-way mirror.
### The Two-Legged Proxmox Trick for Home Assistant & IoT
Smart-home protocols (HomeKit, Matter, Chromecast, ESPHome) love shouting across Layer 2 multicast (`mDNS`) to say *"Hello, I am a lightbulb!"*—traffic that routers intentionally refuse to forward across VLANs unless you enable mDNS reflectors that leak noisy broadcasts everywhere.
Because **Home Assistant** will run as a VM on Proxmox's VLAN-aware bridge (`vmbr0`), there is a much cleaner shortcut than fighting multicast routing: **give the Home Assistant VM two virtual network cards**:
1. **`net0` on `VLAN 20 (Homelab)`** *(with the default gateway)*: Serves the web UI cleanly behind Caddy and Authelia.
2. **`net1` on `VLAN 40 (IoT)`** *(no gateway)*: Sits directly on the IoT wire at Layer 2 so Home Assistant hears every bulb, plug, and sensor natively—while those IoT devices still have **zero routed path** into `Homelab` or `Home`.
Pair that with an **`IoT-No-WAN`** firewall group that blocks internet access for chatty local sensors and cameras once they're paired, and the toaster stays strictly in the kitchen where it belongs.
One honest caveat: the two-legged VM makes **Home Assistant itself** the only bridge between the IoT wire and the lab. That's the point—but it also means Home Assistant gets patched promptly and doesn't run anything it doesn't need.
---
## 5. Rollout Gameplan
Changing VLANs on a live house network while people are using the internet is an extreme sport, so the rollout order matters:
- [ ] **Step 1 — Carve Out VLANs & Trunk Proxmox First**: Enable VLAN-awareness on Proxmox `vmbr0` and verify management reachability on `VLAN 1` with a fallback switch port hardcoded to `VLAN 10` (the anti-lockout safety rope).
- [ ] **Step 2 — Bring Up `Work` (PPSK) & `Guest` (Hotspot)**: Test corporate VPN behavior on `VLAN 31` / `VLAN 32` and style the Guest welcome portal.
- [ ] **Step 3 — Tune the Six `U6-IW` Radios**: Disable `2.4 GHz` on three units, pin `Ch 1 / 6 / 11` on the remaining three, and step `5 GHz` power down per room while walking the house with WiFiman.
- [ ] **Step 4 — Lock the Firewall Zones Last**: Flip the default inter-VLAN drop rules from *Log* to *Drop* only after confirming AirDrop, printing, Caddy HTTPS, and WireGuard On-Demand handoffs all behave cleanly.
---
# Split-Horizon Homelab: A Public Showcase on CloudFront, a Private Core at Home, and Zero Open Ports
- URL: https://www.stuurman.com/blog/2026-11-11-split-horizon-homelab-architecture/
- Published Date: Nov 11, 2026
- Tags: Homelab, Architecture, AWS, CloudFront, Security
- Description: How home-lab.net is planned so the public sees a fast static site on CloudFront, while the same domain at home or over WireGuard leads to a private Proxmox core—without opening a single port on the home router.
> [!NOTE]
> **Blueprint Status (Planned Target Architecture)**: The public side of `home-lab.net` is live today on S3 and CloudFront. The private side described here—the Proxmox services, the WireGuard relay, and the mail pipeline—is **planned**, and comes online after the current network and server consolidation.
Every homelab eventually runs into the same dilemma when you want to show it off: open ports on your home router and accept a permanent background hum of port scans, or hide everything behind a VPN where nobody can see what you've built.
For `home-lab.net`, I'm taking a third route: **split-horizon**. The same domain name leads to two completely different places depending on where you're standing.
---
## 1. The Core Principles
1. **Zero open ports on the home router.** No port forwarding, no UPnP, no inbound exceptions. The router drops everything that arrives uninvited. (Our NURO line actually has a real public IPv4 address, so forwarding *would* work. I'm choosing not to—it would publish our home IP and tie the design to a feature most Japanese lines don't even offer.)
2. **A public showcase on the edge.** Visitors to `https://www.home-lab.net` get a static site served from S3 and CloudFront: hardware specs, topology, and write-ups, with nothing that touches the house.
3. **A private core at home.** On the home network—or on my phone over WireGuard—the same domain resolves to a Proxmox server in the closet, with the private services behind single sign-on.
---
## 2. Network Topology & Relays
```mermaid
flowchart TD
subgraph Public["1. Public Internet"]
Visitor["Public Visitor"] -->|"HTTPS"| CF["CloudFront + S3 (Static Showcase)"]
end
subgraph Bridge["2. AWS Tokyo Bridge (ap-northeast-1)"]
Mobile["Phones Away From Home"] -->|"WireGuard On-Demand"| WG["AlwaysRoute WireGuard Relay (Lightsail)"]
Sender["External Mail Senders"] -->|"SMTP 25"| SESIn["Amazon SES Inbound + Encrypted S3 Bucket"]
SESOut["Amazon SES Outbound Relay"] --> Recipient["External Recipients"]
end
subgraph Homelab["3. Home: Proxmox VE Host (Planned)"]
Caddy["Caddy Reverse Proxy (Wildcard TLS)"]
Auth["Authelia SSO (Passkeys)"]
DNS["Unbound (Split-Horizon DNS)"]
Apps["Private Services: Start Page, SearXNG, Immich, Stalwart, GitLab"]
ZFS[("OpenZFS Storage")]
end
WG -->|"Tunnel dialled OUT from home"| Caddy
Caddy <--> Auth
Caddy --> Apps
SESIn -->|"Outbound HTTPS pull"| Apps
Apps -->|"SMTP 587 relay"| SESOut
Apps --> ZFS
```
The trick in every arrow touching the house: **the connection starts from inside**. Nothing on the internet ever initiates a connection to the home router.
### The Tokyo Bridge: WireGuard Relay & SES Mail
Two small AWS pieces in Tokyo do the work an open port would normally do:
- **The WireGuard relay (`alwaysroute.com`).** The Proxmox host dials out a persistent WireGuard tunnel to a tiny, stateless Lightsail instance in Tokyo. Phones use WireGuard's On-Demand rules: on mobile data or someone else's Wi-Fi, they connect through the relay automatically; on our home Wi-Fi, the tunnel switches itself off. Only traffic for the homelab goes through the tunnel—everything else uses the normal internet connection. I'm spinning the relay out as its own project at [alwaysroute.com](https://www.alwaysroute.com), and wrote separately about [designing its logo](/blog/2026-11-10-designing-the-alwaysroute-logo-wan-lan-crossover/).
- **Mail through SES and S3.** The domain's `MX` record points at Amazon SES in Tokyo, which checks SPF, DKIM, and DMARC, then drops each message into an encrypted S3 bucket. At home, a small worker pulls new messages over outbound HTTPS and hands them to **Stalwart**, the local mail server. Outgoing mail goes back out through SES on port 587. If the homelab is down for a day, mail simply waits in S3. The full design is in the [zero-port mail write-up](/blog/2026-11-09-zero-port-homelab-mail-ses-s3-stalwart/), and the [Umami analytics pipeline](/blog/2026-11-09-zero-port-homelab-analytics-umami-lambda-s3/) uses the same pattern.
---
## 3. The Private Core: One Proxmox Host
Instead of spreading services across several power-hungry machines—a lesson I learned the expensive way when I [liquidated two-thirds of my server rack](/blog/2026-11-08-the-sunk-cost-of-homelab-sprawl-knowing-when-to-liquidate-silicon/)—the private side is planned around a single **Proxmox VE** host:
- **Caddy** terminates TLS for `*.home-lab.net` using a wildcard certificate issued over DNS (Route 53 DNS-01), so nothing needs to be reachable from the internet to get a valid certificate.
- **Authelia** puts one passkey login in front of every internal service.
- **Unbound** answers `*.home-lab.net` with the local Caddy proxy for anyone at home or on the tunnel; everyone else gets the public CloudFront answer.
- **Private services**: a browser start page, **SearXNG** for private search, **Immich** for photos, **Stalwart** and **Roundcube** for mail, and **GitLab CE** for code.
- **OpenZFS storage** managed directly by Proxmox—no separate NAS appliance—with fast NVMe mirrors for databases and mail, and bulk storage for the photo library.
Local AI (`ai.home-lab.net`) isn't part of this box. It's a later phase, waiting on a dedicated low-power Mac Studio, for reasons that come down to idle watts and electricity prices.
The start page itself, and how one Astro codebase builds both the public site and the private one, deserves its own post—so I'll leave it there for now.
---
## Closing: Two Sites, One Name
From the outside, `home-lab.net` is a quiet static website. From the couch, it's the front door to everything we run at home. The only things exposed to the internet are a CDN, a mail service, and a disposable relay in AWS—none of which are in our house.
It's a bit more plumbing than forwarding ports 80 and 443 and hoping for the best. But it means the router at home can say no to everyone, all the time, and nothing breaks.
---
# Two Lines That Cross (Without Looking Like a Shuffle Button): Making the AlwaysRoute.com Logo
- URL: https://www.stuurman.com/blog/2026-11-10-designing-the-alwaysroute-logo-wan-lan-crossover/
- Published Date: Nov 10, 2026
- Tags: Design, Networking, Homelab, AI, Reflection
- Description: After 49 attempts on the home-lab.net logo, I needed one more mark for the bridge that connects my homelab to the outside world. Here is how we dodged VPN clichés and accidental music-player icons.
After twelve rounds and 49 little vector files to land on the three-bar logo for [**home-lab.net**](/blog/2026-11-07-i-cant-draw-so-i-hired-a-robot-design-team/), I genuinely thought my brief, accidental career as an art director was over.
Then I decided that the networking idea holding my planned homelab setup together—a small cloud relay that lets my phone and laptop reach home from anywhere without opening a single port on my router—deserved its own quiet corner of the internet: [**alwaysroute.com**](https://www.alwaysroute.com).
Which meant calling the robot design team back in for one more job. At least this time I already knew the golden rule: *start taking things away early*.
---
## Why three server bars wouldn't work this time
With `home-lab.net`, the picture in my head was physical hardware sitting quietly in a closet: three flat white server bars stacked on top of each other with one tiny blue light. It feels solid and stationary, because a heavy tower full of hard drives *is* solid and stationary.
`AlwaysRoute` is the exact opposite. There isn't a box in a closet to draw. The whole idea is **movement between two places that normally refuse to talk to each other**:
1. **The outside world (cool blue)**: Phones on cellular data, laptops on hotel Wi-Fi, and the open internet.
2. **Home (warm amber)**: The private home network tucked behind a closed front door.
---
## Round one: padlocks, globes, and the Shuffle button
Ask an AI—or any icon site—for a "networking or VPN logo," and it immediately reaches into the cybersecurity clipart bin and hands you one of three things:
- A wireframe globe straight out of a 1990s movie.
- A medieval knight's shield with a giant keyhole in the middle.
- Two crossing arrows that look *very* familiar.
The globes and shields went straight in the trash. A shield says *"keep out."* AlwaysRoute isn't about blocking things—my home router already does that by keeping every door shut. AlwaysRoute is about **getting across the gap**.
The crossing arrows felt much warmer. Whenever network engineers explain a tunnel on a whiteboard, they draw two lanes—outside and inside—crossing smoothly in the middle. Great idea, right up until you see two plain crossing arrows drawn cleanly on a dark background and realize what you've actually made:
EARLY ATTEMPT // CROSSED ARROWSLOOKS LIKE SHUFFLE
Two grey lines with sharp corners and arrowheads don't say *"private network bridge."* They say *"play my 2007 music library in random order."*
---
## Turning a shuffle button into a bridge
Once I saw the shuffle icon, I couldn't unsee it. Fortunately, three small nudges fixed it completely:
- **Start both lines from a dot.** A real route starts *somewhere*. Putting a solid round dot at the beginning of each line immediately made it read like a map between two places instead of a button on a stereo.
- **Soften the corners into a smooth S-curve.** Swapping the stiff angles for a gentle curve gave the whole mark a calm, flowing feel—more like railway tracks switching lanes than two sticks colliding.
- **Bring the arrows slightly closer together at the end.** This is my favorite detail, and you barely notice it unless someone points it out. On the left, the blue and amber dots start fairly wide apart. After they cross in the middle, the two arrows finish *closer together* than where they started—a quiet visual hint that two separate worlds are now connected.
THE CROSSOVER // WIDE START, CLOSER FINISHOUTSIDE (BLUE) ↔ HOME (AMBER)
---
## Giving the arrows somewhere to land
Next came the name. When we tried writing `alwaysroute.com` on a single line next to the two crossing paths, it looked lost—the text floated in the middle while both arrows pointed into empty space above and below it.
Splitting the name onto **two stacked lines** made everything click right into place:
- **`always`** sits on the top lane, right where the warm amber arrow arrives from home.
- **`route`** sits on the bottom lane in bright blue, right where the outside arrow lands, with a quieter `.com` tucked on the end.
---
## The finished logo
Here it is on dark and light backgrounds, along with the little square icon at browser-tab sizes to make sure it still holds up when shrunk down to a tiny speck:
DARK
LIGHT
BROWSER TAB TEST // LARGE · MEDIUM · TINY
Because the two lines are drawn as clean, continuous strokes, I couldn't resist adding one tiny extra touch on [**alwaysroute.com**](https://www.alwaysroute.com): a soft pulse of light gliding quietly along each curve in opposite directions, like traffic flowing smoothly over a bridge at night.
---
## Accidentally building a little family
Stepping back and looking at all three sites side by side, my favorite part was a happy accident:
- [**stuurman.com**](https://www.stuurman.com) uses **warm amber** for my personal writing and photography.
- [**home-lab.net**](https://www.home-lab.net) uses **bright sky blue** for the homelab server in the closet.
- [**alwaysroute.com**](https://www.alwaysroute.com) takes that exact **sky blue** and **warm amber** and crosses them right in the middle.
I didn't sit down with a grand branding masterplan to make that happen—it just worked out that way. Two dots, two smooth curves, and not a single padlock or globe in sight.
---
# Retiring Formspree: A Planned Zero-Port Contact Pipeline with Lambda, S3 & Stalwart
- URL: https://www.stuurman.com/blog/2026-11-10-retiring-formspree-zero-port-contact-lambda-s3-stalwart/
- Published Date: Nov 10, 2026
- Tags: Architecture, AWS, CloudFront, Homelab, Security
- Description: How I plan to replace the last third-party SaaS integration on my static sites—using a CloudFront-fronted Lambda, stateless WebCrypto proof-of-work, and direct RFC 5322 .eml drops into the existing S3 mail relay.
> [!NOTE]
> **Blueprint Status (Planned Target Architecture)**: Like the [Zero-Port Homelab Mail](/blog/2026-11-09-zero-port-homelab-mail-ses-s3-stalwart/) and [Zero-Port Umami Analytics](/blog/2026-11-09-zero-port-homelab-analytics-umami-lambda-s3/) blueprints, this article documents a **planned concept** designed for **stuurman.com** and **HOME-LAB.net**. Today, **stuurman.com** still uses Formspree (and **HOME-LAB.net**'s contact endpoint is waiting on this setup); this pipeline is queued for implementation once the UniFi core network, Proxmox VE server consolidation, and Stalwart mail relay are online.
Once you map out [self-hosted email](/blog/2026-11-09-zero-port-homelab-mail-ses-s3-stalwart/) and [first-party analytics](/blog/2026-11-09-zero-port-homelab-analytics-umami-lambda-s3/) around a zero-inbound-port S3 store-and-forward boundary, the remaining external dependencies on a static site stand out pretty quickly.
Right now, the `/contact/` page on **stuurman.com** posts submissions to **Formspree**. Formspree is great when spinning up a static Astro site—you drop an endpoint URL into `fetch()` and move on—but keeping a third-party SaaS form processor (capped at 50 messages a month on the free tier and storing visitor messages in an external database) feels redundant once an encrypted S3 mail relay and a local **Stalwart** mail server are already part of the plan.
Even better: because the planned homelab mail stack already pulls raw `.eml` files out of S3 into Stalwart, **a first-party contact form doesn't even need SMTP or `ses:SendEmail`**.
Here is the concept for retiring Formspree cleanly.
---
## 1. Choosing the Right Edge Primitive: CloudFront Function vs. Lambda
Since my static sites already run a **CloudFront Function** (`cloudfront-js-2.0`) on every request to handle naked-to-`www` `301` redirects and directory index rewrites, my first thought was: *can a CloudFront Function handle `/api/contact` directly?*
The short answer is **no**, for two hard runtime reasons:
1. **No Request Body Access**: CloudFront Functions execute on headers, cookies, URIs, and query strings only—they cannot read an HTTP `POST` payload.
2. **Zero Network or AWS SDK Access**: The `cloudfront-js-2.0` sandbox runs in sub-millisecond isolation at the edge POP with no outbound network access, so it cannot write to S3 or call SES.
**Lambda@Edge** *can* make network calls, but it truncates request bodies at 40 KB, requires deploying in `us-east-1`, and replicates slowly across regions.
Instead, the clean fit—matching the planned `/api/send` Umami ingestion route—is a **CloudFront cache behavior (`/api/contact`) backed by a regional Node.js Lambda Function URL** in Tokyo (`ap-northeast-1`):
- **100% Same-Origin**: Submitting to `https://www.stuurman.com/api/contact` requires zero CORS `OPTIONS` preflight requests and zero third-party entries in `Content-Security-Policy`.
- **Locked Behind CloudFront OAC (`AWS_IAM`)**: Setting the Lambda Function URL auth type to `AWS_IAM` and attaching a CloudFront Origin Access Control (`lambda` SigV4 signing) means bots cannot bypass CloudFront to hammer the raw `*.lambda-url` endpoint directly.
---
## 2. The Shortcut: Drop `.eml` Straight Into S3 (Skip `ses:SendEmail`)
Most serverless contact-form tutorials wire AWS Lambda to `ses:SendEmail`. That works, but it has an ugly side effect on a public web form: if a spammer floods your contact endpoint with garbage payloads or spoofed addresses, any resulting bounces or complaints count directly against your domain's **Amazon SES sender reputation**—putting your legitimate outbound mail deliverability at risk. And if you are only emailing *yourself*, sending an SMTP message out to the internet just so it can loop right back into your own SES inbound receipt rule is completely unnecessary.
With the [SES + S3 mail relay](/blog/2026-11-09-zero-port-homelab-mail-ses-s3-stalwart/) already planned, we can cut out the entire SMTP middleman:
```mermaid
flowchart TD
subgraph Edge["1. Public Edge (AWS CloudFront + Lambda)"]
Visitor["Visitor Browser"] -->|"1. Focus Input -> GET /api/contact"| CF["AWS CloudFront Edge"]
Visitor -->|"2. Submit Form + PoW -> POST /api/contact"| CF
CF -->|"SigV4 OAC + Viewer Headers"| Lambda["Node.js Contact Lambda"]
end
subgraph Buffer["2. Shared S3 Mail Buffer (ap-northeast-1)"]
S3[("home-lab-net-mail-relay (/contact/*.eml)")]
end
subgraph Homelab["3. Private Homelab Core (Zero Open WAN Ports)"]
Puller["Existing S3 Mail Puller (LXC Container)"]
Stalwart["Stalwart Mail Server (Sieve + Spam Filter)"]
Webmail["Roundcube & Mail Clients (Reply-To = Visitor)"]
end
Lambda -->|"3. Write-Only PutObject (.eml)"| S3
S3 -->|"4. Outbound HTTPS 443 Pull"| Puller
Puller -->|"5. Local LMTP Ingest"| Stalwart
Stalwart --> Webmail
```
### Synthesizing a Clean RFC 5322 `.eml` Payload
Once the Lambda function validates a form submission, it strips CR/LF characters from every header field (preventing MIME header injection), builds a standard **RFC 5322 `.eml`** text payload, and drops it into the `/contact/` prefix of the existing mail relay bucket:
```javascript
import crypto from "node:crypto";
import { S3Client, PutObjectCommand } from "@aws-sdk/client-s3";
const s3 = new S3Client({ region: "ap-northeast-1" });
const MAIL_BUCKET = process.env.MAIL_RELAY_BUCKET; // e.g. "home-lab-net-mail-relay"
// Strip CR/LF and control characters so user input can never inject MIME headers
const cleanHeader = (val = "", max = 200) =>
String(val).replace(/[\r\n\x00-\x1f]+/g, " ").trim().slice(0, max);
export function buildContactEml({ site, name, email, subject, message, viewerIp, country }) {
const safeName = cleanHeader(name, 80).replace(/"/g, "'");
const safeEmail = cleanHeader(email, 120);
const safeSubject = cleanHeader(subject || `New message via ${site}`, 140);
const msgId = `<${crypto.randomUUID()}@${site}>`;
const dateHeader = new Date().toUTCString();
return [
`From: "${site} Contact Form" `,
`To: `,
`Reply-To: "${safeName}" <${safeEmail}>`,
`Subject: [Contact] ${safeSubject}`,
`Date: ${dateHeader}`,
`Message-ID: ${msgId}`,
`MIME-Version: 1.0`,
`Content-Type: text/plain; charset=utf-8`,
`Content-Transfer-Encoding: 8bit`,
`X-Contact-Form: true`,
`X-Contact-Site: ${cleanHeader(site, 60)}`,
`X-Contact-Country: ${cleanHeader(country, 8)}`,
`X-Contact-IP: ${cleanHeader(viewerIp, 64)}`,
``,
String(message).slice(0, 10000),
``,
].join("\r\n");
}
```
Look at what happens downstream for free:
1. **Zero New Homelab Daemons**: Inside an LXC container on Proxmox, the exact same S3 pull worker that retrieves inbound `@home-lab.net` emails picks up `/contact/*.eml`, hands it to Stalwart over LMTP, and deletes the S3 object.
2. **Native One-Click Replies**: Because `From:` uses an internal address while `Reply-To:` holds the visitor's email, hitting **Reply** in Roundcube or Apple Mail addresses the reply straight to the visitor.
3. **Write-Only IAM Isolation**: The contact Lambda's IAM role only needs **one single action**—`s3:PutObject` scoped to the `contact/*` and `ratelimit/*` prefixes. Even if the function had a bug, it cannot `ListBucket` or `GetObject` on any email in the bucket:
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "WriteOnlyContactAndRateLimitLocks",
"Effect": "Allow",
"Action": "s3:PutObject",
"Resource": [
"arn:aws:s3:::home-lab-net-mail-relay/contact/*",
"arn:aws:s3:::home-lab-net-mail-relay/ratelimit/*"
]
}
]
}
```
---
## 3. Stopping Spam & Rate-Limiting Without Third-Party CAPTCHAs or \$6/mo AWS WAF
Replacing Formspree raises two immediate questions: **what stops bots from filling up S3 with junk, and how do you rate-limit submissions without a database?**
Standard CAPTCHA and WAF options clash with a fast, near-\$0, zero-third-party static site:
- **Google reCAPTCHA & Cloudflare Turnstile**: Pull in 50–150 KB of external JavaScript, require `Content-Security-Policy` exceptions, send visitor browser telemetry to third-party networks, and drag down PageSpeed scores on `/contact/`.
- **AWS WAF Captcha / Rate-Based Rules on CloudFront**: Charge a fixed **~\$6/month** base fee just to attach a WebACL and rule—wiping out the \$0.00 serverless economics before receiving a single message.
Instead, the planned design stacks **four zero-widget, zero-database layers**:
### Layer 1: Lazy Stateless Proof-of-Work (`HMAC` + WebCrypto `SHA-256`)
This follows the open Hashcash / ALTCHA pattern using ~35 lines of native browser WebCrypto (`crypto.subtle`) and **zero server-side database**:
1. **Lazy Fetch on Focus (`0ms` PageSpeed Impact)**: Nothing runs when `/contact/` loads. Only when a visitor clicks or tabs into a form field (`focusin`) does the browser request a lightweight challenge (`GET /api/contact`).
2. **Stateless HMAC Challenge**: Lambda generates a random `salt`, the current `timestamp`, and a target puzzle hash (~50,000 `SHA-256` iterations), signing `HMAC-SHA256(SECRET, salt + timestamp + viewerIp)` so Lambda never has to store challenge state in DynamoDB or Redis.
3. **Invisible Solve While Typing (~100ms)**: While the human spends 15–30 seconds typing their message, the browser finds the matching nonce in ~100ms in the background—no "select all motorcycles" grid, no checkbox, and zero friction for screen readers.
4. **Sub-Millisecond Verification on `POST`**: Lambda checks the HMAC signature, verifies the timestamp is **at least `2.5 seconds` old** (confirming human typing cadence) and **under `15 minutes` old** (blocking token replay), and runs **one single `SHA-256` hash** to verify the proof-of-work.
For a real person sending one message, 100ms on their device while typing is imperceptible. For a bot trying to blast 50,000 automated requests, computing billions of hashes breaks the economics completely.
### Layer 2: Zero-Database Rate Limiting (`Concurrency = 1` + S3 `IfNoneMatch: "*"`)
You don't need Redis or DynamoDB to enforce strict per-IP and global rate limits:
1. **Single-MicroVM In-Memory Guard (`ReservedConcurrentExecutions = 1`)**: A contact Lambda finishes in ~40ms, so pinning concurrency to **`1`** still handles 20+ requests per second while funneling **every request through a single warm Node.js instance**. Because only one instance is active at a time, a module-level `Map` in RAM reliably enforces both a **per-IP cooldown** (1 submission per 10 minutes) and a **global circuit breaker** (e.g., max 10 submissions per hour across all IPs combined) with **zero S3 API calls** on rejected traffic.
2. **Cold-Start-Proof S3 Atomic Locks (`IfNoneMatch: "*"`)**: To persist per-IP cooldowns across Lambda cold starts without adding DynamoDB or `s3:GetObject` permissions, Lambda leverages S3's native conditional writes:
```javascript
const window10m = Math.floor(Date.now() / 600_000); // 10-minute bucket slot
const ipHash = crypto.createHmac("sha256", SECRET).update(viewerIp).digest("hex").slice(0, 16);
// Atomically claim this IP's 10-minute slot in S3 (0-byte lock object)
await s3.send(
new PutObjectCommand({
Bucket: MAIL_BUCKET,
Key: `ratelimit/${window10m}-${ipHash}.lock`,
Body: "",
IfNoneMatch: "*", // Throws 412 PreconditionFailed if this IP already submitted in this window
})
);
```
If the same IP submits twice within a 10-minute window, S3 atomically rejects the second write with `412 PreconditionFailed` and Lambda returns `429 Too Many Requests` without writing a `.eml` file. A 24-hour S3 lifecycle rule on `ratelimit/*` cleans up the 0-byte lock files automatically. *(And if volumetric edge throttling before Lambda invocation is ever needed, placing an API Gateway HTTP API stage with `rate = 0.5 req/s, burst = 2` between CloudFront and Lambda drops floods at the AWS edge for \$0.00).*
### Layer 3: Silent Honeypot & Browser Metadata Checks
- The existing hidden `_gotcha` input in `ContactForm.astro` stays in place: if populated, Lambda returns a **decoy `200 OK`** and discards the request without touching S3, so simple scrapers move on instead of probing further.
- Requests missing `Sec-Fetch-Site: same-origin` or an allowed `Origin` header (`https://www.stuurman.com`, `https://www.home-lab.net`) are rejected immediately.
### Layer 4: Stalwart's Spam Engine & Sieve Rules as the Backstop
Because every submission enters **Stalwart** inside the homelab as a normal `.eml` message with `X-Contact-Form: true`, Stalwart's built-in Bayesian/URL heuristics and Sieve filters act as a final safety net—routing obvious SEO link-spam straight to `Junk` and neatly tagging legitimate messages by site (`[stuurman.com]` vs. `[home-lab.net]`).
---
## 4. Architectural Comparison
| Dimension | Formspree (Current) | Lambda + `ses:SendEmail` | Planned Lambda → S3 `.eml` → Stalwart |
| :--- | :--- | :--- | :--- |
| **Monthly Cost** | Free up to 50 msgs/mo (\$10+/mo after) | \$0.00 (Free Tier / pennies) | **\$0.00** (Free Tier / pennies) |
| **Third-Party Data Storage** | Submissions stored in external SaaS | AWS only | **Encrypted S3 buffer → Local ZFS** |
| **SES Sender Reputation Risk** | None | **High** if form is spam-flooded | **Zero** (never touches outbound SMTP) |
| **Bot & Rate Limiting** | SaaS honeypot / 50-msg cap | Needs Turnstile, DynamoDB, or ~\$6/mo WAF | **WebCrypto PoW + S3 `IfNoneMatch` lock + Stalwart** |
| **PageSpeed / Third-Party JS** | Clean until CAPTCHA added | Degrades if CAPTCHA widget loaded | **`100 / 100` (`0 KB` third-party JS)** |
| **Homelab Offline Resilience** | Held in Formspree / SES bounce | Bounces if inbound pipeline down | **Queues durably in S3 (7-day lifecycle)** |
---
## 5. Planned Build Checklist
Once the UniFi core network, Proxmox VE consolidation, and [Stalwart S3 mail relay](/blog/2026-11-09-zero-port-homelab-mail-ses-s3-stalwart/) are up and running, cutting over `/contact/` is a compact weekend project:
- [ ] **Phase 1 — Contact Lambda, OAC & S3 Lifecycle (Terraform)**: Deploy the Node.js 22 `/api/contact` Lambda in `ap-northeast-1` (`ReservedConcurrentExecutions = 1`, write-only `s3:PutObject` on `contact/*` and `ratelimit/*`, plus a 1-day expiry rule on `ratelimit/*`) behind CloudFront with `AWS_IAM` Origin Access Control.
- [ ] **Phase 2 — Stateless WebCrypto PoW & Rate Limiter**: Implement the `GET /api/contact` HMAC challenge, the in-RAM global/IP cap + S3 `IfNoneMatch: "*"` lock in Lambda, and the lazy `focusin` `crypto.subtle` solver in `ContactForm.astro`.
- [ ] **Phase 3 — Stalwart Sieve Filing**: Add a Sieve rule in Stalwart matching `X-Contact-Form: true` to label messages by `X-Contact-Site` while running normal URL/spam scoring.
- [ ] **Phase 4 — Retire Formspree & Enable Contact Endpoints**: Swap `stuurman.com`'s Formspree endpoint over to `/api/contact` and wire up `home-lab.net`'s `/contact/` endpoint (while keeping external endpoint URLs supported as a configurable option in `the-navigator` starter template).
---
# Redeeming the Humble Pie: A Planned Zero-Port Umami Analytics Pipeline with Lambda, S3 & Proxmox
- URL: https://www.stuurman.com/blog/2026-11-09-zero-port-homelab-analytics-umami-lambda-s3/
- Published Date: Nov 09, 2026
- Tags: Architecture, AWS, Homelab, Security, Performance
- Description: Last year I failed to shoehorn Umami Analytics into AWS Aurora DSQL. Here is the simpler, near-$0 architecture conceptualized for HOME-LAB.net: serverless Lambda + S3 edge ingestion paired with an outbound pull into local PostgreSQL on ZFS.
> [!NOTE]
> **Blueprint Status (Planned Target Architecture)**: Like the [Zero-Port Homelab Mail blueprint](/blog/2026-11-09-zero-port-homelab-mail-ses-s3-stalwart/), this article documents a **planned architecture** conceptualized for **HOME-LAB.net** and **stuurman.com**. It is queued for implementation once the current UniFi core network and Proxmox VE lab server hardware upgrades are complete.
Back in November 2025, I wrote about [eating a big serving of humble pie](/blog/2025-11-27-aws-dsql-amplify-umami-analytics/) when I tried to self-host **Umami Analytics** on AWS for \$0.00 a month.
My mistake back then was trying to force the entire Umami stack—both its Next.js frontend and its relational PostgreSQL database—into serverless cloud primitives (`AWS Amplify` + `Aurora DSQL`). Because DSQL relies on short-lived IAM authentication tokens rather than standard PostgreSQL connection strings, the whole experiment collapsed under its own complexity. I shelved it and promised to revisit it when a cleaner idea came along.
While conceptualizing the [S3 store-and-forward mail pipeline](/blog/2026-11-09-zero-port-homelab-mail-ses-s3-stalwart/) for **HOME-LAB.net**, it finally clicked: **I was trying to run the database in the wrong place.**
---
## 1. The Insight: Separate Ingestion from Storage
Running PostgreSQL in the cloud 24/7 is expensive. Running PostgreSQL in a container on my local Proxmox VE server backed by NVMe ZFS mirrors costs nothing—the server is already running.
Conversely, exposing an internal homelab Umami container directly to the public internet so every visitor's browser can `POST /api/send` into my living room violates my primary homelab rule: **zero open inbound WAN ports**.
By splitting the pipeline across the S3 boundary—just like inbound email—each side only does what it is naturally good at:
1. **AWS Edge Ingestion (`CloudFront` → `Lambda` → `S3`)**: A tiny, stateless Node.js Lambda function receives public `/api/send` beacons, extracts the client IP from CloudFront, and writes a tiny JSON event into an S3 buffer bucket. At personal-site traffic levels, this stays inside the AWS Lambda Free Tier and costs pennies per year in S3 requests.
2. **Homelab Core (`systemd` Puller → `Umami` + `PostgreSQL` on ZFS)**: Inside the private LAN, a scheduled sync script pulls queued JSON events from S3 over outbound HTTPS (`TCP 443`), replays them into the local Umami container with original client IP and `User-Agent` headers intact, and deletes the processed objects from S3.
```mermaid
flowchart TD
subgraph Public["1. Public Edge Ingestion (AWS CloudFront + Lambda + S3)"]
Visitor["Public Browser"] -->|"POST /api/send"| CF["AWS CloudFront Edge"]
CF -->|"Viewer IP + User-Agent"| Lambda["AWS Lambda (Node.js Ingestion)"]
Lambda -->|"PutObject (.json)"| S3[("Encrypted S3 Buffer Bucket (7-Day Lifecycle Safety Net)")]
end
subgraph Homelab["2. Private Homelab Core (Zero Open WAN Ports)"]
Sync["Local Node.js Sync Worker (systemd 5-min timer)"]
Umami["Internal Umami Instance (TRUST_PROXY=true)"]
PG[("PostgreSQL on Host ZFS (NVMe Mirror Dataset)")]
end
S3 -->|"Outbound HTTPS 443 Pull (List / Get / Delete)"| Sync
Sync -->|"Replay POST /api/send (X-Forwarded-For + User-Agent)"| Umami
Umami --> PG
```
---
## 2. Public Ingestion: Stateless AWS Lambda → S3
Instead of keeping a database awake in AWS, the public `/api/send` endpoint only needs to validate the JSON payload, read the real client IP from AWS's request context, and drop a file into S3:
```javascript
import { S3Client, PutObjectCommand } from "@aws-sdk/client-s3";
const s3 = new S3Client({});
export const handler = async (event) => {
try {
// Extract viewer IP directly from CloudFront / API Gateway context
const realClientIp =
event.requestContext?.identity?.sourceIp ||
event.headers?.["cloudfront-viewer-address"]?.split(":")[0];
const payload = {
body: JSON.parse(event.body),
client_ip: realClientIp,
user_agent: event.headers?.["user-agent"],
};
const filename = `umami-events/${Date.now()}-${Math.random().toString(36).substring(2, 7)}.json`;
await s3.send(
new PutObjectCommand({
Bucket: "home-lab-net-analytics-logs",
Key: filename,
Body: JSON.stringify(payload),
ContentType: "application/json",
})
);
return {
statusCode: 200,
headers: {
"Content-Type": "application/json",
"Access-Control-Allow-Origin": "https://www.home-lab.net",
},
body: JSON.stringify({ success: true }),
};
} catch (err) {
console.error(err);
return { statusCode: 500, body: "Storage failed" };
}
};
```
> [!TIP]
> **Reboot & Maintenance Immunity**: Just like the S3 mail relay, if the Proxmox host is powered down for hardware maintenance or a kernel reboot, public pageviews are never dropped. Events queue quietly in S3 (backed by a 7-day auto-expiry lifecycle rule) until the homelab comes back online.
---
## 3. Outbound Pull & Local Replay (`TRUST_PROXY=true`)
Inside an LXC container in the homelab, a lightweight Node.js worker polls the S3 bucket every 5 minutes via a `systemd` timer.
Because Umami supports `TRUST_PROXY=true`, the local worker can replay each stored payload to `http://10.0.0.x:3000/api/send` while passing the original visitor's `User-Agent` and `X-Forwarded-For` IP header—preserving country/region geolocation and device breakdowns without ever exposing Umami to the internet:
```javascript
import { S3Client, ListObjectsV2Command, GetObjectCommand, DeleteObjectCommand } from "@aws-sdk/client-s3";
const s3 = new S3Client({ region: "ap-northeast-1" });
const BUCKET_NAME = "home-lab-net-analytics-logs";
const INTERNAL_UMAMI_URL = "http://10.0.0.50:3000/api/send";
async function syncEvents() {
const listResponse = await s3.send(new ListObjectsV2Command({ Bucket: BUCKET_NAME }));
if (!listResponse.Contents?.length) return;
for (const file of listResponse.Contents) {
const fileData = await s3.send(new GetObjectCommand({ Bucket: BUCKET_NAME, Key: file.Key }));
const logEntry = JSON.parse(await fileData.Body.transformToString());
const response = await fetch(INTERNAL_UMAMI_URL, {
method: "POST",
headers: {
"Content-Type": "application/json",
"User-Agent": logEntry.user_agent,
"X-Forwarded-For": logEntry.client_ip,
},
body: JSON.stringify(logEntry.body),
});
if (response.ok) {
await s3.send(new DeleteObjectCommand({ Bucket: BUCKET_NAME, Key: file.Key }));
}
}
}
syncEvents();
```
### Ring-Fenced IAM Permissions
The homelab pull worker uses a tightly scoped IAM policy limited strictly to `s3:ListBucket`, `s3:GetObject`, and `s3:DeleteObject` on the analytics buffer bucket:
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "BucketListing",
"Effect": "Allow",
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::home-lab-net-analytics-logs"
},
{
"Sid": "ObjectReadAndDestroy",
"Effect": "Allow",
"Action": ["s3:GetObject", "s3:DeleteObject"],
"Resource": "arn:aws:s3:::home-lab-net-analytics-logs/*"
}
]
}
```
---
## 4. Build To-Do Checklist
This pipeline is queued up alongside the mail stack once the UniFi core network and lab server upgrades are finished:
- [ ] **Phase 1 — Edge Ingestion (Terraform)**: Provision the `home-lab-net-analytics-logs` S3 bucket (with a 7-day lifecycle rule), the Node.js ingestion Lambda, and the CloudFront `/api/send` behavior.
- [ ] **Phase 2 — Internal Umami + PostgreSQL LXC**: Deploy Umami with `TRUST_PROXY=true` and PostgreSQL backed by the Proxmox host's NVMe ZFS pool, exposed internally at `https://analytics.home-lab.net` behind Caddy and Authelia SSO.
- [ ] **Phase 3 — Systemd Pull Timer**: Configure `umami-sync.service` and `umami-sync.timer` (`OnUnitActiveSec=5min`) using the least-privilege IAM pull credentials.
- [ ] **Phase 4 — Cutover from Umami Cloud**: Point `stuurman.com`, `home-lab.net`, and `alwaysroute.com` at the self-hosted ingestion endpoint.
---
# Zero-Inbound-Port Homelab Mail: The Planned SES, S3 Store-and-Forward & Stalwart Setup
- URL: https://www.stuurman.com/blog/2026-11-09-zero-port-homelab-mail-ses-s3-stalwart/
- Published Date: Nov 09, 2026
- Tags: Architecture, AWS, Security, Homelab
- Description: How to self-host private email without port forwarding, dynamic IP blacklists, or reboot bounces—combining Amazon SES, an encrypted S3 relay bucket, Stalwart, and Roundcube.
> [!NOTE]
> **Blueprint Status (Planned Target Architecture)**: This article documents the **planned email architecture** conceptualized for **HOME-LAB.net**. Only the public static showcase is live today—the internal split-horizon DNS/TLS layers, mail engine, and local LAN core are queued to be set up once the UniFi core network and lab server hardware upgrades are complete.
Hosting an email server on a residential internet connection has historically been considered an operational death wish.
Between residential ISPs unconditionally blocking inbound **TCP Port 25**, dynamic residential IP blocks being permanently flagged on global Spamhaus/CBL blacklists, and homelab reboots bouncing inbound messages back to senders with cryptic `550 Connection Refused` errors, running a traditional Postfix/Dovecot stack at home is notoriously fragile.
For **HOME-LAB.net**, I conceptualized a decoupled split-horizon mail architecture: **Serverless Inbound Store-and-Forward via Amazon SES & S3**, paired with an **Outbound HTTPS Pull into Stalwart**, **Roundcube Webmail**, and a **Straight Outbound Relay through Amazon SES**.
Here is how the planned blueprint works.
---
## 1. The Core Architecture
```mermaid
flowchart TD
subgraph AWS["AWS Tokyo (ap-northeast-1)"]
MX["Route 53 MX & Amazon SES Inbound (SPF / DKIM / Anti-Virus Scan)"]
S3[("Encrypted S3 Relay Bucket (7-day lifecycle retention)")]
SES_OUT["Amazon SES Outbound SMTP Relay (Port 587 STARTTLS • Tier-1 IPs)"]
end
subgraph HOME["Local Homelab Core (Zero Open Ports)"]
STALWART["Stalwart Mail Server (Single Rust Binary • RocksDB on Host ZFS)"]
WEBMAIL["Roundcube Webmail & Mail Clients (Local IMAP / JMAP • Port 587)"]
end
%% Inbound Flow
Sender["External Sender (Gmail, M365, etc.)"] -->|"1. Port 25 Inbound SMTP"| MX
MX -->|"2. Write raw .eml"| S3
S3 -->|"3. Outbound HTTPS 443 Pull"| STALWART
STALWART -->|"4. Local Mail Delivery"| WEBMAIL
%% Outbound Flow
WEBMAIL -->|"A. Submit Outbound Email"| STALWART
STALWART -->|"B. Sign 2048-bit DKIM & TLS Relay"| SES_OUT
SES_OUT -->|"C. Deliver to Destination"| Recipient["External Recipient (Gmail, M365, etc.)"]
```
---
## 2. Inbound: Serverless SES → S3 Store-and-Forward
Instead of trying to route raw inbound SMTP directly through a residential firewall, the inbound flow leverages AWS as a resilient, zero-maintenance buffer:
### Step 1: Edge MX Termination
The public Route 53 `MX` record will point directly to Amazon SES in Tokyo:
```text
home-lab.net. IN MX 10 inbound-smtp.ap-northeast-1.amazonaws.com.
```
When an external sender transmits a message:
- Amazon SES terminates the connection on AWS edge infrastructure over standard port 25 with opportunistic TLS.
- SES automatically evaluates incoming SPF records, checks cryptographic DKIM signatures, validates DMARC alignment, and runs anti-virus and anti-spam heuristics.
### Step 2: The S3 Store-and-Forward Relay
An SES Receipt Rule will capture messages destined for `*@home-lab.net`:
1. **Raw MIME Storage**: SES writes the raw, byte-for-byte RFC 5322 `.eml` payload directly into an encrypted S3 bucket (`s3://home-lab-net-mail-relay/inbound/`).
2. **Encryption at Rest**: Objects are encrypted using server-side AES-256 (`aws:kms` or `AES256`).
3. **Automated Lifecycle Policy**: A 7-day expiration rule ensures obsolete files are purged automatically if unretrieved, keeping storage minimal.
### Step 3: Zero-Inbound-Port Pull
This is the architectural linchpin that eliminates port forwarding:
- A local worker process (or Stalwart's native S3 ingest integration) inside the homelab will poll the S3 bucket using restricted IAM credentials (`s3:GetObject`, `s3:DeleteObject`).
- **Because the connection is initiated outbound from the homelab to AWS over HTTPS (TCP 443), zero inbound ports are opened on the residential router.**
- Newly retrieved `.eml` files will be ingested into **Stalwart Mail Server**, which indexes message headers, full-text bodies, and attachments into its local RocksDB database on ZFS.
- Once successfully committed to local disk, the worker deletes the object from S3.
> [!TIP]
> **Power Outage & Reboot Immunity**: If the homelab server is offline for maintenance, reboots during a kernel upgrade, or loses residential fiber connectivity, **zero emails are lost**. Senders never receive a connection bounce. Messages safely queue in S3 and are ingested the moment the server boots back up.
---
## 3. Webmail & Identity: Roundcube + Authelia
Once ingested into Stalwart, messages will be presented through a clean local webmail interface:
- **Stalwart Mail Server**: A modern, single-binary mail engine written in Rust. It replaces the legacy multi-daemon combination of Postfix, Dovecot, OpenDKIM, and SpamAssassin, delivering blazingly fast JMAP and IMAP performance.
- **Roundcube Webmail**: Planned at `https://mail.home-lab.net` behind the local Caddy reverse proxy with DNS-01 wildcard TLS certificates.
- **Authelia SSO (`XOAUTH2` / OIDC)**: Will provide unified single sign-on across the entire homelab so a single WebAuthn hardware passkey or biometric login unlocks webmail, Immich, GitLab, and internal dashboards.
- **Mobile Clients**: Native mail applications on iOS and macOS will connect directly to Stalwart over IMAP/JMAP whenever connected to home Wi-Fi or roaming over the [**AlwaysRoute (`alwaysroute.com`)**](https://www.alwaysroute.com) WireGuard on-demand tunnel.
---
## 4. Outbound: "Straight Outbound" Relay via Amazon SES
Residential IP ranges are hardcoded into global spam blocklists (Spamhaus, SpamCop, Barracuda). Attempting to deliver outbound mail directly from a home connection results in near-instant spam folder placement or outright rejection.
My planned setup resolves this through a **straight outbound relay**:
1. **Client Submission**: The user sends an email from Roundcube or a mobile client. The client authenticates against Stalwart over local SMTP submission (Port 587 with STARTTLS).
2. **Local DKIM Signing**: Stalwart cryptographically signs the outbound message using `home-lab.net`'s 2048-bit private DKIM key (`d=home-lab.net`, `s=mail`).
3. **Straight Outbound Relay**: Stalwart relays the signed message directly to Amazon SES:
```text
Endpoint: email-smtp.ap-northeast-1.amazonaws.com
Port: 587 (STARTTLS)
Auth: Dedicated IAM SMTP Credentials
```
4. **Global Edge Delivery**: Amazon SES accepts the pre-authenticated message and transmits it to destination servers (Google Workspace, Microsoft 365, ProtonMail) from Amazon's warmed, high-reputation IP pool.
### Cryptographic Alignment in Route 53
Deliverability is enforced via strict, declarative DNS records:
- **SPF**: `v=spf1 include:amazonses.com ~all`
- **DKIM**: 3× Route 53 `CNAME` records provisioned via Amazon SES Easy DKIM (`*._domainkey.home-lab.net`).
- **DMARC**: Strict enforcement policy rejecting unaligned spoofed mail without noisy aggregate report spam:
```text
_dmarc.home-lab.net. IN TXT "v=DMARC1; p=reject; pct=100"
```
---
## 5. Architectural Comparison
| Dimension | Traditional Self-Hosted Mail | HOME-LAB.net Planned Architecture |
| :--- | :--- | :--- |
| **Inbound Port 25** | Required on home router (blocked by most ISPs) | **Blocked & Closed** (Outbound HTTPS pull via S3) |
| **Outbound Port 25** | Blocked by ISP / Blacklisted on Spamhaus | **Not used** (Straight Port 587 TLS relay via Amazon SES) |
| **Reboot Resilience** | Offline server causes `550 Connection Refused` | **Zero-bounce** (S3 acts as an elastic, durable buffer) |
| **Deliverability** | Poor (residential IP reputation issues) | **100% Inbox Placement** (Valid SPF, DKIM, DMARC on SES IPs) |
---
## 6. Build To-Do Checklist
Here is the concrete implementation roadmap I'll be working through to bring this stack online on the Proxmox VE host:
- [ ] **Phase 1 — AWS SES & S3 Relay (Terraform)**: Provision the `ap-northeast-1` SES domain identity, Easy DKIM `CNAME` records, encrypted `home-lab-net-mail-relay` S3 bucket (7-day lifecycle), and SES Inbound Receipt Rule.
- [ ] **Phase 2 — Outbound SES Production Access**: Request SES sandbox exit in Tokyo and generate least-privilege IAM credentials for both the S3 inbound puller (`s3:GetObject`, `s3:DeleteObject`) and Port 587 SMTP outbound relay.
- [ ] **Phase 3 — Stalwart LXC on Host ZFS**: Provision a dedicated unprivileged Debian LXC container on Proxmox VE with a bind-mounted NVMe ZFS dataset (`rpool/data/stalwart`) and configure RocksDB storage + S3 inbound polling.
- [ ] **Phase 4 — Roundcube + Authelia OIDC (`XOAUTH2`)**: Deploy Roundcube behind Caddy (`https://mail.home-lab.net`) and wire OIDC token authentication so Authelia passkey sessions log straight into webmail without a second password prompt.
- [ ] **Phase 5 — Fault-Injection & Reboot Testing**: Shut down the Stalwart LXC container, send external test emails from Gmail/ProtonMail, verify they queue cleanly in S3 with zero bounces, and confirm automatic ingestion upon container boot.
---
## 7. What's Next
This architecture bridges the best of both worlds: **complete local storage on the Proxmox host's native ZFS** on the inside, with **enterprise-grade reliability and zero open firewall ports** on the outside.
This project is queued up right after I finish upgrading the UniFi core network and the lab server itself. Once the hardware and core network foundation are in place, I'll work through the checklist above and share the Terraform modules, IAM least-privilege policies, and Stalwart configuration notes in upcoming logs.
---
# The Sunk Cost of Homelab Sprawl: Knowing When to Liquidate Silicon
- URL: https://www.stuurman.com/blog/2026-11-08-the-sunk-cost-of-homelab-sprawl-knowing-when-to-liquidate-silicon/
- Published Date: Nov 08, 2026
- Tags: Homelab, Hardware, Systems, Architecture, Infrastructure
- Description: Why keeping cold spares, temperamental memory, and decommissioned enterprise switches is an operational trap—and the brutal solar and battery reality check of continuous idle rack draw.
Every homelab operator knows the mental trap. It starts with an architectural vision: high availability, distributed quorum, offsite sync targets, or isolated sandbox nodes. Then reality settles in. Workloads stabilize, time becomes scarce, and suddenly a shelf in your workspace turns into a graveyard of high-end silicon.
Sitting on that shelf isn't just generic clutter. Right now, it looks like this:
- **Two AMD Ryzen Threadripper 2920X CPUs**: 12 cores / 24 threads each (24C/48T combined across two single-socket platforms), collecting dust.
- **Two ASRock X399M Taichi Micro-ATX motherboards**: Rare, niche form-factor boards with 4-channel memory and ample PCIe lanes.
- **Two Noctua NH-U9 TR4-SP3 coolers**: Superb compact thermal mass, currently moving zero air.
- **128 GB of DDR4 ECC UDIMM memory across eight 16 GB sticks**: Temperamental modules prone to silent training failures or multi-day lockups.
- **Two MikroTik CRS326-24S+2Q+RM switches**: Dense 24-port 10G SFP+ / 2-port 40G QSFP+ switches, decommissioned in favor of a unified ecosystem.
- **MikroTik CRS328-24P-4S+RM**: 24-port Gigabit PoE+ switch with 4× 10G SFP+ cages and a massive 450W power budget—a genuinely capable, high-value switch sitting powered off because the rack moved to a unified UniFi switching tier.
This hardware represents substantial initial capital and hundreds of hours of sheer folly. The natural instinct is to leave them boxed up: *"What if I spin up a dedicated 3-node Ceph cluster next quarter? What if a primary board dies and I need a cold spare? What if I need redundant 10G/40G backplanes down the road?"*
Here is why that logic is a sunk-cost trap—and why liquidating this specific hardware is the smarter infrastructure move.
---
## 1. The Fiction of the "Cold Spare"
Keeping an identical spare CPU, motherboard, or high-density switch makes sense in an SLA-governed datacenter running revenue-generating workloads. In a personal lab, a cold spare is an aggressively depreciating liability.
The first- and second-generation Threadripper platforms (TR4) occupied a sweet spot for high PCIe lane counts and affordable multi-channel memory. But with modern desktop architectures delivering higher single-thread throughput, modern instruction sets, and substantially lower power envelopes, TR4 market demand is on a timer. Every month these 2920X chips and X399M Taichi boards sit unpowered on a shelf, their resale value erodes. A platform that can still fetch a respectable sum on secondary markets today will be e-waste in three years.
The same rule applies to the switches. Those 24-port MikroTik SFP+ switches once felt indispensable for a high-bandwidth Ceph backplane. But once you standardize on a single, clean UniFi ecosystem (like a UDM Pro managing your network core), holding enterprise routing and switching spares just adds dormant configuration overhead.
---
## 2. The Time Sink of Unstable Silicon
Hardware stability is binary: it either works without intervention, or it costs you mental energy.
Take the 128 GB kit of unbuffered ECC memory. When a memory bank refuses to run clean passes—inducing random OS freezes every 24 to 48 hours—it ceases to be usable lab hardware. Keeping flaky RAM around with the vague hope that a future BIOS patch, sub-timing tweak, or down-clocking will magically stabilize it is a fallacy. Troubleshooting sporadic bit-flips or wrestling with memory training takes hours that could be spent on meaningful projects.
Holding onto a high-spec CRS328-24P-4S+RM PoE switch "just in case" you expand cameras or access points runs into the same trap when your core rack has already settled on a single UniFi pane of glass. Listing valuable surplus gear and unstable kits transparently on secondary markets frees up both physical drawer space and mental troubleshooting debt.
---
## 3. Idle Power & The Solar/Battery Reality Check
In homelab planning, power consumption is often brushed aside with *"it's mostly idle anyway."* But continuous idle draw runs 24 hours a day, 365 days a year. When your home relies on a rooftop solar array paired with residential battery storage, parasitic rack loads stop being theoretical—they directly compete with household resilience.
Comparing a 3-node Threadripper cluster with enterprise switching against a consolidated single-node host on a clean UniFi core reveals a non-negligible operational gap:
| Architecture Metric | 3-Node Ceph Cluster + Enterprise Switching | Single-Node Host + UniFi Core | Operational Variance / Savings |
| :--- | :--- | :--- | :--- |
| **Hardware Composition** | 3× TR 2920X (~90W ea) 2× MikroTik CRS326 (~35W ea) 1× MikroTik CRS328-24P (~30W) | 1× TR 2920X + LSI HBA (~85W) 1× UniFi UDM Pro (~20W) | Core footprint reduction |
| **Continuous Idle Draw** | **~370 W** | **~105 W** | **-265 W (-71%)** |
| **Daily Consumption** | 8.88 kWh / day | 2.52 kWh / day | -6.36 kWh / day |
| **Annual Consumption** | 3,241 kWh / year | 920 kWh / year | -2,321 kWh / year |
| **Annual Electricity Cost (~¥31/kWh)** | ¥100,471 / year | ¥28,514 / year | **¥71,957 saved / year** |
### The Battery Drain Math: Overnight Survival
The financial line item (saving roughly ¥72,000 annually) is only half the story. The real breaking point is battery capacity during non-generating hours.
Between sunset and sunrise—roughly a 14-hour window from 5:00 PM to 7:00 AM—a residential solar system produces zero watts. The household runs entirely on battery storage and the grid.
- **Under the 3-node cluster architecture (370W load)**: Over 14 hours, the rack consumes **5.18 kWh** of electricity purely in standby. On a standard 5 kWh home battery storage system (which typically provides 4.0 to 4.5 kWh of usable depth-of-discharge), the server rack alone completely drains the home battery before 11:00 PM. The moment heavy rain or consecutive overcast days strike, the battery cannot buffer basic household baseloads, forcing expensive grid import.
- **Under the single-node architecture (105W load)**: Over the exact same 14-hour overnight window, the entire single-host stack sips just **1.47 kWh**. That leaves roughly 3.0 kWh of usable battery headroom for refrigeration, LED lighting, and essential domestic circuits.
> High availability sounds great until you realize your quorum cluster is burning an entire home battery pack every single night just to keep idle CPU cores warm.
---
## 4. Capital Recycling: Fund What You Actually Use
Letting go of hardware isn't admitting defeat or taking a loss—it is **capital recycling**.
Liquidating two Threadripper CPUs, two rare Micro-ATX boards, Noctua coolers, and surplus MikroTik switching gear generates immediate liquid capital. That capital can be rolled straight into infrastructure that delivers tangible, daily improvements:
1. Completing clean 10G optical runs and fiber patch runs.
2. Reliable, high-density storage drives with clean SMART telemetry.
3. Rock-solid, verified memory for the single host that actually runs your services.
And in truth, once you start pulling this thread, keeping even the *third* Threadripper running is hard to justify. A 12nm Zen+ platform still burns ~85W at idle just to keep its uncore and PCIe lanes energized. Liquidating all three kits doesn't just clean the shelf—it fully finances a modern, power-sipping platform (like modern AM5 with DDR5 ECC) that runs circles around the 2920X in single-thread IPC while cutting idle draw in half again.
---
## The Verdict: Clear the Shelf
A homelab exists to serve your experiments, automate your home, and keep your critical data safe. It should never be an archive of depreciating silicon waiting for projects that never materialize.
Single-node compute with local ZFS snapshots and automated offsite synchronization isn't a compromise—when you're actively working to minimize grid dependence, it's the only architecture that makes operational sense.
If hardware hasn't handled an active workload, passed a clean validation run, or been powered on in six months, unmount it, pack it cleanly, document its exact status, and sell it. You’ll gain a cleaner rack, lower standby power draw, and the budget to build what you actually need today.
---
# I Can't Draw, So I Hired a Robot Design Team: Making the HOME-LAB.net Logo
- URL: https://www.stuurman.com/blog/2026-11-07-i-cant-draw-so-i-hired-a-robot-design-team/
- Published Date: Nov 07, 2026
- Tags: AI, Design, Homelab, AstroJS, Reflection
- Description: I'm an infrastructure engineer who can't draw a straight line. Here's how a dozen rounds of 'nope, try again' with an AI design assistant turned into a logo I actually love for my homelab.
I can design a multi-region network. I can untangle a Terraform state file at 2 a.m. What I cannot do is draw a logo.
Every time I've tried, I end up in the same place: a monospace font, a little `>_` prompt, and a quiet voice saying "this is fine, developers love this." It is not fine. It looks like every other side project on the internet.
So when I started planning **home-lab.net**, the home for my homelab, I wanted something better. Not a corporate mark, just a small, honest logo that felt like a sibling to the one on this site, and looked good whether it was tiny in a browser tab or sitting at the top of a page.
I can't draw. But I can *react*. I know instantly when something looks right and when it looks wrong. So I tried an experiment: let an AI design assistant throw ideas at me, and I'd play art director with nothing but gut feelings and short sentences.
It took twelve rounds, 23 mood boards, and 49 little vector files. Here's how it went.
---
## Round one: more server, more server, MORE SERVER
My first instinct was literal. It's a homelab, so the logo should look like a server, right?
So the early sketches were gloriously over-the-top: tiny drive bays, rack ears with little screw holes, honeycomb air vents, network ports, even a miniature status screen. I asked for "more obviously server-like" and the assistant happily obliged.
It was impressive for about thirty seconds.
Then I imagined those logos at the size they'd actually appear, a thin bar at the top of a web page, and everything turned to visual noise. All those lovingly detailed drive bays shrank into a smudge. A logo has to survive being small, and mine couldn't.
EARLY ATTEMPT // "MORE SERVER-LIKE"TOO BUSY
## The lesson I kept relearning: take things away
Here's the thing I didn't expect. Almost every good decision in this project was a *subtraction*.
I'd look at a board of eight ideas and feel nothing. Then one of them would make me lean forward. It wasn't the fanciest. It was the simplest: **three plain white bars stacked on top of each other**, each with a little slot on the left, and one tiny glowing blue light on the top one.
That's it. Three bars. But somehow it said "server" and "stack of things quietly doing their job" and "someone cares about tidy cable management," all at once.
From there, every round was me saying some version of "now remove something":
- **"Lose the rounded square behind it."** The bars looked better floating on their own.
- **"Make the bottom bar sit on the line."** The underline under the name now starts *after* the bottom bar, with a small gap. It looks like the bar is holding the whole line up.
- **"Make `.net` blue."** The little light on the top bar and the `.net` now match, a quiet wink between the two ends of the logo.
None of these were technical decisions. They were just me squinting and going "hmm, less."
## The part where the robot got it wrong
My favorite moment came near the end. I noticed the three bars were a touch too tall. The top one poked above the letters of "HOME-LAB" like a cowlick, and it was driving me quietly insane.
I asked the assistant to line them up. It dutifully produced a lovely diagram with a neat dashed line labelled "aligned"... and the bar was *still* sticking up above the letters. The picture-making side of the AI understood what an alignment diagram is *supposed to look like*, but it couldn't actually line two things up.
So we switched tactics. Instead of asking for a picture of the logo, the assistant simply wrote the logo as a set of exact measurements, and everything snapped into place: the top of the first bar level with the top of the letters, the bottom bar sitting right on the underline, three bars with equal gaps in between. Done.
That was the real takeaway for me. **The AI's imagination is great for finding ideas, but you want something precise to build the final thing.** Brainstorm with one, finish with the other.
## The finished logo
Here it is, on a dark background and a light one:
DARK
LIGHT
Three bars, one blue light, one line. It works at the size of a browser tab and at the size of a poster. I could not have drawn it, and I could not have described it at the start. I only knew it when I saw it.
## What I'd tell anyone else trying this
1. **You don't need to be a designer, you need taste.** Knowing "not that, closer, now remove something" is a real skill, and you probably already have it.
2. **Ask for lots of options, then pick by feel.** Eight bad ideas on one page make the one good idea jump out. That's cheaper than agonizing over a single attempt.
3. **When the logo has to be precise, use precision.** Let the AI dream up ideas, then have it build the winner carefully.
4. **Keep subtracting.** If you're unsure what to do next, remove one thing and see if you miss it.
The logo is going on home-lab.net once the site is up. In the meantime, I have a very tidy folder of 49 logos that didn't make it, and I'm weirdly fond of every one of them.
---
# Trenching the Yard Like a Data Center: East/West Water Feeds, 220V Corner Drops, and Biological Firewalls
- URL: https://www.stuurman.com/blog/2026-11-07-trenching-the-yard-like-a-data-center/
- Published Date: Nov 07, 2026
- Tags: Homelab, Hardware, Architecture, Reflection, Opinion
- Description: What happens when an infrastructure engineer plans a garden upgrade in Japan—treating spigots like availability zones, over-provisioning 220V corner power for Christmas lights, lecturing garden valves about Zigbee physics, and replacing weeding toil with groundcover.
When you spend your career designing distributed systems and homelab networks, it is physically impossible to turn that part of your brain off when you step outside with a shovel. Normal homeowners look at a backyard and see grass, bushes, and maybe a nice spot for a barbecue. I look at my yard and see single points of failure, unshielded runs, and an unacceptable amount of manual operational toil.
With autumn settling in here in Japan—bringing crisp air, clear skies, and a sun that won't immediately give me heatstroke—I’ve been spending more time outside planning a proper overhaul of the garden. What started as a completely innocent question (*"How do I stop dragging a 30-meter kinked garden hose around every corner of the house like a medieval peasant?"*) rapidly escalated into a full-blown Layer 1 architecture review: multi-region water routing, triple-voltage corner power distribution, wireless protocol trade-offs, and biological firewalling.
Looking at the yard while mentally mapping out pipe and conduit paths gave me an immediate flashback to my **OVHcloud** days. Whenever I visited the data centers, all the surrounding access roads were covered in a rainbow of spray-painted utility markings—red, yellow, blue, and orange lines crisscrossing the asphalt everywhere existing power, cooling water, and fiber runs were buried, while civil crews continuously tried to cram even more conduits into the ground without hitting the old ones.
Here is how a simple weekend gardening project turned into that exact same data center floorplan—minus the asphalt, plus a lot of gravel.
---
## Layer 1: `garden-east-1`, `garden-west-1`, and Trenching Under Gravel
In software, a bad database schema hurts, but you can always write a migration script, run it in a maintenance window, and pretend it never happened. In the yard, a "schema migration" is exponentially worse—especially because we *already* covered the ground in **landscape fabric and gravel**. Digging a new trench now means carefully raking back the gravel so it doesn't mix with the dirt, folding back the weed barrier, excavating the trench, and putting the whole layer cake back together without making a mess.
Fortunately, Past Me had a rare moment of foresight when the house perimeter was set up, leaving the property pre-provisioned like a colocation cage:
- **Dual East & West Water Availability Zones**: Instead of a single outdoor spigot forcing one comically long pipe run all the way around the property (with the water pressure of a tired sigh by the time it reaches the far end), exterior water feeds sit on both the **East** and **West** sides of the house (`garden-east-1` and `garden-west-1`, naturally):
- The **West water supply** feeds the **West and South fence lines** for drip tubing and local hose hookups.
- The **East water supply** feeds the **East fence line**, and will eventually branch up to the **North side**—which already has three conduits waiting in the ground like dark fiber, just no water line pulled through yet.
- **Four-Corner `110V / 110V / 220V` Power Drops & North Conduits**: Every single corner of the house already has a **triple exterior power drop (`110V / 110V / 220V` — two `110V` outlets plus a `220V` feed)** installed specifically for future yard shenanigans, plus those **three pre-installed conduits on the North side**. Do I currently need `220V` of industrial juice at all four corners of my garden? No. Could I theoretically weld a tractor or run a 240V server rack in the hydrangeas if the mood struck? Absolutely. While the final garden endpoints for the remaining electrical runs are still undecided, tossing buried conduit into the trenches while they are already open for the water lines is a no-brainer—especially for powering **Christmas lights and winter decor** along the fence without turning the lawn into an obstacle course of orange extension cords.
```mermaid
flowchart TD
subgraph House["House Perimeter (Pre-Provisioned Core)"]
WestTap["West Exterior Water Supply (garden-west-1)"]
EastTap["East Exterior Water Supply (garden-east-1)"]
CornerPDU["4x House Corners Triple Power Drops (110V / 110V / 220V)"]
LAN["Home LAN Switch"] --> GW["LinkTap Gateway (Long-Range Zigbee / Sub-GHz)"]
end
subgraph Trenches["Buried Yard Trenches (Water + Electrical Conduit)"]
WestTap --> WestTrunk["West Trench Trunk"]
EastTap --> EastTrunk["East Trench Trunk"]
CornerPDU --> NorthConduit["North Side: 3x Pre-Installed Conduits"]
CornerPDU -. "Planned / Undecided" .-> EConduit["Additional Buried Electrical Conduit"]
end
GW -.-> Wireless["Wireless Valve & Flow Control"]
subgraph Zones["Fence-Line Drip Tubes, Hoses & Perimeter Power"]
WestTrunk --> WestSouth["West & South Fence Lines (Drip Tubes & Hoses)"]
EastTrunk --> EastFence["East Fence Line (Drip Tubes & Hoses)"]
EastTrunk -. "Future Water Line" .-> NorthSide["North Side (3 Conduits Ready, Water Pending)"]
NorthConduit --> NorthSide
EConduit -. "Future / Seasonal" .-> XmasPower["Perimeter Outlets & Over-Engineered Christmas Decor"]
end
Wireless -.-> WestSouth & EastFence & NorthSide
```
Rule #1 of trenching is identical to Rule #1 of civil telecom engineering: **the expensive part isn't the pipe; it's the hole**. Digging the trenches once so the East and West water lines and buried electrical conduit share the same path means zero visible hoses and zero trip hazards for the next decade.
---
## The Control Plane: Replacing Fragile Gardena Timers with LinkTap & Zigbee
Once water reaches the fence lines, someone still has to turn the valves on and off. Left to human memory, garden watering follows a predictable bimodal distribution: either the plants are parched for nine days straight, or someone leaves a tap cracked open right before a typhoon.
We originally went with **Gardena** for automated watering, assuming the big heritage brand name meant rock-solid hardware. In practice, the Gardena automation setup hasn't lived up to its reputation at all—the timers and plastic valve assemblies turned out to be surprisingly fragile outdoors. (To give credit where it's due, Gardena is still great for basic hoses and quick-connect fittings—just don't trust their electronics to run your control plane.)
That sent me looking for a proper replacement, which is how I landed on **LinkTap**. What immediately sold me on LinkTap is that their engineers clearly understand radio physics and outdoor failure modes.
Half the "smart garden" gadgets on Amazon try to cram a chatty 2.4 GHz Wi-Fi radio directly inside a plastic water valve sitting two inches off the wet dirt on the far side of a concrete-and-stucco exterior wall. Anyone who has ever debugged Wi-Fi knows how this movie ends:
1. Wet leaves and exterior walls eat 2.4 GHz signals for breakfast, so the valve spends its life reconnect-looping at `-89 dBm`.
2. Maintaining a constant TCP/IP and Wi-Fi handshake chews through AA batteries faster than a 1990s Game Gear.
LinkTap takes the sane systems-engineering approach: a tiny wired gateway plugs into your indoor switch and talks to the outdoor valves on the East and West sides over a long-range, low-power Zigbee mesh protocol:
- **Actual Wall Penetration**: Lower-frequency, low-data-rate mesh packets punch through exterior walls and reach all the way out to the fence lines where standard Wi-Fi gives up the ghost.
- **Two-Year Battery Life**: Because a water valve only needs to exchange a few bytes of state (*"open valve"*, *"still flowing"*, *"closed"*), a pair of AA lithium batteries lasts up to two years.
- **Hardware Circuit Breakers & Telemetry**: If a drip tube pops off, a neighborhood cat chews through a line, or a valve fails to close, the built-in flow meter detects the abnormal flow rate, shuts the valve off, and pushes an alert. It is basically Prometheus alerting and automated circuit-breaking for dirt.
---
## Eliminating Manual Toil: Port-Binding the Rock Wall
Google’s SRE handbook defines **toil** as work that is manual, repetitive, automatable, devoid of enduring value, and scales linearly as a service grows. Whoever wrote that chapter clearly owned a dry-stacked rock retaining wall.
Because our rock wall is built from stacked stone without mortar, the crevices between the rocks form hundreds of tiny, sheltered pockets of soil and moisture. To a weed seed, those crevices are free real estate. Pulling them by hand is the ultimate Sisyphean cron job: you spend two hours clearing the wall on Saturday, it rains on Tuesday, and by the following weekend a brand-new generation of weeds has spun up in the exact same cracks.
Since `apt remove --purge weeds` isn't available in real life, the fix is **biological resource saturation**: intentionally packing low-growing flowers, compact shrubs, and creeping groundcover directly into every joint of the rock wall. Right now I’m leaning toward planting ***Delosperma*** (ice plant)—it’s tough, loves wedging itself into sunny rock crevices, and carpets the stone in bright, pretty flowers. If *Delosperma* and creeping groundcover already occupy 100% of the root space and shade out the gaps, airborne weed seeds have no soil to land on and no sunlight to germinate.
In systems terms: if you don't want rogue processes binding to an open port, bind your own daemon to it first.
---
## Perimeter Firewall Policy: Pyracantha (`DROP`) vs. Star Jasmine (`ACCEPT`)
The final architectural debate is what to plant along the perimeter fences.
Initially, my inner security engineer looked at **pyracantha** (*firethorn*). From a pure perimeter-defense standpoint, pyracantha is a Cisco ASA in shrub form: dense, evergreen, covered in bright berries in autumn, and armed with needle-sharp thorns that will impale anything—human, animal, or stray soccer ball—that attempts unauthorized ingress.
The catch is the operational maintenance cost. A bush armed with two-inch thorns does not distinguish between a burglar and the guy paying the mortgage. Anything that is medieval torture for an intruder to climb through is equally medieval when *you* are the one who has to prune it twice a year, sweep up spiky trimmings where your kid plays, and smell its blossoms in the spring—which, by some cruel joke of botany, smell vaguely like a forgotten gym bag.
After weighing perimeter defense against day-to-day quality of life, I’m dropping the thorny firewall and going with **star jasmine** (*Trachelospermum jasminoides* / テイカカズラ) and similar aromatic climbers instead:
- Evergreen coverage across the fence year-round
- No thorns to stab you every time you trim the fence
- A warm, sweet floral scent across the yard when the weather warms up
Sometimes the best architecture isn't the most locked-down fortress—it’s the system that won't draw blood when you do routine maintenance. Now comes the real physical toil: peeling back all that gravel and landscape fabric to get the trenches dug once and for all—which will almost certainly be outsourced, because every good architect knows when to delegate Layer 1 excavation to a managed service provider.
---
# It Really Is a Series of Tubes: Surviving BGP Leaks, 95th-Percentile Transit, and Backhoes in seriesoftub.es
- URL: https://www.stuurman.com/blog/2026-11-06-series-of-tubes-isp-routing-game/
- Published Date: Nov 06, 2026
- Tags: Networking, Engineering, Architecture, Reflection, Opinion
- Description: Why seriesoftub.es—an open-source browser game where you build an ISP from a single router to a transit-free Tier 1 carrier—is one of the most deceptively challenging networking simulations on the web.
Back in 2006, U.S. Senator Ted Stevens accidentally gave networking engineers their favorite meme of all time when he explained that the internet *"is not a big truck—it’s a series of tubes."*
Twenty years later, [**Series of Tubes (`seriesoftub.es`)**](https://seriesoftub.es/)—an open-source browser game created by [Fabian Jäckel (`fjaeckel/seriesoftubes`)](https://github.com/fjaeckel/seriesoftubes)—takes that quote literally and turns it into what is essentially *SimCity* or [*OpenTTD*](/blog/2026-11-04-trains-signals-and-turing-completeness-in-openttd/) for ISP and network engineers.
At first glance, the cartoon world map and cheerful UI make it look like a casual idle game. Five minutes later, your primary terrestrial fiber trunk has been severed by a stray backhoe, a shark is chewing on your transoceanic subsea cable, your 95th-percentile upstream transit bill is bleeding your bank account dry, and a DDoS attack is melting your core router in Frankfurt.
It is a remarkably fun—and **brutally challenging**—simulation of how the physical internet actually works.
---
## From One Router in One City to Tier 1
You start the game at the bottom of the internet food chain: a tiny local ISP with a single router in a single Point of Presence (PoP), zero peering relationships, and 100% reliance on expensive upstream **IP Transit** to reach the rest of the world.
Your goal is to scale that single box into a **transit-free Tier 1 carrier** spanning global capitals. Getting there forces you to juggle the exact same economic and engineering trade-offs that real network operators sweat over every day:
```mermaid
flowchart TD
subgraph Customers["Customer Traffic Profiles"]
Eyeballs["Home Broadband ('Eyeballs')"]
Ent["Enterprise & Business SLA"]
HFT["High-Frequency Trading (Low Latency)"]
Hyperscale["AI GPU Clusters & Hyperscaler DCI"]
end
Customers --> PoP["Your Regional PoP Router (Line Cards + DWDM / ZR Optics)"]
subgraph Egress["Traffic Economics & Routing Paths"]
PoP -- "Expensive (95th-Percentile Billing)" --> Transit["Upstream IP Transit Provider"]
PoP -- "Cheap Local Offload (Route Servers)" --> IXP["Internet Exchange Point (IXP) Peering"]
PoP -- "High CapEx / Zero Per-Mbps Fee" --> Backbone["Own Terrestrial & Subsea Fiber Ring"]
end
subgraph Hazards["Real-World Network Hazards"]
Backhoe["Backhoe Fiber Cut"] -.-> Backbone
Shark["Subsea Cable Shark Bite"] -.-> Backbone
BGP["BGP Route Leak / Missing RPKI"] -.-> IXP
DDoS["Volumetric DDoS Wave"] -.-> PoP
end
```
---
## Why It’s So Deceptively Hard
If you play `seriesoftub.es` the way you play a standard tycoon game—expanding as fast as possible and signing every customer contract that pops up—you will go bankrupt almost immediately.
Here is where the game’s teeth show up:
### 1. The 95th-Percentile Transit Trap vs. IXP Peering
When you sign up residential broadband customers ("eyeballs") or enterprise networks early on, every megabit they pull from the outside world has to cross your upstream transit provider, billed on the **95th percentile**. If you don't aggressively join **Internet Exchange Points (IXPs)**, peer with route servers, and haul traffic across your own dark fiber to cities where content actually lives, your transit bill grows faster than your customer revenue.
### 2. Not All Bandwidth Is Created Equal
As you grow, you unlock wildly different customer tiers:
- **Home broadband ("eyeballs")**: Steady, predictable residential traffic.
- **High-Frequency Traders (HFT)**: They don't care about bulk throughput—they care about **lowest possible latency** across the shortest physical fiber path between financial hubs.
- **Hyperscaler DCI & AI GPU Data Centers**: Massive elephant flows that look great on a revenue sheet right up until a single contract saturates your router line cards and DWDM optics, causing packet loss across every other customer sharing that backbone link.
### 3. Backhoes, Sharks, and the Myth of "80% Utilization"
In a textbook, running a link at 80% utilization looks efficient. In `seriesoftub.es` (and in production networking), running two parallel links at 80% utilization means **you have zero redundancy**—because the moment a backhoe slices Link A, 160% of the traffic tries to fail over onto Link B, instantly dropping packets and tanking your SLA reputation.
And the game does not hold back on physical and routing chaos:
- **Terrestrial fiber cuts** from construction backhoes knocking out overland links.
- **Subsea cable faults** (including sharks) severing intercontinental routes across the Atlantic or Pacific.
- **BGP route leaks and RPKI mishaps** where a peering session suddenly dumps unexpected traffic onto your network.
- **Volumetric DDoS attacks** that test whether you left enough switching capacity and scrubbing headroom at the edge.
---
## The Best Kind of Systems Sandbox
Playing [**`seriesoftub.es`**](https://seriesoftub.es/) makes invisible infrastructure immediate and tactile. You stop thinking of "the cloud" as an abstract API endpoint and start seeing it for what it really is: undersea glass fibers, optical transceivers, IXP switching fabrics, BGP announcements, and a constant race to build a ring topology before the next backhoe finds your trench.
If you have half an hour to spare—and want to see if you can make it to Tier 1 without getting bankrupted by transit fees or a cut transatlantic cable—give [**seriesoftub.es**](https://seriesoftub.es/) a spin. Just don't blame me when it’s 1:00 AM and you are still optimizing optical line cards between Tokyo, London, and Ashburn.
---
# The 30-Minute "Instant" Cloud Deployment: What AWS Is Actually Doing While Terraform Waits
- URL: https://www.stuurman.com/blog/2026-11-05-the-30-minute-instant-cloud-deployment-greenfield-aws-terraform/
- Published Date: Nov 05, 2026
- Tags: AWS, Terraform, CloudFront, Networking, Infrastructure
- Description: Cloud marketing promises infrastructure in seconds, yet a greenfield multi-region Terraform apply still leaves you staring at a spinner for half an hour. Here is what is actually happening inside the AWS control plane while you wait.
If you listen to cloud keynotes, modern Infrastructure as Code (IaC) is practically instantaneous. You write a few declarative blocks of HCL, type `terraform apply`, and a globally distributed edge architecture materializes out of thin air.
Then you actually run a greenfield `terraform apply` on a brand-new multi-region AWS stack, and you spend the next twenty-five minutes watching your terminal print:
```text
aws_acm_certificate_validation.cert: Still creating... [3m10s elapsed]
aws_s3control_multi_region_access_point.mrap: Still creating... [14m40s elapsed]
aws_cloudfront_distribution.mrap_distribution: Still creating... [6m20s elapsed]
```
After a decade of working on large-scale network and messaging infrastructure, I actually find that 30-minute wait reassuring. Whenever a global system claims to provision "instantly," it usually means it hasn't actually propagated anything to the edge yet—it just wrote a row to a regional database and handed you a `200 OK` while the real convergence happens asynchronously.
When you provision a stack like the one behind this site ([documented in Part 2 of our setup series](/blog/2026-11-03-part-2-provisioning-aws-mrap-cloudfront-terraform-gitlab-ci/))—regional S3 buckets, an S3 Multi-Region Access Point (MRAP), ACM TLS, Route 53, and CloudFront—Terraform isn't just flipping flags in a single data center. It is waiting on three very real, globally distributed state machines to converge across the planet.
Here is what is actually happening under the hood during that 30-minute coffee break.
---
## Timeline of a Greenfield Multi-Region `terraform apply`
Because Terraform builds a Directed Acyclic Graph (DAG) of resource dependencies, it cannot attach an S3 Multi-Region Access Point policy until the MRAP exists, and it cannot finish provisioning the CloudFront distribution until both the MRAP origin and the `us-east-1` TLS certificate are live:
```mermaid
flowchart LR
T0["00:00 Regional S3 Buckets & IAM Roles (~15s)"] --> T1["00:15 – 04:00 ACM DNS Validation (Route 53 INSYNC + ACM Poll)"]
T0 --> T2["00:15 – 18:00 S3 Multi-Region Access Point (Global Anycast Routing Setup)"]
T1 & T2 --> T3["18:00 – 26:00 CloudFront Edge Propagation (600+ Global PoPs + SigV4a OAC)"]
T3 --> T4["26:00 Route 53 Alias Records & MRAP Policy Lock (~15s)"]
```
Each of those three slow stages is constrained by a different piece of distributed systems physics.
---
## Stage 1: The 4-Minute DNS Handshake (`aws_acm_certificate_validation`)
Creating a public TLS certificate in AWS Certificate Manager (`aws_acm_certificate`) takes less than a second. Validating that you actually control the domain (`aws_acm_certificate_validation`) takes anywhere from two to five minutes.
Why the pause?
1. **Route 53 Anycast Convergence**: When Terraform writes the `_acme-challenge` style `CNAME` validation record into your Route 53 Hosted Zone, Route 53 doesn't consider the change committed until every authoritative Route 53 nameserver across its global anycast network acknowledges the new zone serial (`INSYNC`).
2. **Negative Caching & Backoff Polling**: ACM’s validation workers query public authoritative DNS from multiple vantage points to prevent BGP hijacking of domain validation. Rather than hammering your nameservers every 100 milliseconds, the validation state machine polls on an exponential backoff schedule.
> [!WARNING]
> **The External Registrar Trap**: If you registered your domain outside AWS and forgot to update your registrar's `NS` records to match the four nameservers in your Route 53 Hosted Zone *before* running `terraform apply`, `aws_acm_certificate_validation` will sit at `Still creating...` for 45 minutes until the Terraform resource timeout finally kills the run.
---
## Stage 2: The 15-Minute Heavy Lifter (`aws_s3control_multi_region_access_point`)
The single longest wait in the entire stack—often **12 to 20 minutes** on creation or deletion—is `aws_s3control_multi_region_access_point`.
At first glance, an MRAP looks like a simple alias hostname (`.accesspoint.s3-global.amazonaws.com`) pointing at a list of S3 buckets. If it were just a `CNAME` or a round-robin DNS record, it would provision in ten seconds.
Instead, an S3 Multi-Region Access Point provisions a dedicated global routing construct on the AWS Global Accelerator / S3 edge network:
1. **Global Anycast Endpoint Allocation**: AWS allocates a unique global alias and registers routing policies across its edge locations worldwide so that any request signed with `SigV4a` and addressed to your MRAP hostname is ingested at the nearest AWS edge PoP over the AWS private backbone.
2. **Cross-Region Health & Latency Probing**: The MRAP control plane binds your underlying regional S3 buckets (e.g., Tokyo `ap-northeast-1`, Ireland `eu-west-1`, N. Virginia `us-east-1`, Oregon `us-west-2`, Stockholm `eu-north-1`) into an active-active routing table, initializing continuous health checks and replication state tracking across each region's `s3control` endpoint.
3. **Asynchronous Request-Token Polling**: Under the hood, `s3control:CreateMultiRegionAccessPoint` doesn't return an access point—it returns a `RequestTokenARN`. The Terraform AWS provider has to loop on `DescribeMultiRegionAccessPointOperation` until every participating region reports that its local data plane has converged.
That is also why MRAP bucket membership is immutable after creation: you aren't editing a JSON array in a database; you are provisioning a multi-region data-plane routing fabric.
---
## Stage 3: Pushing Config to 600+ Edge PoPs (`aws_cloudfront_distribution`)
Once the ACM certificate is issued and the S3 MRAP is online, Terraform finally creates `aws_cloudfront_distribution`—which adds another **5 to 10 minutes** to the clock.
CloudFront’s architecture splits the world into a centralized **Control Plane** (in `us-east-1`) and a massively distributed **Data Plane** spanning over 600 Points of Presence (PoPs) and Regional Edge Caches worldwide.
When you create a distribution with a `viewer-request` CloudFront Function and native `SigV4a` Origin Access Control (OAC):
- The `us-east-1` control plane compiles your routing table, TLS SNI bindings (`example.com`, `www.example.com`), `Managed-SecurityHeadersPolicy`, and the bytecode for your `viewer-request` JavaScript function.
- It then pushes that bundle out to every edge location around the globe and waits for the fleet to report `Deployed` before Terraform marks the resource complete.
---
## Cold Provisioning vs. Warm Operations
The contrast between **Day 0 provisioning** and **Day 2 operations** is the real takeaway here:
| Operation | What Moves Across the Wire | Typical Duration |
| :--- | :--- | :--- |
| **Initial Greenfield `terraform apply`** | ACM DNS validation + MRAP global anycast setup + CloudFront 600-PoP propagation | **~20–30 minutes** |
| **Subsequent `terraform plan / apply`** | Control-plane state diff against S3 `.tfstate` (`.tflock`) | **~8–15 seconds** |
| **Warm Astro Production Build (`npm run build`)** | Incremental HTML compilation + `.cache/` WebP/AVIF & SHA-256 OG card reuse | **~1.5–2.0 seconds** |
| **Incremental S3 Deploy (`scripts/s3-deploy.sh`)** | Single `list-objects-v2` ETag diff + parallel upload of changed files + targeted CF invalidation | **~5–10 seconds** |
Paying a one-time 25-minute "physics tax" on Day 0 is what buys you sub-10-second deployments and automatic multi-region failover for the rest of the site's life. Next time `terraform apply` hangs at `14m00s elapsed` on an S3 Multi-Region Access Point, don't kill the terminal—AWS is just wiring up your global backbone.
---
# Trains, Signals, and Self-Inflicted Pain: Building Conway’s Game of Life in OpenTTD
- URL: https://www.stuurman.com/blog/2026-11-04-trains-signals-and-turing-completeness-in-openttd/
- Published Date: Nov 04, 2026
- Tags: Engineering, Architecture, Reflection, Opinion
- Description: From childhood hours on Transport Tycoon Deluxe to watching ChuggersLR wire up 4,000 trains and half a million pieces of track into a working computer—why OpenTTD remains the ultimate visual sandbox for fundamental compute concepts.
I grew up playing Chris Sawyer’s *Transport Tycoon Deluxe* as a kid, and—like a lot of people who eventually ended up working in systems and infrastructure—I never really stopped playing its open-source successor, *OpenTTD*, as an adult.
Looking back, *TTD* was probably my first real introduction to systems engineering before I even knew what the term meant. As a kid, you think you are just playing with trains, coal mines, and steel mills. By the time you are an adult trying to optimize a four-lane mainline in *OpenTTD*, you realize you are actually doing packet switching, throughput management, queuing theory, and deadlock prevention—except your packets are 12-tile-long freight trains and a bad routing decision leaves fifty locomotives gridlocked around a single junction.
Most of us are happy when our Cloverleaf junction doesn't jam up under load. And then there are people like **ChuggersLR**, who look at a 1990s transport simulation game and decide to build a working computer inside it.
```youtube
https://www.youtube.com/watch?v=5qA80BwvHnI
Building Conway's Game of Life in OpenTTD — ChuggersLR
```
---
## Explaining Fundamental Compute Visually
What makes this video so good isn't just the absurdity of the premise—it is how clearly and visually it breaks down fundamental computer architecture.
When you learn digital logic in a classroom or a textbook, binary states, logic gates, clock cycles, and memory latches are abstract symbols on a page. In *OpenTTD*, every single one of those concepts becomes physical and immediate:
- **Binary State (`1` and `0`):** A track segment with a train sitting on it trips its block signal to red (`1`). An empty track segment leaves the signal green (`0`).
- **Logic Gates (`NOT`, `OR`, `AND`):** By wiring track loops together with block signals and path signals, a train waiting at a junction can be held back or released depending on whether an adjacent track block is occupied. Suddenly, a train depot and three signals aren't just rail infrastructure—they are an inverter or an `AND` gate.
- **The Clock Saga & Synchronization:** Anyone who has ever debugged race conditions or timing skew in distributed systems will immediately feel at home during the video's "Clock Saga." When your CPU is made of literal trains that take finite time to accelerate, turn corners, and clear signal blocks, keeping the entire machine in lockstep requires a master clock pulse that waits for the slowest path to settle before triggering the next generation.
- **Neighbor Counting & State Transitions:** John Conway’s *Game of Life* has simple rules—a live cell survives with 2 or 3 neighbors, a dead cell is born with exactly 3, and everything else dies—but implementing that in hardware means every single cell in the grid has to poll all eight of its neighbors, tally the count, compare the result, and flip its display state for the next tick.
Watching those primitives come together on screen—seeing signals flip from red to green as trains route through neighbor-counting loops—is one of the most intuitive visual explanations of how low-level compute actually works from the ground up.
---
## The Comedy of Self-Inflicted Engineering Pain
Beyond the technical breakdown, the creator’s dry humor and the sheer, escalating weight of his own self-inflicted pain make it impossible to look away.
Every engineer knows that specific feeling of starting an ambitious side project on a whiteboard, convincing yourself *"how hard could it really be?"*, and then slowly realizing what you have actually signed up for once you hit the implementation phase.
Watching ChuggersLR wrestle with what he calls "player resistance"—fighting the game's UI constraints, hunting down single-tile signaling mistakes across sprawling track blueprints, and scaling the grid up to roughly **4,000 trains and 500,000 pieces of rail**—turns a computer science showcase into a genuine suspense movie. By the halfway mark, you aren't just watching a tutorial anymore; you are actively rooting for him to get the thing across the finish line without losing his mind or watching the entire rail network deadlock.
Pulling off a working cellular automaton at that scale inside *OpenTTD* demands an unbelievable amount of patience, discipline, and stubbornness. Huge respect to ChuggersLR for enduring the pain, explaining the mechanics with great humor, and turning a beloved childhood train game into a living, breathing Turing-complete machine.
---
# Part 1 — Customizing This Astro Theme: Identity, Feature Toggles, and Content
- URL: https://www.stuurman.com/blog/2026-11-03-part-1-customizing-this-astro-theme/
- Published Date: Nov 03, 2026
- Updated Date: Nov 06, 2026
- Tags: AstroJS, Architecture, Tailwind CSS, Design, Engineering
- Description: A practical guide to cloning, running, and customizing this modular Astro 7.4 + Tailwind CSS v4 site—toggling features, choosing your homepage, and adding content without editing a single .astro template.
> [!NOTE]
> This is **Part 1** of a three-part guide on setting up and deploying this site from scratch. The open-source starter theme (**The Navigator**) is available on [**GitHub (`edstuurman/the-navigator`)**](https://github.com/edstuurman/the-navigator) and [**GitLab (`src9061948/the-navigator`)**](https://gitlab.com/src9061948/the-navigator), with a [**Live Interactive Demo on Vercel**](https://the-navigator-sage.vercel.app/):
> - **Part 1 (You are here)**: Local setup, identity, feature toggles, configurable homepage, and content authoring.
> - [**Part 2 (Optional) — Provisioning the Multi-Region AWS Stack with Terraform**](/blog/2026-11-03-part-2-provisioning-aws-mrap-cloudfront-terraform-gitlab-ci/): Setting up AWS S3, CloudFront, SSL certificates, and Route 53 DNS via GitLab CI, GitHub Actions, or Local CLI.
> - [**Part 3 — Automated CI/CD Pipelines & Deploying to Any Static Host**](/blog/2026-11-03-part-3-ci-cd-pipelines-dry-run-mode-and-static-hosting/): Zero-config deployment to Vercel, Netlify, or Cloudflare Pages, plus GitHub Actions & GitLab CI pipelines.
When I first built this site on [Astro 5](/tags/astrojs/) a year ago—before evolving it into the current **Astro 7.4** and **[Tailwind CSS v4](/tags/tailwind-css/)** theme—it started the way most personal engineering sites do: my name, domain, bio paragraphs, social links, and navigation items were scattered directly across a dozen `.astro` page templates and layout files.
That works fine when a repository only ever serves one person. It becomes a headache the moment you want to release the codebase as a clean, open-source starter theme—or when you want to turn off sections you don't need without hunting through templates, menus, and feeds.
We designed the architecture around a single rule: **you can customize 100% of your identity, layout, bio, blog posts, career timeline, and photo gallery—and even turn entire sections (`blog`, `photography`, `log`, `now`, `about`, `tags`, `contact`, `contactForm`, `rss`, `llms`) on or off or choose which page serves as your `/` homepage—without ever opening an `.astro` template file.**
Here is how the configuration, content folders, and data files fit together—and the step-by-step guide to making the site your own.
---
## How the Project Is Organized
Instead of mixing personal content with layout code, `src/` is split into three simple layers that build your static site:
```mermaid
flowchart TD
subgraph Configs["1. Configuration Files (src/*.config.ts)"]
SC["src/site.config.ts (Your Name, Domain, Bio, Avatar, Social Links)"]
TC["src/theme.config.ts (Feature Toggles, Default Homepage, Logo, Nav, Integrations)"]
end
subgraph Content["2. Markdown Pages & Posts (src/content/)"]
PG["src/content/pages/*.md (Page Titles & Intro Copy: home, about, now, contact...)"]
BL["src/content/blog/*.md (Blog Articles)"]
LG["src/content/log/*.md + CHANGELOG.md (Short Status Notes & Release History)"]
PH["src/content/photography/*.md (Photo Titles, Stories & Dates)"]
end
subgraph Data["3. Structured Data (src/data/)"]
EX["experiences.ts (Career Timeline)"]
RC["recommendations.ts (Peer Recommendations)"]
TT["techTerms.ts (Technical Term Tooltips)"]
end
subgraph Outputs["4. Static Site Output (dist/)"]
HTML["Static HTML Pages & Photo Lightbox"]
OG["1200x630 Social Preview Cards (/og/*.jpg)"]
FEEDS["Sitemap, RSS/Atom & AI Feeds (/llms.txt)"]
end
Configs --> Outputs
Content --> Outputs
Data --> Outputs
```
- **`src/*.config.ts`** controls **who owns the site** (`site.config.ts`) and **which features and integrations are enabled** (`theme.config.ts`).
- **`src/content/`** holds your **Markdown pages and posts** (`pages`, `blog`, `log`, `photography`), supporting diagrams, YouTube embeds, callout boxes, and automatic term tooltips.
- **`src/data/`** holds **structured lists** (`experiences.ts` for your career timeline, `recommendations.ts` for peer quotes, and `techTerms.ts` for hover definitions).
---
## Step 1: Local Prerequisites & Quickstart
Before cloning and running the theme locally, make sure you have:
- **Node.js `>= 20`** and `npm`
- **Playwright Chromium** *(used at build time to render Markdown Mermaid diagrams into crisp inline SVGs)*
- *(Optional)* **A [Formspree](https://formspree.io/) account (free)** — only needed if you want the embedded message form on `/contact/`, `/about/`, and blog posts. Set `features.contactForm: false` or leave the endpoint blank to use simple email and social links instead.
- *(Optional)* **An [Umami](https://umami.is/) account or self-hosted instance** — if you want privacy-friendly analytics (`integrations.umami` in `src/theme.config.ts`).
- *(Optional)* **A GitLab or GitHub account (free)** — for repository hosting and automated CI/CD builds.
Clone the starter repository from **GitHub** or **GitLab** and start the development server:
```bash
# 1. Clone from GitHub (or GitLab: https://gitlab.com/src9061948/the-navigator.git)
git clone https://github.com/edstuurman/the-navigator.git
cd the-navigator
npm ci
# 2. Install headless Chromium for build-time diagram rendering
npx playwright install chromium
# 3. Start the local dev server at http://localhost:4321
npm run dev
```
To run a full production build and preview the generated `./dist/` folder locally:
```bash
npm run build
npm run preview
```
> [!TIP]
> **Fast Warm Builds**: Optimized images and social preview cards are cached in `.cache/`. While the very first build takes ~45–60 seconds to process all sample photos and preview cards, subsequent builds finish in **~1.5 to 2 seconds**.
---
## Step 2: Configure Your Identity (`src/site.config.ts`)
Start by opening `src/site.config.ts`. This file holds your site URL, name, bio, portrait, and social links:
```ts
export const siteConfig: SiteIdentityConfig = {
site: {
url: 'https://www.example.com',
domain: 'example.com',
title: 'Alex Mercer',
description:
'Alex Mercer — Principal Cloud & Platform Architect. Distributed edge systems, multi-region AWS infrastructure, Terraform automation, and architectural photography.',
locale: 'en_US',
language: 'en-us',
timeZone: 'America/Los_Angeles',
defaultKeywords: [
'Alex Mercer',
'example.com',
'Platform Architect',
'Site Reliability Engineering',
'Terraform',
'AWS',
'CloudFront',
'Astro',
'Tailwind CSS',
],
},
author: {
name: 'Alex Mercer',
alternateName: 'Alexander Mercer',
avatar: 'author.jpg', // Small circular chip on blog & log cards (src/images/author.jpg)
aboutImage: 'author.jpg', // Large portrait on /about/ (can be a separate photo in src/images/)
tagline: 'Cloud & Platform Architecture',
jobTitle: 'Principal Cloud & Platform Architect',
bio: 'Principal Cloud & Platform Architect specializing in multi-region edge infrastructure, declarative Terraform automation, high-throughput distributed systems, and architectural photography.',
location: 'San Francisco, CA',
email: 'alex@example.com',
knowsAbout: [
'Cloud Architecture',
'AWS Multi-Region Infrastructure',
'Terraform',
'Site Reliability Engineering',
'Linux Systems',
'Edge Networking',
'Static Web Architecture',
],
},
socials: {
github: 'https://github.com',
gitlab: 'https://gitlab.com',
linkedin: 'https://www.linkedin.com',
instagram: 'https://www.instagram.com',
// Optional: twitter, bluesky, mastodon (omit or leave empty to hide)
},
};
```
Updating `src/site.config.ts` automatically updates your name, domain, portrait (`src/images/author.jpg`), social links, RSS/Atom feeds, sitemap, and search engine metadata across every page.
---
## Step 3: Toggle Features & Choose Your Homepage (`src/theme.config.ts`)
Next, open `src/theme.config.ts` to choose which sections of the theme you want to use, which page acts as your front page, and how the interface looks:
```ts
export const themeMechanics: ThemeMechanicsConfig = {
logo: {
text: 'ALEX MERCER',
ariaLabel: siteConfig.site.title,
letterSpacing: '0.22em',
fontSize: 14,
showCompass: true,
compassAngle: 42,
},
integrations: {
formspree: {
endpoint: 'https://formspree.io/f/your-form-id', // Optional: leave empty or set contactForm: false to hide
},
umami: {
enabled: false,
scriptUrl: 'https://cloud.umami.is/script.js',
websiteId: '',
},
},
navigation: {
items: [
{ label: 'Home', href: '/', enabled: true },
{ label: 'About', href: '/about/', enabled: true },
{ label: 'Now', href: '/now/', enabled: true },
{ label: 'Blog', href: '/blog/', enabled: true, activePrefixes: ['/tags'] },
{ label: 'Photography', href: '/photography/', enabled: true },
{ label: 'Log', href: '/log/', enabled: true },
{ label: 'Contact', href: '/contact/', enabled: true },
],
},
features: {
defaultHomePage: 'home', // 'home' | 'blog' | 'about' | 'now' | 'photography' | 'log' | 'tags' | 'contact'
home: true,
about: true,
now: true,
blog: true,
photography: true,
log: true,
tags: true,
contact: true,
contactForm: true,
rss: true,
llms: true,
},
pagination: {
olderBlogsCount: 20,
logCount: 20,
galleryCount: 50,
homepageCarouselCount: 7,
},
openGraph: {
brandLabel: 'ALEX MERCER',
locationPinLabel: siteConfig.author.location,
},
tooltips: {
enabled: true,
autoLink: 'first', // 'first' | 'all' | 'off'
},
footer: {
siteColumnTitle: 'Example.com',
showPoweredBy: true,
poweredByLinks: [
{ label: 'AWS S3', href: 'https://aws.amazon.com/s3/', icon: 's3' },
{ label: 'AWS MRAP', href: 'https://aws.amazon.com/s3/features/multi-region-access-points/', icon: 'mrap' },
{ label: 'AWS CloudFront', href: 'https://aws.amazon.com/cloudfront/', icon: 'cloudfront' },
{ label: 'Colophon', href: '/blog/2026-11-03-part-2-provisioning-aws-mrap-cloudfront-terraform-gitlab-ci/', icon: 'info', highlight: true },
],
showThemeAttribution: false, // Set to `true` to display the optional footer credit
},
};
```
### What You Can Toggle & Customize Here
1. **Turn Any Section On or Off (`features` & `navigation`)**:
- Don't need a photography gallery, a `/now/` page, or an activity log? Set `photography: false` (or `enabled: false` on its item in `navigation.items`).
- Turning a feature off removes it completely—skipping its pages at build time and automatically removing its navigation links, homepage carousel, `/log/` filter tab, `/tags/` section, sitemap entries, and RSS/AI feed items.
2. **Choose Your Front Page (`features.defaultHomePage`)**:
- By default, `/` renders the multi-stream `home` overview with carousels.
- Want your blog index or about page to be the front page of your site? Set `defaultHomePage: 'blog'` (or `'about'`, `'photography'`, `'log'`, `'now'`, `'tags'`, `'contact'`) and that section is rendered directly at `/`.
3. **Optional Contact Form & Feeds (`contactForm`, `rss`, `llms`)**:
- **Formspree (`contactForm` & `integrations.formspree.endpoint`)**: Completely optional. Paste a free Formspree URL to enable the message form on [`/contact/`](/contact/), [`/about/#contact`](/about/#contact), and at the bottom of blog posts—or set `contactForm: false` (or leave `endpoint` blank) to hide the form and display your email and social links instead.
- **RSS & AI Feeds (`rss`, `llms`)**: Set `rss: false` to disable `/rss.xml` and `/atom.xml`, or `llms: false` to disable `/llms.txt`, `/llms-full.txt`, and `/llms.json`.
- **Umami Analytics (`integrations.umami`)**: Optional privacy-friendly analytics (`enabled: true/false`).
4. **Header Logo, Social Preview Cards & Tooltips (`logo`, `openGraph`, `tooltips`, `footer`)**:
- **`logo`**: Change the SVG header text, font size, letter spacing, and compass icon.
- **`openGraph`**: Set the `brandLabel` and `locationPinLabel` shown on generated 1200×630 social preview cards.
- **`tooltips`**: Automatically turns the first mention of technical terms from `src/data/techTerms.ts` in each article into a hover/tap definition card (`autoLink: 'first' | 'all' | 'off'`).
- **`footer`**: Customize footer links, toggle the "Powered by" column (`showPoweredBy`), or toggle the theme credit (`showThemeAttribution`).
---
## Step 4: Edit Page Titles & Intro Copy (`src/content/pages/`)
Every top-level page (`/`, `/about/`, `/now/`, `/contact/`, `/blog/`, `/log/`, `/photography/`, and `/tags/`) reads its title, description, headings, and intro copy from Markdown files in **`src/content/pages/`**:
| File | Route | What You Customize Here |
| :--- | :--- | :--- |
| `src/content/pages/home.md` | [`/`](/) | Homepage title, hero intro card, optional `setupGuide` quickstart banner, and carousel section titles. |
| `src/content/pages/about.md` | [`/about/`](/about/) | Your biography paragraphs (in the Markdown body), spoken `languages` badges, and `faq` accordion items. |
| `src/content/pages/now.md` | [`/now/`](/now/) | Your `/now` status cards (Location, Current Focus, Projects, Reading). |
| `src/content/pages/contact.md` | [`/contact/`](/contact/) | Contact page intro text, timezone/response-time labels, and form heading. |
| `src/content/pages/blog.md` | [`/blog/`](/blog/) | Blog page title, description, and archive heading. |
| `src/content/pages/log.md` | [`/log/`](/log/) | Activity log page title, description, and heading. |
| `src/content/pages/photography.md` | [`/photography/`](/photography/) | Photo gallery page title and description. |
| `src/content/pages/tags.md` | [`/tags/`](/tags/) | Topic index page title, description, and heading. |
> [!TIP]
> **Hiding the Starter Quickstart Banner on `/` (`setupGuide.enabled: false`)**: In **The Navigator** starter template, `src/content/pages/home.md` includes `setupGuide.enabled: true` to show the 3-step onboarding banner inside the homepage hero card. Set `enabled: false` under `setupGuide:` in `src/content/pages/home.md` whenever you're ready to hide it.
---
## Step 5: Update Your Career Timeline & Dictionaries (`src/data/`)
Three files in `src/data/` power the career timeline, peer recommendations, and term tooltips:
1. **`src/data/experiences.ts`**: Powers the [career timeline](/about/#experience) on `/about/` and links each role's `tags` to matching topic pages under [`/tags/`](/tags/).
2. **`src/data/recommendations.ts`**: Powers the peer recommendations grid on [`/about/#recommendations`](/about/#recommendations).
3. **`src/data/techTerms.ts`**: Holds ~60 technical term definitions (`Cloud`, `Networking`, `Storage`, `Security`, `Hardware`, `Virtualization`, `Architecture`, `DevOps`, `AI`) that automatically display hover/tap tooltips in your articles.
---
## Step 6: Adding Blog Posts, Logs & Photos
Day-to-day publishing happens in Markdown:
### 1. Blog Articles (`src/content/blog/*.md`)
Create a `.md` file in `src/content/blog/`:
```markdown
---
title: "Designing Resilient Multi-Region Storage"
description: "Practical notes on replication topologies, RPO/RTO trade-offs, and automated failover testing."
pubDate: "Nov 03 2026"
tags: ["AWS", "Infrastructure", "Architecture"]
sectionNav: "h1 to h2"
---
```
- **`sectionNav: "h1 to h2"`**: Automatically builds the floating table-of-contents bar from your article's headings.
- **Built-in Markdown Extras**:
- **Callout Boxes**: Use `> [!NOTE]`, `> [!TIP]`, `> [!IMPORTANT]`, `> [!WARNING]`, or `> [!CAUTION]`.
- **Diagrams**: Standard ` ```mermaid ` code blocks render as inline SVGs with a click-to-zoom lightbox.
- **YouTube Videos**: Use a ` ```youtube ` code block (video URL on line 1, title on line 2) for a privacy-friendly click-to-play video card.
### 2. Activity Logs (`src/content/log/*.md` & `CHANGELOG.md`)
- **Short Status Notes**: Add Markdown files to `src/content/log/YYYY-MM-DD-slug.md`.
- **Release Notes**: Add release headings (`## [YYYY-MM-DD] - Title`) to root `CHANGELOG.md`. They automatically appear in the `/log/` timeline.
### 3. Photography (`src/images/photography/` & `src/content/photography/`)
- Drop `.jpg` photos into `src/images/photography/` (e.g., `1.jpg`) with a matching `src/content/photography/1.md` file containing `id`, `filename`, `title`, `pubDate`, `category`, `location`, `tags`, and optional story notes.
---
## Next Up: Choose Your Deployment Path
Once `npm run build` succeeds locally, your static site is ready in `./dist/`:
1. **Provision the Multi-Region AWS S3 + CloudFront Stack (Optional)**: Continue to [**Part 2 (Optional) — Provisioning the Multi-Region AWS Stack with Terraform**](/blog/2026-11-03-part-2-provisioning-aws-mrap-cloudfront-terraform-gitlab-ci/).
2. **Deploy to Any Static Host (Vercel, Netlify, Cloudflare Pages) or Explore CI/CD**: Jump to [**Part 3 — Automated CI/CD Pipelines & Deploying to Any Static Host**](/blog/2026-11-03-part-3-ci-cd-pipelines-dry-run-mode-and-static-hosting/).
---
# Part 2 (Optional) — Provisioning the Multi-Region AWS Stack with Terraform (GitLab CI, GitHub Actions & Local CLI)
- URL: https://www.stuurman.com/blog/2026-11-03-part-2-provisioning-aws-mrap-cloudfront-terraform-gitlab-ci/
- Published Date: Nov 03, 2026
- Updated Date: Nov 05, 2026
- Tags: AWS, Terraform, CI/CD, Infrastructure, Architecture
- Description: How to provision globally replicated AWS S3 buckets, a Multi-Region Access Point (MRAP), native CloudFront SigV4a Origin Access Control (OAC), ACM SSL, and Route 53 DNS using Terraform 1.10+ via GitLab CI/CD, GitHub Actions, or Local CLI.
> [!NOTE]
> This is **Part 2 (Optional)** of a three-part setup and deployment guide for **The Navigator** ([**GitHub**](https://github.com/edstuurman/the-navigator) · [**GitLab**](https://gitlab.com/src9061948/the-navigator) · [**Live Demo**](https://the-navigator-sage.vercel.app/)):
> - [**Part 1 — Customizing This Astro Theme**](/blog/2026-11-03-part-1-customizing-this-astro-theme/): Local setup, identity & theme configuration, and content authoring.
> - **Part 2 (Optional — You are here)**: Provisioning the multi-region AWS S3 MRAP + CloudFront SigV4a stack with Terraform.
> - [**Part 3 — Automated CI/CD Pipelines, Starter Dry-Run Mode & Deploying to Any Static Host**](/blog/2026-11-03-part-3-ci-cd-pipelines-dry-run-mode-and-static-hosting/): Zero-config deployment to Vercel/Netlify/Cloudflare Pages, dual GitHub Actions & GitLab CI dry-run pipelines, and two-tier S3/CloudFront delta sync.
> [!IMPORTANT]
> **⏱️ Automated Provisioning — Expect ~20–30 Minutes for First-Time Greenfield Creation**:
> While the entire infrastructure stack is automated via Terraform, provisioning from zero for the first time typically takes **20 to 30 minutes** end-to-end inside AWS:
> - **ACM TLS Certificate DNS Validation (`us-east-1`)**: ~2–5 minutes
> - **S3 Multi-Region Access Point (`aws_s3control_multi_region_access_point`)**: **~10–20 minutes** (AWS provisions global anycast routing tables and cross-region control plane endpoints behind the scenes)
> - **CloudFront Global Edge Distribution + MRAP Policy Attachment**: ~5–10 minutes
>
> Grab a coffee during your initial `terraform apply`—subsequent runs and site deployments (`scripts/s3-deploy.sh`) complete in **~10–15 seconds**.
In late 2025, I wrote two posts about hosting this site across multiple AWS regions using an S3 Multi-Region Access Point (MRAP) behind CloudFront ([manual setup](/blog/2025-12-6-aws-mrap-s3-lambda-cloudfront/) and [initial Terraform configuration](/blog/2025-12-18-terraform-aws-mrap-s3/)). Back then, connecting CloudFront to an S3 MRAP required deploying a custom Python `Lambda@Edge` function in `us-east-1` just to re-sign origin requests with `SigV4a`.
Fast-forward to today, and the infrastructure inside this repository's `terraform/` directory is dramatically cleaner, faster, and cheaper to operate. Four major platform improvements allowed us to delete hundreds of lines of boilerplate:
1. **Native CloudFront SigV4a Origin Access Control (OAC)**: CloudFront now supports `signing_protocol = "sigv4a"` natively on S3 Multi-Region Access Point origins. `Lambda@Edge`—along with its cold starts, IAM execution roles, and packaging scripts—is completely gone.
2. **Sub-Millisecond CloudFront Function at `viewer-request`**: A lightweight CloudFront Function handles both naked-to-`www` `301` redirects (`example.com` → `https://www.example.com`) and static directory index rewrites (`/about/` → `/about/index.html`) right at the edge before requests ever touch the origin.
3. **Managed Security Response Headers (`Managed-SecurityHeadersPolicy`)**: Attaches AWS's managed security headers policy (`Strict-Transport-Security`, `X-Content-Type-Options: nosniff`, `X-Frame-Options: SAMEORIGIN`, `Referrer-Policy`, and `X-XSS-Protection`) directly at the CloudFront edge.
4. **Terraform `>= 1.10` Native S3 Locking + AWS Provider `~> 6.0` Per-Resource Region**: Remote state locking uses native S3 `.tflock` lockfiles (`use_lockfile = true`, no DynamoDB table required), and multi-region S3 buckets use the AWS Provider 6.0 per-resource `region` attribute instead of dozens of duplicated provider aliases.
Here is the complete end-to-end guide to provisioning this stack for your own domain—via **GitLab CI/CD**, **GitHub Actions**, or your **Local CLI**.
---
## Multi-Region Request & Replication Topology
When deployed, your static site is replicated across your chosen AWS regions and served globally from the nearest healthy S3 bucket behind CloudFront:
```mermaid
flowchart TD
Visitor["Visitor Browser"] --> R53["Route 53 Public Hosted Zone (A & AAAA Alias Records)"]
R53 --> CF["CloudFront Global Edge Network + ACM TLS Certificate (us-east-1)"]
subgraph Edge["CloudFront Edge Layer"]
CFF["CloudFront Function (viewer-request) 1. 301 Redirect apex → www 2. Rewrite /path/ → /path/index.html"]
OAC["Native Origin Access Control (OAC) signing_protocol = sigv4a"]
end
CF --> CFF --> OAC
OAC --> MRAP["S3 Multi-Region Access Point (MRAP) Global Anycast Endpoint"]
subgraph Storage["Multi-Region Private S3 Buckets (SSE-S3 + Versioning)"]
direction TB
B1["Primary Bucket (ap-northeast-1) is_main = true (CI/CD Upload Target)"]
B2["Replica Bucket #1 (eu-west-1)"]
B3["Replica Bucket #2 (us-east-1)"]
B1 -->|"Cross-Region Replication (CRR)"| B2
B1 -->|"Cross-Region Replication (CRR)"| B3
end
MRAP -->|"Lowest-Latency Geo-Routing & Failover"| Storage
```
---
## Choose Your Deployment Path
You can provision and manage this Terraform stack using whichever workflow fits your setup:
| Path | Best For | How It Runs |
| :--- | :--- | :--- |
| **[Option A — GitLab CI/CD](#step-2a-provision-via-gitlab-cicd-option-a)** | Teams & individuals hosting their repo on **GitLab** | Built-in `.gitlab-ci.yml` manual jobs (`terraform:bootstrap` → `terraform:plan` → `terraform:apply`) |
| **[Option B — GitHub Actions](#step-2b-provision-via-github-actions-option-b)** | Teams & individuals hosting their repo on **GitHub** | One-time `terraform/bootstrap` initialization + `.github/workflows/deploy.yml` automated builds & S3 deploys |
| **[Option C — Local CLI](#step-2c-provision-via-local-cli-option-c)** | Engineers who prefer running Terraform & deployments directly from their workstation | Local `terraform init && terraform apply` + `bash ./scripts/s3-deploy.sh ./dist` |
---
## Prerequisites
Before running `terraform:bootstrap` or `terraform:apply`, make sure you have the following in place:
1. **An Active AWS Account**:
- Standard AWS account with default regions enabled. *(Note: CloudFront OAC for S3 Multi-Region Access Points supports all 17 default-enabled AWS regions; opt-in regions are not supported by AWS for MRAP OAC.)*
2. **A Registered Domain Hosted on Amazon Route 53**:
- Your root domain (e.g. `example.com`) must already exist as a **Public Hosted Zone** in Route 53 (whether registered directly through Route 53 or an external registrar).
- **Verify Nameservers (`NS`) First**: If your domain was registered outside AWS, ensure its `NS` records at your registrar already point to the four Route 53 nameservers listed in your Hosted Zone. During `terraform apply`, `aws_acm_certificate_validation` waits for public DNS validation of the ACM TLS certificate (`example.com` and `*.example.com` in `us-east-1`); if your domain's nameservers don't delegate to Route 53 yet, certificate validation will wait until they do.
3. **AWS IAM Credentials (`AWS_ACCESS_KEY_ID` & `AWS_SECRET_ACCESS_KEY`)**:
- An IAM User or CI/CD role with permissions to provision and manage:
- **S3 & S3 Control**: Regional buckets, versioning, encryption, lifecycle rules, replication, and Multi-Region Access Points (`s3:*`, `s3control:*`)
- **CloudFront**: Distributions, SigV4a Origin Access Control (OAC), and CloudFront Functions (`cloudfront:*`)
- **ACM (`us-east-1`)**: Public SSL/TLS certificate creation and DNS validation (`acm:*`)
- **Route 53**: Hosted Zone lookup plus ACM validation `CNAME` and `A` (IPv4) / `AAAA` (IPv6) Alias records (`route53:*`)
- **IAM**: Creating and attaching the least-privilege S3 Cross-Region Replication role (`iam:CreateRole`, `iam:CreatePolicy`, `iam:AttachRolePolicy`, `iam:PassRole`)
4. **Your Site Domain Configured in `src/site.config.ts` ([Part 1](/blog/2026-11-03-part-1-customizing-this-astro-theme/))**:
- Ensure `site.url` and `site.domain` in `src/site.config.ts` match your Route 53 domain so build-time canonical links, sitemaps, feeds, and Open Graph cards match your live infrastructure.
---
## Step 1: Select Your Active Regions & Domain (`terraform/variables.tf`)
Open `terraform/variables.tf` and inspect `variable "buckets"`. By default, all **17 default-enabled AWS regions** supported by S3 MRAP + CloudFront OAC are pre-listed so you can simply comment out (`#`) the regions you don't need:
```hcl
variable "buckets" {
description = "List of regional S3 buckets behind the Multi-Region Access Point (MRAP)."
type = list(object({
region = string
is_main = bool
priority = optional(number)
}))
default = [
# --- Primary Region (Deploy Target) ---
{ region = "ap-northeast-1", is_main = true }, # Asia Pacific (Tokyo)
# --- Europe ---
{ region = "eu-north-1", is_main = false }, # Europe (Stockholm)
{ region = "eu-west-1", is_main = false }, # Europe (Ireland)
# --- Americas ---
{ region = "us-east-1", is_main = false }, # US East (N. Virginia)
{ region = "us-west-2", is_main = false }, # US West (Oregon)
]
}
```
> [!IMPORTANT]
> **Choose Your Regions Before First Apply**: In AWS, S3 Multi-Region Access Point bucket membership is immutable after creation. Select the regions you want in `terraform/variables.tf` before running your initial `terraform apply`. Exactly one bucket must have `is_main = true`—this is the primary bucket where your CI/CD pipeline uploads build artifacts, which S3 Cross-Region Replication then fans out to all replica regions.
### Setting `environment_domain` (Naked Root Domain)
Whether you pass `environment_domain` via `terraform/terraform.tfvars` (`environment_domain = "example.com"`) or CI/CD variables (`TF_VAR_environment_domain = example.com`), **always set it to your naked root domain without `https://` or `www.`** (for example, `example.com` or `yourdomain.com`).
From that single value, Terraform automatically derives:
- Your S3 state bucket name (`example-com-tfstate`)
- Your regional S3 bucket names (`example-com-ap-northeast-1`, `example-com-eu-west-1`, etc.)
- Your ACM wildcard TLS certificate (`example.com` and `*.example.com`)
- Your canonical `https://www.example.com` primary URL and `301` edge redirect from `https://example.com`
---
## Step 2A: Provision via GitLab CI/CD (Option A)
The repository root `.gitlab-ci.yml` runs on two independent tracks so normal content commits never block on manual infrastructure jobs:
```mermaid
flowchart LR
subgraph Track1["Track 1: Infrastructure (Manual / On terraform/* Changes)"]
TB["terraform:bootstrap (One-time S3 state bucket)"] --> TP["terraform:plan (Saves tfplan artifact)"] --> TA["terraform:apply (Provisions AWS stack)"]
end
subgraph Track2["Track 2: Site Build & Deploy (Every Push to main)"]
BLD["build (Astro build + warm .cache)"] --> DEP["deploytos3 (MD5/ETag delta sync + CF invalidation)"]
end
```
### 1. Add Initial Bootstrap & Provisioning Variables in GitLab
On a brand-new setup, your S3 buckets and CloudFront distribution do not exist yet—so you cannot set `S3_BUCKET` or `CLOUDFRONT_DISTRIBUTION_ID` upfront. Start by opening **Settings → CI/CD → Variables** in your GitLab project and adding only the credentials and domain needed to bootstrap remote state and run Terraform:
| Variable Key | Required? | Example / Default | Purpose |
| :--- | :--- | :--- | :--- |
| `AWS_ACCESS_KEY_ID` | **Required** | `AKIA...` | AWS IAM Access Key ID for Terraform & S3 deploys (Protected, Masked) |
| `AWS_SECRET_ACCESS_KEY` | **Required** | `wJalrXUtnFEMI/...` | AWS IAM Secret Access Key (Protected, Masked) |
| `TF_VAR_environment_domain` | **Required** | `example.com` | Naked root domain in Route 53 (no `https://` or `www.`); auto-derives `-tfstate` |
| `AWS_DEFAULT_REGION` | Optional | `ap-northeast-1` *(default)* | Default AWS CLI region and fallback region for the `-tfstate` bucket |
| `TF_VAR_environment_domain_slug` | Optional | `example-com` *(dots → hyphens)* | Custom prefix override for state bucket and main stack resource names |
| `TF_STATE_BUCKET` / `TF_STATE_REGION` | Optional | `-tfstate` / `AWS_DEFAULT_REGION` | Explicit overrides if you want the Terraform state bucket named or hosted separately |
### 2. Bootstrap Remote State (`terraform:bootstrap` — One-Time Only)
In GitLab **Build → Pipelines** on `main`, click the play button (**▶**) on **`terraform:bootstrap`**. This creates the dedicated, versioned, SSE-S3 encrypted, TLS-enforced `-tfstate` bucket (which also stores native Terraform `>= 1.10` `.tflock` lockfiles).
### 3. Plan & Apply the Multi-Region Stack (`terraform:plan` → `terraform:apply`)
1. Trigger **`terraform:plan`** (or push a change to `terraform/variables.tf`). Terraform initializes against your newly bootstrapped `-tfstate` bucket, validates the configuration across your selected regions in `var.buckets`, and saves the `tfplan` artifact.
2. Review the planned resources in the job log, then click play (**▶**) on **`terraform:apply`** to provision the regional S3 buckets, cross-region replication IAM & rules, S3 Multi-Region Access Point, `us-east-1` ACM certificate, CloudFront distribution, and Route 53 `A`/`AAAA` records *(allow ~20–30 minutes on the first greenfield run)*.
3. At the end of the **`terraform:apply`** job log, Terraform prints your newly created resource identifiers:
```text
Outputs:
active_bucket_regions = [ "ap-northeast-1", "eu-north-1", "eu-west-1", "us-east-1", "us-west-2" ]
cloudfront_distribution_id = "E1A2B3C4D5E6F7"
primary_upload_bucket = "example-com-ap-northeast-1"
primary_upload_region = "ap-northeast-1"
site_urls = [ "https://www.example.com", "https://example.com" ]
```
### 4. Add Deployment Target Variables & Run `deploytos3`
Return to **Settings → CI/CD → Variables** in GitLab and add the two post-provisioning variables from the `terraform:apply` output:
| Variable Key | Value Source (`terraform:apply` output) | Purpose |
| :--- | :--- | :--- |
| `S3_BUCKET` | `primary_upload_bucket` (e.g. `example-com-ap-northeast-1`) | Primary S3 bucket where `scripts/s3-deploy.sh` uploads `./dist` |
| `CLOUDFRONT_DISTRIBUTION_ID` | `cloudfront_distribution_id` (e.g. `E1A2B3C4D5E6F7`) | CloudFront distribution invalidated after S3 delta sync |
Click retry/play (**▶**) on **`deploytos3`** in your pipeline (or push a commit to `main`) to sync `./dist` to your primary S3 bucket and issue a targeted CloudFront cache invalidation.
---
## Step 2B: Provision via GitHub Actions (Option B)
If you host your repository on **GitHub**, the included `.github/workflows/deploy.yml` workflow handles automated Astro builds, S3 delta deployments, and Terraform validation.
### 1. Provision the Initial AWS Stack
Run the one-time Terraform bootstrap and initial apply from your terminal (or a GitHub Codespace) using your AWS credentials:
```bash
# 1. Create the dedicated S3 state bucket (one-time bootstrap)
cd terraform/bootstrap
terraform init
terraform apply -var="environment_domain=example.com"
# 2. Initialize and apply the main multi-region stack (~20-30 mins first run)
cd ..
cp terraform.tfvars.example terraform.tfvars
# Edit terraform.tfvars to set: environment_domain = "example.com"
terraform init \
-backend-config="bucket=example-com-tfstate" \
-backend-config="region=ap-northeast-1"
terraform apply
```
### 2. Configure GitHub Actions Secrets & Variables
Open your GitHub repository **Settings → Secrets and variables → Actions** and add:
**Repository Secrets**:
- `AWS_ACCESS_KEY_ID`: Your AWS IAM Access Key ID
- `AWS_SECRET_ACCESS_KEY`: Your AWS IAM Secret Access Key
**Repository Variables**:
- `TF_VAR_environment_domain`: `example.com`
- `AWS_DEFAULT_REGION`: `ap-northeast-1` (or your primary upload bucket region)
- `S3_BUCKET`: Value of `terraform output -raw primary_upload_bucket` (e.g. `example-com-ap-northeast-1`)
- `CLOUDFRONT_DISTRIBUTION_ID`: Value of `terraform output -raw cloudfront_distribution_id` (e.g. `E1A2B3C4D5E6F7`)
Once `S3_BUCKET` is set in GitHub Actions Variables, `.github/workflows/deploy.yml` automatically switches out of **Starter Template Dry-Run Mode** and builds + deploys your site on every push to `main`!
---
## Step 2C: Provision via Local CLI (Option C)
If you prefer provisioning and deploying directly from your workstation terminal without CI/CD:
```bash
# 1. Create the dedicated S3 state bucket (one-time bootstrap)
cd terraform/bootstrap
terraform init
terraform apply -var="environment_domain=example.com"
# 2. Initialize and apply the main multi-region stack (~20-30 mins first run)
cd ..
cp terraform.tfvars.example terraform.tfvars
# Edit terraform.tfvars to set: environment_domain = "example.com"
terraform init \
-backend-config="bucket=example-com-tfstate" \
-backend-config="region=ap-northeast-1"
terraform apply
```
Once `terraform apply` finishes, build and deploy `./dist` directly from your machine at any time using `scripts/s3-deploy.sh`:
```bash
npm run build
S3_BUCKET="$(terraform -chdir=terraform output -raw primary_upload_bucket)" \
CLOUDFRONT_DISTRIBUTION_ID="$(terraform -chdir=terraform output -raw cloudfront_distribution_id)" \
bash ./scripts/s3-deploy.sh ./dist
```
---
## Under the Hood: Key Terraform Resources
If you are curious how the pieces fit together inside `terraform/`, here are the core building blocks:
### 1. Native SigV4a Origin Access Control & Managed Security Headers (`terraform/cloudfront.tf`)
Instead of routing origin requests through a `Lambda@Edge` signer, `aws_cloudfront_origin_access_control` now speaks `sigv4a` directly to the MRAP endpoint. Note one critical CloudFront detail: because an MRAP hostname ends in `.accesspoint.s3-global.amazonaws.com` rather than `.s3..amazonaws.com`, the distribution's `origin` block **must** include `custom_origin_config` alongside `origin_access_control_id` (omitting `custom_origin_config` causes Terraform to send `S3OriginConfig`, which CloudFront rejects with `The parameter Origin DomainName does not refer to a valid S3 bucket`):
```hcl
resource "aws_cloudfront_origin_access_control" "mrap_oac" {
name = "${local.domain_slug}-mrap-oac"
description = "Native SigV4a Origin Access Control for S3 Multi-Region Access Point"
origin_access_control_origin_type = "s3"
signing_behavior = "always"
signing_protocol = "sigv4a"
}
# Inside aws_cloudfront_distribution.mrap_distribution:
origin {
domain_name = aws_s3control_multi_region_access_point.mrap.domain_name
origin_id = "mrap_origin_id"
origin_access_control_id = aws_cloudfront_origin_access_control.mrap_oac.id
custom_origin_config {
http_port = 80
https_port = 443
origin_protocol_policy = "https-only"
origin_ssl_protocols = ["TLSv1.2"]
}
}
```
Both each regional S3 bucket policy and the Multi-Region Access Point policy lock down `s3:GetObject` strictly to `cloudfront.amazonaws.com` scoped to your `AWS:SourceArn` CloudFront distribution ARN. In addition, `default_cache_behavior` attaches AWS's `Managed-SecurityHeadersPolicy` (`67f7725c-6f97-4210-82d7-5512b31e9d03`) so every response includes `Strict-Transport-Security`, `X-Content-Type-Options: nosniff`, `X-Frame-Options: SAMEORIGIN`, and `Referrer-Policy` headers automatically.
### 2. Apex Redirect & Directory Index Rewriting (`terraform/cloudfront.tf`)
Because an S3 Multi-Region Access Point uses the S3 REST API endpoint rather than the legacy S3 Website endpoint, requests for `/about/` do not automatically resolve to `/about/index.html` on the S3 side. Our `viewer-request` CloudFront Function handles both canonical host redirection and directory index resolution at the edge:
```javascript
function handler(event) {
var request = event.request;
var host = request.headers.host ? request.headers.host.value : '';
// 1. Canonical redirect: naked domain -> www
if (host === 'example.com') {
return {
statusCode: 301,
statusDescription: 'Moved Permanently',
headers: {
location: { value: 'https://www.example.com' + request.uri }
}
};
}
// 2. Static directory index rewrite
var uri = request.uri;
if (uri.endsWith('/')) {
request.uri += 'index.html';
} else if (!uri.includes('.')) {
request.uri += '/index.html';
}
return request;
}
```
---
## Next Up: Automated CI/CD Dry-Run Workflows, Static Hosts & Two-Tier Edge Caching
Now that you know how the optional multi-region AWS stack is provisioned, continue to [**Part 3 — Automated CI/CD Pipelines, Starter Dry-Run Mode & Deploying to Any Static Host**](/blog/2026-11-03-part-3-ci-cd-pipelines-dry-run-mode-and-static-hosting/) for a deep-dive into:
- Deploying `./dist/` to zero-config platforms (**Vercel, Netlify, Cloudflare Pages**)
- How the dual **GitLab CI (`.gitlab-ci.yml`)** and **GitHub Actions (`.github/workflows/deploy.yml`)** pipelines run in **Starter Template Dry-Run Mode** out of the box
- How `scripts/s3-deploy.sh` uses **4-tier split Edge/Browser `Cache-Control` headers** and **MD5-vs-ETag delta sync** to keep CloudFront cache hit ratios near 100% while updating live pages in seconds.
---
# Part 3 — Automated CI/CD Pipelines, Starter Dry-Run Mode & Deploying to Any Static Host
- URL: https://www.stuurman.com/blog/2026-11-03-part-3-ci-cd-pipelines-dry-run-mode-and-static-hosting/
- Published Date: Nov 03, 2026
- Updated Date: Nov 06, 2026
- Tags: CI/CD, Architecture, AWS, CloudFront, AstroJS
- Description: How The Navigator's dual GitLab CI and GitHub Actions pipelines run in 5-second Starter Template Dry-Run Mode out of the box, how to deploy ./dist/ to Vercel, Netlify, or Cloudflare Pages, and how scripts/s3-deploy.sh pairs ETag delta sync with 4-tier Edge/Browser Cache-Control headers.
> [!NOTE]
> This is **Part 3** of a three-part setup and deployment guide for **The Navigator** ([**GitHub**](https://github.com/edstuurman/the-navigator) · [**GitLab**](https://gitlab.com/src9061948/the-navigator) · [**Live Demo**](https://the-navigator-sage.vercel.app/)):
> - [**Part 1 — Customizing This Astro Theme**](/blog/2026-11-03-part-1-customizing-this-astro-theme/): Local setup, identity & theme configuration, and content authoring.
> - [**Part 2 (Optional) — Provisioning the Multi-Region AWS Stack with Terraform**](/blog/2026-11-03-part-2-provisioning-aws-mrap-cloudfront-terraform-gitlab-ci/): Multi-region S3 buckets, MRAP, CloudFront SigV4a OAC, ACM SSL, and Route 53 DNS via GitLab CI, GitHub Actions, or Local CLI.
> - **Part 3 (You are here)**: Deploying to zero-config static hosts (Vercel, Netlify, Cloudflare Pages), dual GitHub Actions & GitLab CI Starter Dry-Run pipelines, and 4-tier S3/CloudFront delta sync.
Because this theme compiles 100% of its pages, responsive WebP/AVIF photography variants, inline SVG Mermaid diagrams, Satori Open Graph social cards, and machine-readable `/llms.txt` indexes at build time into `./dist/` (`output: 'static'`), **you are never locked into a single cloud provider**.
In this final part of the setup series, we cover:
1. How to deploy `./dist/` to zero-config static hosts like **Vercel**, **Netlify**, or **Cloudflare Pages** in under a minute (just like the [Live Interactive Demo](https://the-navigator-sage.vercel.app/)).
2. How the repository's dual **GitLab CI (`.gitlab-ci.yml`)** and **GitHub Actions (`.github/workflows/deploy.yml`)** pipelines use **Starter Template Dry-Run Mode** so fresh forks get green `✅` status badges in ~5–10 seconds without needing AWS credentials upfront.
3. How `scripts/s3-deploy.sh` combines **MD5-vs-ETag delta sync** with **4-tier split Edge/Browser `Cache-Control` headers** so live pages update in seconds while CloudFront edge cache hit ratios stay near 100%.
---
## Option 1: Zero-Config Static Hosting (Vercel, Netlify, Cloudflare Pages)
If you don't need multi-region AWS S3 replication ([Part 2](/blog/2026-11-03-part-2-provisioning-aws-mrap-cloudfront-terraform-gitlab-ci/)), you can host the compiled `./dist/` folder on any static CDN with zero infrastructure setup:
### A. Prebuilt Static Upload (Fastest — Zero Cloud Build Minutes)
Because `npm run build` generates a self-contained `./dist/` directory locally (including pre-rendered inline SVG Mermaid diagrams and cached 1200×630 Open Graph cards), you can upload `./dist/` directly to Vercel, Netlify Drop, or Cloudflare Pages:
```bash
# 1. Build the static site locally into ./dist/
npm run build
# 2. Deploy ./dist/ directly (e.g. Vercel CLI, Netlify CLI, or Cloudflare Wrangler)
npx vercel deploy ./dist --prod
# or: npx netlify-cli deploy --dir=./dist --prod
# or: npx wrangler pages deploy ./dist
```
### B. Automated Git Integration on Vercel / Netlify / Cloudflare Pages
If you connect your GitHub or GitLab repository directly to Vercel, Netlify, or Cloudflare Pages, configure the build settings to install Playwright's headless Chromium binary before running `npm run build` (required by `rehype-mermaid` to compile Markdown `mermaid` fences into inline SVGs):
| Setting | Value |
| :--- | :--- |
| **Framework Preset** | `Astro` |
| **Build Command** | `npx playwright install chromium && npm run build` |
| **Output Directory** | `dist` |
| **Node.js Version** | `22.x` (or `>= 20`) |
---
## Option 2: Dual CI/CD Pipelines with Starter Template Dry-Run Mode
A common frustration with open-source starter templates that include production CI/CD workflows is the **"Red Pipeline on First Fork" problem**: the moment you fork or push the starter repository to GitHub or GitLab, the CI pipeline tries to authenticate with AWS or run `aws s3 sync`, fails because you haven't configured cloud secrets yet, and plasters red `❌` failure badges across your repository.
To solve this cleanly, both **`.gitlab-ci.yml`** (GitLab CI/CD) and **`.github/workflows/deploy.yml`** (GitHub Actions) in **The Navigator** implement **automatic Starter Template Dry-Run Mode**:
```mermaid
flowchart TD
Push["Push to main (GitLab CI or GitHub Actions)"] --> CheckVar{"Is S3_BUCKET configured?"}
CheckVar -->|"No (Default Starter Template)"| DryRun["🧪 Starter Template Dry-Run Mode (~5-10s) • Verifies package.json, astro.config.mjs, src/site.config.ts & src/theme.config.ts • Verifies terraform/*.tf modules • Skips Chromium download & AWS calls"]
DryRun --> GreenBadge["✅ Pipeline Passes (Green Badge) Prints step-by-step setup instructions in job log"]
CheckVar -->|"Yes (Production Site Configured)"| ProdBuild["🚀 Full Production Mode 1. Restores warm .cache/astro & .cache/og-images 2. Runs Astro 7.4 + Playwright Mermaid build 3. Runs scripts/s3-deploy.sh (ETag delta sync) 4. Issues targeted CloudFront invalidation"]
ProdBuild --> LiveSite["🌐 Live Multi-Region Site Updated"]
```
### How Dry-Run Mode Works Under the Hood
When `S3_BUCKET` is empty (the default on a fresh clone or fork):
1. **Build & Deploy Jobs (`build`, `deploytos3`)**: Instead of spinning up a 2 GB headless browser container or failing on missing AWS credentials, the runner verifies that `package.json`, `astro.config.mjs`, `src/site.config.ts`, `src/theme.config.ts`, and `scripts/s3-deploy.sh` are intact, prints a concise onboarding guide in the job log, and exits `0` in **~5–10 seconds**.
2. **Infrastructure Check (`terraform:dry-run`)**: When `TF_VAR_environment_domain` is unset, a lightweight dry-run job verifies that all Terraform modules (`terraform/versions.tf`, `terraform/backend.tf`, `terraform/cloudfront.tf`, `terraform/s3-mrap.tf`, `terraform/acm-route53.tf`, and `terraform/bootstrap/main.tf`) are present and passes with a green `✅` badge.
3. **Zero-Edit Transition to Production**: The moment you add `S3_BUCKET` (and your AWS credentials) in **GitLab CI/CD Variables** or **GitHub Actions Secrets & Variables**, the exact same workflow automatically transitions to full production builds and S3 delta deployments—without editing a single line of `.gitlab-ci.yml` or `.github/workflows/deploy.yml`.
### Enabling Automated CI/CD on Your Fork
To prevent consuming shared runner minutes and avoid redundant builds on the public demo template, automated CI is intentionally disabled on the upstream `the-navigator` repository (`src9061948/the-navigator` / `edstuurman/the-navigator`). CI runs only on the production site (`stuurman`).
When you fork or clone the theme for your own site, here is the exact one-time interaction to enable automated builds:
#### A. For GitLab CI/CD (`.gitlab-ci.yml`)
- **Renamed Projects (Default)**: If you rename your repository to your own domain or project name (e.g. `my-awesome-site`), GitLab CI runs automatically out of the box.
- **Projects Retaining "navigator"**: If your fork retains `navigator` in its project name or path, `.gitlab-ci.yml` includes an upstream guard that skips CI. To enable it, either:
1. Add a CI/CD Variable in **Settings > CI/CD > Variables**: `ENABLE_CI = "true"`.
2. Or delete the first rule (`- if: '$ENABLE_CI != "true" && ($CI_PROJECT_NAME =~ /navigator/i ...)'`) under `workflow: rules:` in `.gitlab-ci.yml`.
#### B. For GitHub Actions (`.github/workflows/deploy.yml`)
- Automated `push` triggers are commented out by default so fresh forks don't trigger unwanted builds until you are ready.
- You can manually test and run the workflow at any time via the **Actions** tab in your GitHub repository (**Run workflow** button).
- To enable automatic builds on every `git push` to `main`, simply un-comment the `push:` block at lines 6–10 of `.github/workflows/deploy.yml`:
```yaml
on:
push:
branches:
- main
tags-ignore:
- '**'
workflow_dispatch:
```
> [!IMPORTANT]
> **Strict Environment Isolation**: Neither `scripts/s3-deploy.sh`, `.gitlab-ci.yml`, `.github/workflows/deploy.yml`, nor `terraform/` in **The Navigator** contain any hardcoded bucket names, distribution IDs, or personal domains. If `scripts/s3-deploy.sh` is invoked locally without `S3_BUCKET` set in your environment, it immediately aborts with an explicit error message (`Error: S3_BUCKET environment variable is required`).
---
## Inside `scripts/s3-deploy.sh`: 4-Tier Edge/Browser Caching & ETag Delta Sync
When deploying to AWS S3 + CloudFront, `scripts/s3-deploy.sh` solves two classic static-hosting bottlenecks:
1. **Unnecessary Re-Uploads**: Standard `aws s3 sync` compares file modification timestamps (`mtime`). Because a static site generator recreates `./dist/` on every build, `aws s3 sync` re-uploads every HTML file, sitemap, and RSS feed even when 99% of your pages haven't changed.
2. **Stale Browser HTML vs. Low Edge Cache Hit Rate**: If you set a single `Cache-Control: max-age=600` header on HTML files, CloudFront has to re-fetch from S3 every 10 minutes—and browsers can still show stale HTML for up to 10 minutes after a deployment.
### 1. Separating Browser TTL (`max-age`) from CloudFront Edge TTL (`s-maxage`)
`scripts/s3-deploy.sh` inspects every file path in `./dist/` and assigns one of four split `Cache-Control` headers:
| Tier | File Patterns | `Cache-Control` Header | Browser Behavior (`max-age`) | CloudFront Edge Behavior (`s-maxage`) |
| :--- | :--- | :--- | :--- | :--- |
| **Tier 1: Fingerprinted Assets** | `_astro/*` (including `/_astro/styles..css`), `yt-thumbs/*` | `public, max-age=31536000, immutable` | Cached **1 year** without revalidation (filenames contain content hashes) | Cached **1 year** at edge |
| **Tier 2: Static Media & OG Cards** | `og/*`, `*.png`, `*.svg`, `*.ico`, `*.webp`, `*.jpg`, `*.jpeg` | `public, max-age=86400, s-maxage=31536000, stale-while-revalidate=86400` | Cached **24 hours** in browser with 24h stale-while-revalidate | Cached **1 year** at edge until explicitly invalidated |
| **Tier 3: Feeds & Indexes** | `*.xml`, `*.txt`, `*.json`, `*.xsl`, `*.webmanifest` | `public, max-age=3600, s-maxage=86400` | Cached **1 hour** in browser/readers | Cached **24 hours** at edge |
| **Tier 4: HTML Documents** | `*.html` (`*`) | `public, max-age=0, s-maxage=31536000, must-revalidate` | **Always revalidates** (`304 Not Modified` in milliseconds; instant updates after deploy) | Cached **1 year** at edge until explicitly invalidated by `s3-deploy.sh` |
Why is **Tier 4 (`public, max-age=0, s-maxage=31536000, must-revalidate`)** so effective for HTML pages?
- **At the CloudFront Edge**: `s-maxage=31536000` tells CloudFront edge POPs to keep HTML pages cached in memory for a full year—eliminating origin fetches to S3.
- **In the Visitor's Browser**: `max-age=0, must-revalidate` tells the browser to check with the nearest CloudFront edge POP on navigation. When nothing has changed, CloudFront returns `304 Not Modified` at the edge in a few milliseconds. When you deploy an update and `scripts/s3-deploy.sh` invalidates that path on CloudFront, every visitor receives the fresh HTML immediately on their very next page load!
### 2. MD5-vs-ETag Delta Sync & Smart Invalidation Collapsing
```mermaid
flowchart LR
Dist["Local ./dist/ Files (Compute MD5 Hashes)"] --> Compare{"Compare Local MD5 vs Remote S3 ETag"}
S3List["aws s3api list-objects-v2 ( Single API Call )"] --> Compare
Compare -->|"Match (Unchanged)"| Skip["⏭️ Skip Upload (Zero S3 PUT cost)"]
Compare -->|"Diff or New File"| Upload["⬆️ Parallel Upload (16x) + Tiered Cache-Control Header"]
Compare -->|"Removed Locally"| Delete["🗑️ Delete Stale S3 Object"]
Upload --> Invalidate["⚡ Smart CloudFront Invalidation • /about/index.html → /about/* • Collapses >15 paths into /*"]
Delete --> Invalidate
```
As detailed in our earlier [GitLab CI S3 deployment optimization write-up](/blog/2026-11-01-optimizing-gitlab-ci-s3-deployments/), on a typical content update:
1. `scripts/s3-deploy.sh` fetches all existing object keys and ETags from your primary S3 bucket in a single `aws s3api list-objects-v2` call.
2. It computes local MD5 checksums across `./dist/` and skips every file whose MD5 matches its remote S3 ETag.
3. Only the handful of modified files are uploaded in parallel (`PARALLEL_JOBS=16`) with tiered `Cache-Control` headers and explicit `--content-type` metadata for `.xsl`, `.webmanifest`, and `.txt` files.
4. Finally, it normalizes the changed paths (turning `/blog/my-post/index.html` into `/blog/my-post/*`) and submits a single CloudFront invalidation request—or automatically collapses the invalidation to `/*` if more than `MAX_INVALIDATION_PATHS` (`15`) paths changed, staying well within AWS's free invalidation tier.
---
## Complete Setup Series Recap
You now have the full picture of **The Navigator**:
1. **[Part 1 — Customizing This Astro Theme](/blog/2026-11-03-part-1-customizing-this-astro-theme/)**: Configure your identity in `src/site.config.ts`, UI mechanics in `src/theme.config.ts`, page copy in `src/content/pages/*.md`, typed datasets in `src/data/*.ts`, and Markdown articles/logs/photos in `src/content/`.
2. **[Part 2 (Optional) — Provisioning the Multi-Region AWS Stack with Terraform](/blog/2026-11-03-part-2-provisioning-aws-mrap-cloudfront-terraform-gitlab-ci/)**: Provision multi-region S3 buckets, an S3 Multi-Region Access Point, native CloudFront SigV4a Origin Access Control, ACM TLS certificates, and Route 53 DNS via GitLab CI/CD, GitHub Actions, or Local CLI.
3. **Part 3 — Automated CI/CD Pipelines & Static Hosting**: Deploy `./dist/` to Vercel/Netlify/Cloudflare Pages in seconds, or let the built-in GitLab CI and GitHub Actions workflows transition seamlessly from 5-second Starter Template Dry-Run checks to production ETag delta deployments.
---
# Chinese Whispers, Letraset Sheets, and the Real Story Behind Lorem Ipsum
- URL: https://www.stuurman.com/blog/2026-11-02-chinese-whispers-and-the-mystery-of-lorem-ipsum/
- Published Date: Nov 02, 2026
- Tags: Design, Reflection, Opinion
- Description: Watching Emily Zhang's deep-dive into the history of Lorem Ipsum from a long-time designer's perspective—how a game of internet telephone invented a 500-year-old myth, and how real archival detective work brought joy to the man at the center of the noise.
If you have spent any meaningful amount of time around graphic design, print layout, or web development over the last few decades, you can probably recite the opening bars of *Lorem Ipsum* in your sleep.
*Lorem ipsum dolor sit amet, consectetur adipiscing elit…*
From a long-time designer’s perspective, that block of scrambled pseudo-Latin is like an old piece of studio furniture. Depending on when you started out, you might remember rubbing it onto paste-up boards from physical Letraset dry-transfer sheets, dropping it into early desktop publishing columns in Aldus PageMaker or QuarkXPress, or pasting it into wireframes and templates today.
Its job has always been the same: to stand in quietly so you can judge the *form* of a page—the typographic color, the rhythm of the rag, the column widths, and the whitespace—without a client or an editor getting derailed trying to proofread unfinished copy. Because it is designed to be looked *at* rather than *read*, almost nobody stops to question where that exact, curiously mangled paragraph actually came from.
Or rather, we thought we already knew.
```youtube
https://www.youtube.com/watch?v=kL1PDqzqhM4
The Unsolved Mystery of Lorem Ipsum — Rabbit Hole (Emily Zhang)
```
I stumbled across Emily Zhang’s documentary on her YouTube channel, *Rabbit Hole*, and couldn't take my eyes off it. What starts as a deceptively simple question about filler text turns into one of the best pieces of historical detective work I’ve seen in years—and a cautionary tale about how easily a game of Chinese whispers can manufacture "history."
---
## How Chinese Whispers Built a 500-Year-Old Myth
For decades, if you looked up the origin of *Lorem Ipsum* on almost any design blog, typography resource, or placeholder generator, you were greeted with the exact same origin story:
> *An unknown printer in the 1500s took a galley of type and scrambled a passage from Cicero to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.*
It sounds romantic. When you are laying out a grid on a screen, there is something poetic about thinking you are sharing a continuous 500-year tradition with a Renaissance typesetter standing over a wooden press in 16th-century Europe.
Except, as Zhang’s investigation lays bare, **none of that 1500s story is true.**
How did an entire industry end up repeating a complete fabrication as settled historical fact? Through a textbook case of Chinese whispers.
Back in the late 1980s and early 1990s, **Richard McClintock**, a Latin scholar and publications director at Hampden-Sydney College in Virginia, grew curious about the dummy text he kept seeing in layout proofs. Spotting the relatively uncommon Latin word *consectetur*, he cross-referenced his classical texts and made a genuine breakthrough: the passage wasn't random gibberish at all. It was carved out of Marcus Tullius Cicero’s 45 BC philosophical treatise *De finibus bonorum et malorum* (*On the Ends of Good and Evil*), specifically sections 1.10.32 and 1.10.33—a passage arguing that no one loves pain (*dolorem ipsum*) for its own sake.
In 1994, when the desktop publishing magazine *Before & After* claimed in print that *Lorem Ipsum* was meaningless nonsense, McClintock wrote a letter to the editor sharing his discovery of the Cicero source. Trying to imagine how Cicero’s words had been chopped up in the first place, he floated an off-the-cuff guess: *perhaps* some 16th-century printer had grabbed a page of Cicero to test out a font.
That single speculative sentence was all it took.
One writer repeated McClintock’s letter, dropping the "perhaps." Another writer copied the first, embellishing the "unknown 1500s printer" into a "type specimen book." Early webmasters scraped those articles for their *Lorem Ipsum* generator landing pages. Within a few years, thousands of websites, textbooks, and encyclopedias were citing one another in a closed loop. The echo chamber amplified a casual guess until the noise completely drowned out the difference between what was *proven* and what was *imagined*.
---
## Doing the Actual Legwork
What makes Emily Zhang’s video so refreshing is that she refuses to play the telephone game. Instead of summarizing secondary sources, she goes straight to physical archives, rare book libraries, and the people who were actually in the room.
Building on textual sleuthing by French sociologist Philippe Cibois and McClintock himself, the trail reveals why a 16th-century origin was impossible from the start. The famous opening word, *Lorem*, isn't a Latin word at all—it is the orphaned second half of the word *dolorem*, sliced in two by a hyphenated page break (`do-` at the bottom of one page, `lorem ipsum` at the top of the next) that only exists in a very specific **1914 Loeb Classical Library edition** of Cicero translated by H. Rackham.
From there, Zhang tracks the jump from that 1914 dual-language book into every designer's hands:
1. **London, 1966 (Letraset):** Before computers, graphic designers mocked up layouts using **Letraset**—sheets of dry-transfer lettering you rubbed onto paper with a stylus. When Letraset needed blocks of "Greeked" body text for their *Body Type* architectural and layout sheets, they wanted something fresh. Near the end of the investigation, early Letraset designer **Dave Farey** connects the final dot: Letraset consulted **James Mosley**, the legendary typography historian and librarian at London’s St Bride Printing Library, who pulled down that 1914 Loeb edition of Cicero.
2. **Seattle, 1987 (Aldus PageMaker):** When desktop publishing arrived, software engineers at Aldus needed sample templates for PageMaker. They didn't consult Renaissance archives; they simply typed up the Letraset rub-down sheets that every designer already had sitting on their studio desk.
3. **Everywhere After:** From PageMaker, the exact same typos, truncations, and 1966 paste-up quirks were copied into Microsoft Word, Quark, InDesign, WordPress, and the modern web—simply because each generation reused what the previous person had left on the workbench.
As a designer, there is something deeply relatable about that truth. Design standards rarely come down from a grand committee on a mountaintop. More often than not, they happen because someone had a deadline on a Tuesday afternoon in 1966, grabbed a book off a library shelf, cut it up with a scalpel to fit a column, and shipped it.
---
## Bringing Joy to the Man in the Middle of the Cacophony
As fascinating as the typographic forensics are, the part of the video that stayed with me longest is the human story at its center.
Rather than treating **Richard McClintock** as a footnote in a Wikipedia citation, Zhang actually travels to Virginia to sit down with him in person. Now an older gentleman, McClintock has spent the last thirty years watching from a quiet distance as the internet turned his name and his 1994 letter into a noisy, distorted legend.
There is a moment in the interview where he sums up the whole surreal experience with disarming honesty:
> *"I actually never set out to become the world expert on this subject. I just wanted things to be right. And this all kind of happened around me."*
Anyone who has ever cared deeply about their craft recognizes that sentiment immediately: *"I just wanted things to be right."* He wasn't chasing clout or trying to invent lore; he was a scholar and publications director who noticed a pattern in a layout proof, traced it back to Cicero, and wanted the record to be accurate. Instead, the internet took his curiosity and spun three decades of cacophony out of it.
Watching Emily Zhang sit across from him—walking through the primary sources together, validating his discovery of the 1914 Loeb edition, owning the 1500s guess with a laugh, and finally piecing together the Letraset and St Bride Library link—you can see the genuine delight on his face. After decades of watching a distorted version of his words bounce around the web, someone finally cared enough to do the deep research, knock on his door, and help finish the puzzle properly.
In an internet increasingly flooded with recycled summaries and zero-effort AI slop—where the game of Chinese whispers now runs at machine speed—watching a creator spend months digging through physical archives and bringing real joy to an elderly scholar who just wanted things to be right is a reminder of how good the web can still be when humans actually care.
---
# Why "aws s3 sync" Was Re-Uploading My Entire Site on Every Push (And How We Fixed Our CI/CD Pipeline)
- URL: https://www.stuurman.com/blog/2026-11-01-optimizing-gitlab-ci-s3-deployments/
- Published Date: Nov 01, 2026
- Tags: CI/CD, AWS, Infrastructure, Performance, AstroJS
- Description: How two sneaky CI/CD traps—npm ci wiping build caches inside node_modules and fresh build mtimes fooling aws s3 sync—turned one-line edits into full 592-file multi-region deployments.
When I moved this site off Amplify and onto a globally replicated S3 Multi-Region Access Point (MRAP) behind CloudFront, I thought the CI/CD pipeline was about as simple and done as a static site pipeline gets: build Astro in one stage, run `aws s3 sync . s3://my-bucket/ --delete` in the next, invalidate CloudFront, and call it a day.
And on paper, it worked. Every push to `main` built cleanly and showed up live a minute or two later.
Wait a minute, though: *why was a one-line typo fix taking a minute or two to build and deploy, and why was S3 Cross-Region Replication chewing through nearly 60 MB of traffic on every single commit?*
Once I actually looked under the hood of our GitLab CI pipeline today, I found two classic infrastructure traps hiding in plain sight.
---
## Trap #1: Caching `node_modules/` When `before_script` Runs `npm ci`
Like most GitLab CI templates for Node projects, my `.gitlab-ci.yml` originally cached `node_modules/` between builds and ran `npm ci` at the start of the build stage:
```yaml
cache:
paths:
- node_modules/
build:
stage: build
before_script:
- npm ci
script:
- npm run build
```
Spot the contradiction?
By design, **`npm ci` deletes the entire `node_modules/` directory** before installing a clean slate from `package-lock.json`. That means caching `node_modules/` in GitLab CI was doing nothing except wasting time zipping and unzipping an archive that `npm ci` immediately nuked on line one.
Worse yet, both Astro’s image optimization cache (`node_modules/.astro/assets/`, holding 284 responsive WebP variants of my [photography](/photography/) gallery) and our custom Satori + Resvg Open Graph card cache (`node_modules/.cache/og-images/`, holding 140 generated 1200×630 PNGs) lived *inside* `node_modules/`.
Locally, warm builds finished in **1.6 seconds** because both caches hit 100%. In CI, `npm ci` wiped both caches on every run, forcing the runner to re-encode 284 WebP photos and rasterize 140 Open Graph images from scratch every single time.
### The Fix: Move Build Caches Out of `node_modules/`
The fix was to separate the package manager cache from the build artifact cache and move both outside `node_modules/`:
1. In `astro.config.mjs`, we pointed Astro’s cache directory to `./.cache/astro`:
```js
export default defineConfig({
cacheDir: './.cache/astro',
// ...
});
```
2. In our Open Graph generator (`generateOgImage.ts`), we moved the SHA-256 content-addressed PNG cache to `./.cache/og-images/`.
3. In `.gitlab-ci.yml`, we cached `.cache/` and `.npm/` keyed on `package-lock.json`, and switched `npm ci` to pull from the local `.npm` tarball cache offline:
```yaml
cache:
key:
files:
- package-lock.json
paths:
- .cache/
- .npm/
build:
image: mcr.microsoft.com/playwright:v1.64.1-noble
stage: build
before_script:
- npm ci --cache .npm --prefer-offline
script:
- mkdir dist
- npx playwright install chromium
- npm run build
```
Now `npm ci` can blow away `node_modules/` all it wants—`.cache/astro` and `.cache/og-images` sit safely outside the blast radius, dropping warm build times from ~60 seconds down to ~1.6 seconds.
---
## Trap #2: Why `aws s3 sync` Re-Uploads Identical Files in CI
With the build stage sorted, I looked at the `deploytos3` stage:
```yaml
deploytos3:
image: registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest
stage: deploytos3
script:
- cd ./dist
- aws s3 sync . s3://example-bucket-primary/ --delete
- aws cloudfront create-invalidation --distribution-id EXXXXXXXXXXXXX --paths '/*'
```
There’s a widespread assumption that `aws s3 sync` hashes your files and only uploads what changed. **It doesn’t.**
By default, `aws s3 sync` compares only two things: **file size** and **last-modified timestamp (`mtime`)**. If a local file has the exact same size as the object in S3 *but* its local `mtime` is newer than the S3 object’s timestamp, `aws s3 sync` assumes the file was modified and uploads it again.
In a static site CI pipeline, `npm run build` generates a brand-new `dist/` folder on every run. Every single HTML file, RSS feed, Open Graph PNG, and WebP photo gets a brand-new `mtime` of "right now." So `aws s3 sync` dutifully re-uploaded all **592 files (58 MB)** on every push.
And because my primary Tokyo bucket (`ap-northeast-1`) replicates via S3 Cross-Region Replication to secondary buckets across Europe, the US, Asia-Pacific, and South America behind our [S3 Multi-Region Access Point](/blog/2025-12-6-aws-mrap-s3-lambda-cloudfront/), every single redundant `PUT` was multiplied across the globe—followed by a blanket `/*` CloudFront invalidation that dumped the edge cache for the whole site.
```mermaid
flowchart LR
Build["Astro Build (dist/) 592 files with fresh mtime"] --> Sync["s3-deploy.sh MD5 vs S3 ETag diff"]
Sync -->|Unchanged MD5| Skip["Skip Upload (0 PUTs)"]
Sync -->|Changed / New| Upload["Upload Only Delta + Targeted CF Invalidation"]
```
---
## Writing an MD5/ETag-Aware Deploy Script (And a Container Gotcha)
To make deploys genuinely incremental without relying on local filesystem timestamps, we wrote a custom `s3-deploy.sh` script.
Instead of trusting `mtime`, the script queries S3 once via `aws s3api list-objects-v2` to grab the `Key` and `ETag` (which for non-multipart objects is simply the hex MD5 digest) of every object currently in the bucket, hashes the local files in `dist/`, and only uploads files that are new or whose MD5 actually changed.
### The First Attempt: `python3: command not found`
My first draft used a short inline `python3` snippet to parse the JSON response from `list-objects-v2` and compute the MD5 diff. It ran great on macOS—and immediately faceplanted in GitLab CI:
```text
./scripts/s3-deploy.sh: line 27: python3: command not found
```
Even though AWS CLI v2 is written in Python, the `registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest` container ships a self-contained embedded runtime for `aws` and strips out a standalone `python3` binary (as well as `jq`). What *is* inside the container? Standard POSIX/GNU coreutils: `bash`, `awk`, `find`, `md5sum`, `sort`, and `tr`.
And honestly, when you have `aws --query` and `awk`, you don't need Python at all.
### The Final Zero-Dependency POSIX Script
By asking the AWS CLI to format its output as tab-separated text (`--query 'Contents[].[Key, ETag, Size]' --output text`), we can feed the remote inventory and a single batch `find ... -exec md5sum {} +` pass directly into `awk`:
```bash
#!/usr/bin/env bash
set -euo pipefail
BUCKET="${S3_BUCKET:-example-bucket-primary}"
DIST_ID="${CLOUDFRONT_DISTRIBUTION_ID:-EXXXXXXXXXXXXX}"
DIST_DIR="${1:-./dist}"
if [ ! -d "$DIST_DIR" ]; then
echo "Error: build output directory '$DIST_DIR' does not exist." >&2
exit 1
fi
cd "$DIST_DIR"
echo "==> Fetching remote object inventory from s3://${BUCKET} ..."
REMOTE_TSV="$(mktemp)"
# Output tab-separated lines: Key \t ETag \t Size
aws s3api list-objects-v2 \
--bucket "$BUCKET" \
--query 'Contents[].[Key, ETag, Size]' \
--output text | tr -d '"' > "$REMOTE_TSV"
echo "==> Remote inventory complete."
LOCAL_TSV="$(mktemp)"
# Compute MD5 for all local files in a single batch (Linux md5sum + macOS md5 -r fallback)
if command -v md5sum >/dev/null 2>&1; then
find . -type f -exec md5sum {} + | sed 's| \./|\t|' > "$LOCAL_TSV"
else
find . -type f -exec md5 -r {} + | sed 's| \./|\t|' > "$LOCAL_TSV"
fi
PLAN_FILE="$(mktemp)"
awk -F'\t' '
NR == FNR {
if (NF >= 2 && $1 != "None") {
remote_etag[$1] = $2
remote_size[$1] = $3
}
next
}
{
md5 = $1
key = $2
local_seen[key] = 1
if (!(key in remote_etag)) {
print "UPLOAD\t" key
} else if (remote_etag[key] != md5) {
# Skip multipart ETag false-positives on immutable _astro/ assets
if (index(remote_etag[key], "-") > 0 && index(key, "_astro/") == 1) {
next
}
print "UPLOAD\t" key
}
}
END {
for (k in remote_etag) {
if (!(k in local_seen)) {
print "DELETE\t" k
}
}
}
' "$REMOTE_TSV" "$LOCAL_TSV" | sort -k1,1r -k2,2 > "$PLAN_FILE"
rm -f "$REMOTE_TSV" "$LOCAL_TSV"
```
Once `awk` emits the `UPLOAD` and `DELETE` plan, the second half of the script applies the changes and collects only the mutable URL paths that actually changed for CloudFront:
```bash
UPLOAD_COUNT=0
DELETE_COUNT=0
CHANGED_PATHS=()
while IFS=$'\t' read -r action key; do
[ -z "${action:-}" ] && continue
if [ "$action" = "UPLOAD" ]; then
UPLOAD_COUNT=$((UPLOAD_COUNT + 1))
if [[ "$key" == _astro/* ]]; then
aws s3 cp "$key" "s3://${BUCKET}/${key}" \
--cache-control "public, max-age=31536000, immutable" \
--only-show-errors
else
aws s3 cp "$key" "s3://${BUCKET}/${key}" \
--only-show-errors
if [[ "$key" == */index.html ]]; then
CHANGED_PATHS+=("/${key%index.html}")
CHANGED_PATHS+=("/${key}")
elif [[ "$key" == "index.html" ]]; then
CHANGED_PATHS+=("/")
CHANGED_PATHS+=("/index.html")
else
CHANGED_PATHS+=("/${key}")
fi
fi
echo " [uploaded] $key"
elif [ "$action" = "DELETE" ]; then
DELETE_COUNT=$((DELETE_COUNT + 1))
aws s3 rm "s3://${BUCKET}/${key}" --only-show-errors
CHANGED_PATHS+=("/${key}")
echo " [deleted] $key"
fi
done < "$PLAN_FILE"
rm -f "$PLAN_FILE"
echo "==> Sync summary: ${UPLOAD_COUNT} uploaded, ${DELETE_COUNT} deleted."
if [ "${#CHANGED_PATHS[@]}" -eq 0 ]; then
echo "==> No mutable routes changed; skipping CloudFront invalidation."
elif [ "${#CHANGED_PATHS[@]}" -gt 25 ]; then
echo "==> ${#CHANGED_PATHS[@]} paths changed (>25); invalidating /* on CloudFront (${DIST_ID})..."
aws cloudfront create-invalidation --distribution-id "$DIST_ID" --paths "/*"
else
echo "==> Invalidating ${#CHANGED_PATHS[@]} changed path(s) on CloudFront (${DIST_ID})..."
aws cloudfront create-invalidation --distribution-id "$DIST_ID" --paths "${CHANGED_PATHS[@]}"
fi
```
---
## What This Buys Us
1. **Zero Redundant S3 Uploads & Replication:** When I fix a typo in a single blog post, the deploy stage now uploads only the 4–5 files whose MD5 actually changed (the post HTML, the blog index, the RSS/Atom/LLM feeds) instead of pushing all 592 files and 58 MB across every replicated S3 region.
2. **Long-Lived Immutable Caching on `_astro/*`:** Content-hashed bundles and WebP photos in `_astro/*` now get `Cache-Control: public, max-age=31536000, immutable` headers on upload, and never trigger a CloudFront invalidation since their filenames are already content-addressed.
3. **Surgical CloudFront Invalidations:** If fewer than 25 mutable routes changed, we invalidate only those exact paths so every other page stays warm at CloudFront edge locations worldwide (and if a site-wide layout tweak touches more than 25 paths, it falls back to `/*` so we stay well inside CloudFront’s free monthly invalidation tier).
Sometimes the best infrastructure improvements aren't adding new services—they're noticing where your defaults are quietly doing 100× more work than necessary.
---
# Stepping Back, Digging In, and Stepping Forward
- URL: https://www.stuurman.com/blog/2026-10-31-stepping-back-digging-in-and-stepping-forward/
- Published Date: Oct 31, 2026
- Tags: Career, Engineering, Infrastructure, Reflection
- Description: Reflections on a two-year hiatus, rebuilding mental bandwidth, and stepping back into production infrastructure.
Two years ago, I logged off.
In an industry obsessed with relentless upward velocity, constant commits, and measuring personal worth by the freshness of your profile activity, deliberately stepping away feels almost unnatural. If you don’t broadcast what you’re shipping every quarter, the prevailing tech myth suggests your engineering instincts will rust away overnight.
It turns out, the opposite is true.
## The Real Cost of Constant Uptime
When you spend years managing high-stakes systems, coordinating incident response, and wrestling complex operational infrastructure, your focus inevitably narrows. You live inside a reactive loop: the next sprint, the next edge-case, the next high-priority customer escalation. You solve hard problems, but you solve them against the clock.
Stepping back for two years gave me something exceedingly rare in tech: uninterrupted mental bandwidth.
I didn’t stop building; I simply stopped building under artificial deadlines. When you aren’t running on ambient adrenaline or fielding pages at 2:00 AM, genuine curiosity takes over again. You tear down your home infrastructure, experiment with cloud primitives, tune hypervisors, and solve physical engineering problems with your hands. You read specifications and protocol docs out of pure interest rather than urgent triage.
Stepping away doesn't dull your edge. If anything, it strips away the fleeting hype cycles and reinforces what actually matters: rock-solid network fundamentals, clean architecture, and the discipline of methodical, root-cause troubleshooting.
## The Reset
The hiatus wasn't just technical—it was personal. It was time grounded in family, watching the seasons changing, literally digging into the earth, and stepping completely outside the corporate perimeter.
Engineers spend careers designing systems to eliminate single points of failure, yet we rarely apply that same redundancy and recovery planning to our own lives. Taking a dedicated reset rebuilds real resilience. You return with clearer priorities, sharper focus, and zero lingering burnout.
## Navigating the ATS Filter
Stepping back into the job market also provided a practical look at modern hiring pipelines.
Modern recruitment relies heavily on Applicant Tracking Systems (ATS). From an engineering standpoint, the parser is straightforward: it matches keywords and flags chronological gaps. If your timeline doesn't look like an unbroken conveyor belt, the filter quietly drops the packet before any human sees it.
It is an understandable triage mechanism for volume, but it is fundamentally blind to context, architectural intuition, or how someone actually troubleshoots under pressure. Rather than spending time gaming keyword algorithms, the breakthrough came through people: connecting directly with engineering leaders and the unsung heroes in the recruiting industry who look beyond automated filters, recognize demonstrable proof of work, and value operational substance over rigid checklists.
## The Next Chapter
Now, the reset is complete, and it’s time to step back into production.
I’m stepping back into the operational trenches to work on core messaging and mail delivery infrastructure. The plumbing that moves enterprise email remains one of the most demanding, unforgiving, and fundamentally critical backbones of the modern internet. It’s an ecosystem where protocol precision still matters, where deliverability doesn't tolerate sloppy abstractions, and where deep diagnostics still win the day.
Returning to that world—where millions of critical handshakes happen under the hood every hour—feels like coming home to the kind of high-stakes problem-solving I enjoy most.
To anyone staring down a gap on their resume or wondering whether it’s possible to step off the treadmill and come back sharper: your craft doesn't vanish just because you closed the laptop for a season or two. Sometimes, the best maintenance an engineer can do is stepping away long enough to remember why they loved solving hard problems in the first place.
Here’s to day one.
---
# From Static Tags to a Living CV: Pair-Programming a Site Architecture with AI
- URL: https://www.stuurman.com/blog/2026-10-29-from-tags-to-living-cv-ai-assisted-architecture/
- Published Date: Oct 29, 2026
- Tags: AI, AstroJS, Career, Architecture, Opinion
- Description: How linking career milestones, homelab notes, and photography through simple tags sets up cleaner CV generation—and what pair-programming with AI as an amateur actually feels like.
Most personal engineering websites treat tags as an afterthought. You write an article, slap five lowercase keywords at the bottom, and end up with a predictable cloud of `#kubernetes` or `#javascript` links that lead to thin archive pages. Case in point: I do this all the time.
When I started revamping this site, I wanted the tags to actually do something useful. Over a career spanning enterprise systems support at HPE, principal messaging engineering and program management at Vade, and enterprise email and messaging infrastructure (based in Japan), my work has never existed in isolated silos. Technical architecture, daily problem-solving logs, career milestones, a little time in the garden, and life behind the camera all inform one another.
Instead of just spitting out article links, I wanted clicking a tag to connect the dots: career milestones, relevant technical deep dives, homelab field notes, and even photos where relevant. And as a practical side benefit, structuring everything cleanly lays the groundwork for generating tailored, accurate CVs without an LLM having to hallucinate my past.
---
## Connecting Milestones to Real Work
The core problem with traditional resumes is that they are flat assertions. A PDF bullet point says:
> *"Spearheaded advanced engineering for high-scale enterprise email security platforms protecting mail for millions of domains worldwide."*
Recruiters and hiring managers read that and have to take your word for it. They can't easily click through to see the actual problems you solved, the postmortems you logged, or how you think.
In this setup, tags act as connective tissue across four distinct data collections:
1. **Career Experience (`experiences.ts`):** Structured role histories containing verified production highlights, enterprise environments, and core competencies.
2. **Technical Articles (`src/content/blog/`):** Deep dives into multi-region cloud storage, email deliverability, DNS, virtualization, or whatever else I fancy.
3. **Operational Logs (`src/content/log/`):** Timestamped field notes from the engineering trenches—capturing day-to-day problem solving, homelab hardware quirks, Proxmox hypervisor passthrough, and IoT garden automation.
4. **Picture Logs (`src/content/photography/`):** Atmospheric photographic stories and observations captured across the world—documenting Aegean cliffside architecture, spring cherry blossoms along quiet Tokyo canals, Kenzo Tange’s concrete curves, and contemporary art exhibitions.
```mermaid
flowchart TD
Tag["🏷️ Tag: #Infrastructure"]
Tag --> Career["Career Milestone Vade EPM"]
Tag --> DeepDive["Technical Deep Dive MRAP, S3 & CloudFront"]
Tag --> FieldLog["Operational Field Log Deliverability Ops"]
```
When you click a tag like [`#Email`](/tags/email/) or [`#Infrastructure`](/tags/infrastructure/) or [`#AI`](/tags/ai/), the route doesn't just show a list of blog titles. The page dynamically pulls the matching career roles, surfaces the exact bullet-point highlights where that competency was exercised under enterprise SLAs, and displays the technical articles and real-life logs that substantiate it.
It turns a lazy list of links into something tangible.
---
## Keeping Things Sane: Engineering vs. Photography Tags
One immediate headache was tag clutter. With nearly 40 photo entries on the site, I didn't want the engineering tags buried under purely visual keywords like `#Sakura`, `#Nightscape`, or `#Canal Walk`.
The fix was straightforward:
- **Photography Topics:** Pure visual themes stay in their own dedicated, neutral-toned gallery section.
- **Engineering & Career Topics:** Any tag that appears in career experiences, blog write-ups, or operational logs automatically routes to the primary engineering taxonomy.
- **Cross-pollination:** If a photography tag happens to overlap with engineering (like `#Architecture`, `#Geometry`, or `#AI`), it automatically promotes into the main tag index.
This keeps the site’s professional focus front and center without hiding the creative side.
---
## Making CV Generation Less Painful
Structuring career highlights, technical essays, and observational notes into typed Astro collections does more than just organize the site: it creates a clean data source for **future CV generation**.
Tailoring a CV for different opportunities is notoriously tedious. One role might call for a Principal Systems Engineer with deep Linux kernel and bare-metal server experience. Another might seek an Engineering Program Manager who excels at cross-timezone team leadership and complex carrier migrations.
Because every highlight in `experiences.ts` is tagged and backed by real entries:
- **No Hallucinations:** When feeding an LLM a prompt to build a tailored resume, it pulls from genuine, pre-written accomplishment bullets in `experiences.ts` tied to specific tags (like `#Infrastructure` or `#Security`). It doesn't have to guess or embellish.
- **Real Context:** Instead of sterile bullet points, an exported summary can weave in real context—such as field notes on Tokyo architecture or reflections from an art exhibition at Roppongi’s Mori Tower. It conveys not just *what* was built, but *how* I think and solve problems.
- **Single Source of Truth:** Updating a job accomplishment or logging a new milestone in git automatically refreshes the portfolio, the tag cross-references, and any downstream generated resumes simultaneously.
---
## Pair-Programming with AI (When You’re Not a Frontend Dev)
This site wasn't generated by a single prompt asking an LLM to "build me a portfolio with a cool tagging system." I'm admittedly an amateur when it comes to web development, and in my experience, monolithic prompts almost always yield generic, bloated code that breaks when integrated with real compilers and stylesheets. Trying to untangle 500 lines of generated code when you aren't a frontend expert is miserable.
Instead, I used an AI coding assistant (Antigravity) as a hands-on pair programmer, steering it with short, incremental prompts under close supervision:
1. **Reverting and Resetting:** When an early experiment with an embedded slide-out card inside the lightbox modal proved overly intrusive, we immediately scrapped the UI change while keeping the underlying data model intact.
2. **Establishing Dedicated Spaces:** We created clean photo cards on `/log/`, ensuring every entry had a title, formatted date, location, and tags linking back to the LightGallery modal.
3. **Polishing User Experience:** We cut down visual clutter by removing redundant buttons, turning entire cards into clickable targets, and styling tag badges in subtle neutral grays for photography and warm amber for career highlights.
4. **Migrating to Astro Content Collections:** We moved runtime TypeScript data objects into native Markdown files in `src/content/photography/`, allowing full Astro schema validation and individual story editing.
5. **Human Ground-Truthing:** When the AI enriched stories by scanning visual contact sheets, it made an initial aesthetic guess about photo #7 (calling it a structural timber lattice). Because I was there in person, I corrected it: *“Golden Lattice is actually a burnt piano and chair with black twine attached everywhere, an art exhibition in Mori Tower Roppongi.”* The assistant immediately rewrote the story to capture Chiharu Shiota’s installation with complete accuracy.
6. **Micro-interaction Polish:** Finally, we tightened the lightbox captions so that the photo title, date, and link to the picture log sit cleanly on a single row, overriding LightGallery's internal CSS specificity to ensure the link retains our site-wide amber accent (`#fbbf24`).
Each step took two to three minutes—always under supervision. Because the assistant had terminal and file-system access within the workspace, it could execute AST modifications, verify with headless Chrome screenshots, and run `npm run build` after every single turn.
---
## What a Personal Site Can Be
In 2026, a software engineer’s website shouldn't just be an electronic business card or a neglected blog (knock on wood).
Connecting career milestones, operational logs, and life behind the camera doesn't require over-engineered enterprise tooling. With a clean static framework like Astro and a bit of patient, supervised AI pair-programming, you can build something genuinely personal—and actually useful.
---
# Overhauling the Stack: Astro 7, Tailwind v4, and Converting to AI-Assisted Engineering
- URL: https://www.stuurman.com/blog/2026-10-27-converting-to-ai-assisted-engineering/
- Published Date: Oct 27, 2026
- Updated Date: Oct 29, 2026
- Tags: AstroJS, Tailwind CSS, AI, Infrastructure, Opinion
- Description: How a routine framework upgrade turned into a full modernization sprint—and why I finally became a believer in AI pair programming.
Back in late 2025, when I first spun up this website, I wrote a post about falling down the static-site rabbit hole. The goal back then was simple: get a clean, automated pipeline going with Astro, push markdown to git, and let the cloud handle the rest. It did the job, but like any side project left running for a while, dependencies fell behind, layout patterns aged poorly, and the technical debt started piling up.
Over the past few hours, I sat down to do what was supposed to be a quick maintenance pass. That quick pass turned into a major overhaul: upgrading to **Astro 7**, migrating to **Tailwind CSS v4**, implementing a dark mode toggle, auditing SEO, and completely restructuring the layout.
More importantly, it’s the project that officially converted me to AI-assisted engineering.
## What Changed Under the Hood
A lot has shifted in the frontend ecosystem over the last year. The update wasn't just bumping version numbers in `package.json`; it was a fundamental architectural cleanup:
- **Upgrading to Astro 7:** Astro 7 brings Rolldown/rs-compiler builds that compile all static pages of this site in under 750 milliseconds. However, Astro 7 is much stricter about component AST boundaries. The legacy pattern of opening `` and `` tags in `Head.astro` and closing them in `Footer.astro` broke completely under the new compiler. We refactored everything into a unified, clean `BaseLayout.astro` that wraps pages self-contained.
- **Tailwind CSS v4 Migration:** Tailwind v4 moves away from the old `tailwind.config.js` model into a purely CSS-native architecture via `@import "tailwindcss";`. We configured `@custom-variant dark (&:where(.dark, .dark *));` in our global styles to support class-based dark mode cleanly.
- **Real Dark Mode & Theme Toggle:** Added a theme toggle to the navigation (and mobile menu) that flips between Sun and Moon icons via pure CSS, remembers user preference in `localStorage`, and runs a small inline script in `` to eliminate any flash of unstyled theme (FOUT).
- **SVG & Design Polish:** Converted the static logo SVG into a native Astro component (``) with `fill="currentColor"`, allowing it to respond directly to Tailwind `fill-*` and `text-*` classes. The navigation now dynamically tracks the active page category with an amber underline while inactive links highlight gray on hover.
- **SEO & Structured Data:** Wired up dynamic Open Graph meta tags, Twitter card summaries, and schema.org JSON-LD schemas (`BlogPosting`, `Person`, `WebSite`) across every page.
- **Cutting the Corporate Fluff:** Stripped out the generic, buzzword-heavy AI copy on the Home and About pages, rewriting it in my own voice to reflect my actual background in systems infrastructure and life here in Japan.
## The Shift: From Skeptic to Convert
I’ve held a dose of skepticism toward AI coding tools.
Most demos look impressive until you put them in front of a real, messy codebase with broken builds, mismatched peer dependencies, and custom build pipelines. Too often, generative tools spit out generic code snippets, hallucinate non-existent API methods, or write copy that reads like a zealot wrote it.
This project was the first time I experienced true **agentic pair programming**, and it completely changed my perspective.
Instead of copying and pasting prompts into a web chat window, I had an agent working directly inside my workspace terminal and file tree:
1. **Navigating breaking compiler errors:** When Astro 7 rejected unbalanced JSX tags in legacy layouts, the assistant diagnosed the exact AST failure, created a clean unified layout, and migrated every single page template across the site.
2. **Handling build environments:** When macOS sandbox keychain checks crashed Node processes during package updates, it identified the root cause and systematically verified every change with local production builds.
3. **Connecting external context:** By hooking into the Google Drive CLI directly from the terminal, the assistant read through my actual resumes, cover letters, and interview notes to understand my real engineering background, allowing us to collaboratively rewrite the site’s copy in a voice that actually sounds like me.
## The Takeaway
I used to think of AI in software development as either an autocomplete gimmick or an autopilot that writes mediocre boilerplate. I now see it as an extraordinary force multiplier.
It doesn’t replace foundational engineering knowledge—you still need to know how the DOM works, how compilers parse ASTs, how networking and DNS propagate, and how to spot bad code. But when you combine hands-on domain experience with an agent that can execute multi-file refactors, verify builds, and handle tedious pipeline glue in seconds, the development velocity is unlike anything I’ve seen before.
I’m officially converted.
---
# Using Terraform (HCL) to design, deploy, and manage repeatable multi-region AWS infrastructure.
- URL: https://www.stuurman.com/blog/2025-12-18-terraform-aws-mrap-s3/
- Published Date: Dec 18, 2025
- Tags: AWS, Infrastructure, Terraform
- Description: Automating a setup that takes an hour to complete manually, because repetition is a problem best solved once.
> [!WARNING]
> This article is functional but out of date.
> AWS MRAP behind CloudFront no longer requires a Lambda@Edge function for signing requests. See the updated guide: [**Part 2 — Provisioning & Deploying the Multi-Region AWS Stack with Terraform and GitLab CI/CD**](/blog/2026-11-03-part-2-provisioning-aws-mrap-cloudfront-terraform-gitlab-ci/).
I’ve been experimenting with Terraform for some time now. Once you understand what HCL can and cannot do, it becomes a genuinely enjoyable and worthwhile exercise.
For this project, I chose to store the Terraform state remotely in an S3 bucket, using S3 based locking as well. This aligns with Terraform best practices and ensures safe state management.
Before getting started, there are a few prerequisites:
- Update the list of regions in `variables.tf` to add or remove deployment targets.
- The first entry is treated as the primary (master) region, from which files are replicated.
- Set the domain name and domain slug.
- The domain must already exist as a hosted zone in Route 53.
- Provide your AWS `account_id`.
- Create and configure your own `backend.tf`.
- In my case, I use an S3 bucket with state locking enabled, as recommended for Terraform state management.
```hcl
variable "buckets" {
type = list(object({
region = string
is_main = bool
priority = optional(number)
}))
default = [
{
region = "ap-northeast-1"
is_main = true
priority = null
},
{
region = "eu-north-1"
is_main = false
priority = 0
},
{
region = "eu-west-1"
is_main = false
priority = 1
},
{
region = "us-west-2"
is_main = false
priority = 2
},
{
region = "us-east-1"
is_main = false
priority = 3
},
{
region = "ap-south-1"
is_main = false
priority = 4
}
]
}
variable "environment_domain" {
type = string
default = "example.com"
}
variable "environment_domain_slug" {
type = string
default = "example-com"
}
variable "account_id" {
type = string
default = "111111111111"
}
```
As you may have noticed, the regions defined in variables.tf differ from those used in this [website’s current hosting setup](/blog/2025-12-6-aws-mrap-s3-lambda-cloudfront/). The intent was to experiment with AWS directory buckets in pursuit of even lower latency. Unfortunately, from what I’ve been able to determine, directory buckets are not compatible with multi region access points (MRAP) and are not available in every AWS region. As a result, classic S3 buckets will have to do.
At this point, I’ll let the HCL do the talking:
```hcl
locals {
all_buckets = { for bucket in var.buckets : bucket.region => bucket }
}
resource "aws_s3_bucket" "s3_buckets" {
for_each = local.all_buckets
bucket = "${var.environment_domain_slug}-${each.value.region}"
region = each.value.region
}
# Enable versioning for the buckets
resource "aws_s3_bucket_versioning" "s3_versioning" {
for_each = local.all_buckets
depends_on = [aws_s3_bucket.s3_buckets]
bucket = "${var.environment_domain_slug}-${each.value.region}"
region = each.value.region
versioning_configuration {
status = "Enabled" # Valid values: "Enabled", "Suspended"
}
}
# IAM Role for Replication
resource "aws_iam_role" "replication_role" {
name = "${var.environment_domain_slug}-s3-replication-role"
assume_role_policy = jsonencode({
Version = "2012-10-17"
Statement = [{
Effect = "Allow"
Principal = { Service = "s3.amazonaws.com" }
Action = "sts:AssumeRole"
}]
})
}
# IAM Policy for Replication
resource "aws_iam_policy" "replication_policy" {
for_each = { for s3_buckets in var.buckets : s3_buckets.region => s3_buckets if !s3_buckets.is_main }
name = "${var.environment_domain_slug}-${each.value.region}-s3-replication-policy"
description = "Allows S3 replication between main and secondary buckets"
depends_on = [aws_iam_role.replication_role]
policy = jsonencode({
Version = "2012-10-17"
Statement = [
{
Effect = "Allow"
Action = ["s3:*"]
Resource = "*"
}
]
})
}
# Attach Policy to Role
resource "aws_iam_role_policy_attachment" "replication_policy_attach" {
for_each = { for s3_buckets in var.buckets : s3_buckets.region => s3_buckets if !s3_buckets.is_main }
depends_on = [aws_s3_bucket_versioning.s3_versioning]
role = "${var.environment_domain_slug}-s3-replication-role"
policy_arn = "arn:aws:iam::${var.account_id}:policy/${var.environment_domain_slug}-${each.value.region}-s3-replication-policy"
}
# S3 Replication Configuration
resource "aws_s3_bucket_replication_configuration" "replication" {
bucket = "${var.environment_domain_slug}-${lookup(var.buckets[0], "region")}"
role = "arn:aws:iam::${var.account_id}:role/${var.environment_domain_slug}-s3-replication-role"
region = lookup(var.buckets[0], "region")
depends_on = [aws_s3_bucket_versioning.s3_versioning]
dynamic "rule" {
for_each = { for s3_buckets in var.buckets : s3_buckets.region => s3_buckets if !s3_buckets.is_main }
content {
id = "${var.environment_domain_slug}-${rule.value.region}"
status = "Enabled"
priority = rule.value.priority
filter {
prefix = "" # Replicate all objects
}
destination {
bucket = "arn:aws:s3:::${var.environment_domain_slug}-${rule.value.region}"
storage_class = "STANDARD"
replication_time {
status = "Enabled"
time {
minutes = 15
}
}
metrics {
event_threshold {
minutes = 15
}
status = "Enabled"
}
}
delete_marker_replication {
status = "Enabled"
}
}
}
}
# S3 SSE-S3 encryption
resource "aws_s3_bucket_server_side_encryption_configuration" "encrypt_all_buckets" {
for_each = local.all_buckets
bucket = "${var.environment_domain_slug}-${each.value.region}"
region = each.value.region
rule {
apply_server_side_encryption_by_default {
sse_algorithm = "AES256" # This specifies SSE-S3
}
bucket_key_enabled = true
}
}
# Create the Multi-Region Access Point (MRAP)
resource "aws_s3control_multi_region_access_point" "mrap" {
# MRAPs are global resources and do not require a specific region provider
details {
name = "${var.environment_domain_slug}-mrap"
# Configure the regions associated with the MRAP
dynamic "region" {
for_each = local.all_buckets
content {
bucket = "${var.environment_domain_slug}-${region.value.region}"
}
}
}
}
resource "aws_s3control_multi_region_access_point_policy" "mrap" {
details {
name = "${var.environment_domain_slug}-mrap"
policy = jsonencode({
"Version" : "2012-10-17",
"Statement" : [
{
"Sid" : "AllowMultiRegionAccessPointRead",
"Effect" : "Allow",
"Principal" : {
"AWS" : "${var.account_id}",
"Service" : ["cloudfront.amazonaws.com"]
},
"Action" : ["s3:GetObject", "s3:ListBucket"],
"Resource" : [
"arn:aws:s3::${var.account_id}:accesspoint/${aws_s3control_multi_region_access_point.mrap.alias}/object/*",
"arn:aws:s3::${var.account_id}:accesspoint/${aws_s3control_multi_region_access_point.mrap.alias}"
]
}
]
})
}
}
# SSL Certificate and validation
resource "aws_acm_certificate" "cert" {
region = "us-east-1"
domain_name = "*.${var.environment_domain}"
validation_method = "DNS"
lifecycle {
create_before_destroy = true
}
}
data "aws_route53_zone" "dns_zone" {
name = var.environment_domain
private_zone = false
}
resource "aws_route53_record" "dns_records" {
for_each = {
for dvo in aws_acm_certificate.cert.domain_validation_options : dvo.domain_name => {
name = dvo.resource_record_name
record = dvo.resource_record_value
type = dvo.resource_record_type
}
}
allow_overwrite = true
name = each.value.name
records = [each.value.record]
ttl = 60
type = each.value.type
zone_id = data.aws_route53_zone.dns_zone.zone_id
}
resource "aws_acm_certificate_validation" "validated_cert" {
certificate_arn = aws_acm_certificate.cert.arn
validation_record_fqdns = [for record in aws_route53_record.dns_records : record.fqdn]
}
# CloudFront
resource "aws_cloudfront_distribution" "mrap_distribution" {
origin {
custom_origin_config {
http_port = "80"
https_port = "443"
origin_protocol_policy = "https-only"
origin_read_timeout = "30"
origin_ssl_protocols = ["TLSv1.2", "TLSv1.1", "TLSv1"]
}
domain_name = aws_s3control_multi_region_access_point.mrap.domain_name
origin_id = "mrap_origin_id"
}
enabled = true
is_ipv6_enabled = true
default_root_object = "index.html"
aliases = ["www.${var.environment_domain}"]
default_cache_behavior {
allowed_methods = ["DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT"]
cached_methods = ["GET", "HEAD"]
target_origin_id = "mrap_origin_id"
lambda_function_association {
event_type = "origin-request"
lambda_arn = "${aws_lambda_function.edge_lambda.arn}:${aws_lambda_function.edge_lambda.version}"
}
forwarded_values {
query_string = false
cookies {
forward = "none"
}
}
viewer_protocol_policy = "allow-all"
min_ttl = 0
default_ttl = 3600
max_ttl = 86400
}
# Cache behavior with precedence 0
ordered_cache_behavior {
path_pattern = "/*"
allowed_methods = ["GET", "HEAD", "OPTIONS"]
cached_methods = ["GET", "HEAD", "OPTIONS"]
target_origin_id = "mrap_origin_id"
lambda_function_association {
event_type = "origin-request"
lambda_arn = "${aws_lambda_function.edge_lambda.arn}:${aws_lambda_function.edge_lambda.version}"
}
forwarded_values {
query_string = false
headers = ["Origin"]
cookies {
forward = "none"
}
}
min_ttl = 0
default_ttl = 86400
max_ttl = 31536000
compress = true
viewer_protocol_policy = "redirect-to-https"
}
price_class = "PriceClass_200"
restrictions {
geo_restriction {
restriction_type = "none"
locations = []
}
}
tags = {
Environment = "production"
}
viewer_certificate {
acm_certificate_arn = aws_acm_certificate.cert.arn
ssl_support_method = "sni-only"
}
}
# Create Route53 records for the CloudFront distribution aliases
data "aws_route53_zone" "site_dns_zone" {
name = var.environment_domain
}
resource "aws_route53_record" "cloudfront" {
for_each = aws_cloudfront_distribution.mrap_distribution.aliases
zone_id = data.aws_route53_zone.site_dns_zone.zone_id
name = each.value
type = "A"
alias {
name = aws_cloudfront_distribution.mrap_distribution.domain_name
zone_id = aws_cloudfront_distribution.mrap_distribution.hosted_zone_id
evaluate_target_health = false
}
}
# Lambda @Edge settings
resource "aws_lambda_function" "edge_lambda" {
provider = aws # deploy to us-east-1
region = "us-east-1"
function_name = "${var.environment_domain_slug}-lambda"
filename = "./mrap-to-cdn-proxy-us-east-1.zip"
#source_code_hash = data.archive_file.lambda_zip.output_base64sha256
handler = "index.handler"
runtime = "nodejs24.x"
role = aws_iam_role.lambda_exec.arn
publish = true # Must publish
}
resource "aws_iam_role" "lambda_exec" {
name = "${var.environment_domain_slug}-lambda"
assume_role_policy = jsonencode({
Version = "2012-10-17"
Statement = [
{
Action = "sts:AssumeRole"
Effect = "Allow"
Principal = {
Service = "lambda.amazonaws.com"
}
},
{
Action = "sts:AssumeRole"
Effect = "Allow"
Principal = {
Service = "edgelambda.amazonaws.com"
}
}
]
})
}
resource "aws_lambda_permission" "allow_cloudfront" {
provider = aws
statement_id = "AllowExecutionFromCloudFront"
action = "lambda:InvokeFunction"
function_name = aws_lambda_function.edge_lambda.arn
principal = "edgelambda.amazonaws.com"
source_arn = "arn:aws:cloudfront::${var.account_id}:distribution/${aws_cloudfront_distribution.mrap_distribution.id}"
}
# IAM Policy for Lambda
resource "aws_iam_policy" "lambda_policy" {
name = "${var.environment_domain_slug}-lambda"
description = "Allows @ edge execution"
policy = jsonencode({
"Version" : "2012-10-17",
"Statement" : [
{
"Sid" : "VisualEditor0",
"Effect" : "Allow",
"Action" : [
"iam:PassRole",
"lambda:DisableReplication",
"lambda:GetFunction",
"cloudfront:ListDistributionsByLambdaFunction",
"lambda:DeleteFunction"
],
"Resource" : "*"
},
{
"Action" : [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Effect" : "Allow",
"Resource" : "arn:aws:logs:*:*:*"
},
{
"Action" : [
"s3:GetObject",
"s3:ListBucket"
],
"Effect" : "Allow",
"Resource" : [
"*"
]
}
]
})
}
# Attach Policy to lambda Role
resource "aws_iam_role_policy_attachment" "lambda_policy_attach" {
role = "${var.environment_domain_slug}-lambda"
depends_on = [aws_iam_role.lambda_exec]
policy_arn = "arn:aws:iam::${var.account_id}:policy/${var.environment_domain_slug}-lambda"
}
```
There are a few areas I’d still like to improve. Chief among them are the IAM permissions used for S3 replication, which are currently more permissive than I’m comfortable with. I’ll need to spend some time digging further into the documentation to tighten these down to the minimum required scope.
That said, the process itself was genuinely enjoyable. Figuring things out as I went reinforced just how powerful Terraform can be, especially once you realize that resource blocks can be dynamic and that for_each expressions can thus be nested. At that point, the configuration becomes significantly less verbose and far less repetitive.
---
# Reducing compute capacity and retiring unnecessary workloads in a home-lab to optimize power consumption and improve overall efficiency.
- URL: https://www.stuurman.com/blog/2025-12-9-homelab-vmware-vsan-proxmox/
- Published Date: Dec 09, 2025
- Tags: VMware, Proxmox, Homelab
- Description: Downsizing compute and retiring unnecessary workloads in a homelab to cut power draw and optimize Proxmox and storage efficiency.
Coming from a background where I worked heavily with VMware, I was determined to build my own vSAN and converged compute environment. Before long, I had three hefty 4U servers, each loaded with generous amounts of RAM and powered by 24-core, energy-hungry processors. It was overkill in every sense, but at the time, it felt like the perfect home-lab dream.
The VMUG membership was the key enabler, costing roughly $200 annually providing VMware Advantage. This gave me access to a comprehensive suite of VMware licenses specifically intended for non-production environments.
Building and configuring the hardware was genuinely enjoyable. But when COVID arrived, our two-bedroom apartment didn’t exactly pair well with a full home-lab, and the living room effectively became a datacenter. After moving to a new house, I disassembled the cluster and never reassembled it. The fan noise, the SFP+ switch whine, the heat and power draw all made me hesitate to bring that entire setup back online.
Scope—something I mentioned at the beginning of this blog post—had slipped my mind over time. I had drifted away from the original goal and allowed the setup to grow far beyond what I actually needed. What I really wanted was a resilient storage platform for pictures and videos, nothing more. I didn’t need an entire cluster, and certainly not the full Gibson-sized infrastructure, to achieve that.
With that realization, the path forward is obvious: scale everything back. I’m consolidating the environment down to a single machine, something far simpler, quieter, and more energy-efficient. And honestly, one well-configured box is more than enough for the workload I have today.
I’ve also decided not to return to VMware. VMUG Advantage no longer aligns with my needs, so I’m shifting back to Proxmox and exploring what the platform can offer for a simplified, single node environment.
---
# Improving time to first byte, an intro to S3 Multi Region Access Points, Lambda@Edge functions and CloudFront
- URL: https://www.stuurman.com/blog/2025-12-6-aws-mrap-s3-lambda-cloudfront/
- Published Date: Dec 06, 2025
- Tags: AWS, Infrastructure
- Description: Improving Time to First Byte (TTFB) globally with S3 Multi-Region Access Points, Lambda@Edge, and CloudFront.
> [!WARNING]
> This article is functional but out of date.
> AWS MRAP behind CloudFront no longer requires a Lambda@Edge function for signing requests. See the updated guide: [**Part 2 — Provisioning & Deploying the Multi-Region AWS Stack with Terraform and GitLab CI/CD**](/blog/2026-11-03-part-2-provisioning-aws-mrap-cloudfront-terraform-gitlab-ci/).
It has been a few days since I wrote about the initial setup of this Astro site on: [AWS Amplify](https://www.stuurman.com/blog/2025-11-25-building-an-astro-site). Honestly, I expected that setup to carry me for a good while. But after a bit of tinkering and just a little experimentation I stumbled into an unexpected revelation…
```
2025-12-03T02:32:51.248Z [ERROR]: !!! CustomerError: The size of the build
output (257224425) exceeds the max allowed size of 230686720 bytes. Please
reduce the size of your build output
(/codebuild/output/src1544707934/src/path/.amplify-hosting/compute/default) and try again.
```
That’s right. Building the site with Amplify comes with a hard limit of roughly 200–220 MB of storage. Once you cross that threshold, the build simply fails. I knew I’d run into it eventually with [photography](https://www.stuurman.com/photography/) , but I managed to trigger it sooner than expected. All thanks to a few too many modules sneaking into the project. Go figure.
# And this is how I came to create a Rube Goldberg Cloud Hosting Machine.
Bottom line: I’ve moved the site to a setup using multiple geographically distributed S3 buckets for static hosting. Whenever I push or merge into the main branch, GitLab triggers a CI/CD pipeline that builds the site and uploads the output to one primary bucket. From there, the content is automatically replicated to all the other regional buckets.
All of these buckets sit behind an S3 Multi Region Access Point (MRAP), a global endpoint that automatically routes traffic to the lowest latency region and provides seamless failover. As far as I can tell, the permissions side of this should live squarely in IAM territory. However, there’s a gotcha: requests to a Multi Region Access Point need to be signed using the SigV4A signing mechanism when the traffic is coming through a CloudFront distribution. To handle that signing step, Lambda@Edge functions can be used to apply the appropriate request headers on the fly with the same low latency we have been optimizing for.
## This blog has origins in:
- Europe (Stockholm)
- Europe (Paris)
- Asia Pacific (Mumbai)
- Asia Pacific (Sydney)
- Asia Pacific (Tokyo)
- US West (N. California)
- US East (N. Virginia)
- South America (São Paulo)
## This has been done before.
There are plenty of articles out there that, in one form or another, rehash the official AWS guide: [Building an active-active, latency-based application across multiple Regions](https://aws.amazon.com/blogs/storage/building-an-active-active-latency-based-application-across-multiple-regions/) The [github](https://github.com/aws-samples/amazon-cloudfront-with-s3-multi-region-access-points) repo that accompanies it—amazon-cloudfront-with-s3-multi-region-access-points—includes CloudFormation templates and a Python Lambda function, but (as you might guess) it doesn’t exactly work out of the box. Tracking down the right dependencies and figuring out which Python version it was originally meant for is… not straightforward.
Along the way, I found another excellent deep dive: [Ultimate Guide to Multi-Region Access Points (MRAP)](https://cloudzenia.com/blog/ultimate-guide-to-multi-region-access-points-mrap/).
They wrote their own Node.js function, and although I was tempted to try it, I kept digging. That’s when I stumbled on the MVP [KIMBEOBWOO](https://github.com/KIMBEOBWOO/aws-cloudfront-with-s3-multi-region-access-point) I decided to give that one a shot. I removed the original Python functions and deployed a clean Node.js Lambda instead.
Immediately, the cryptic error messages that had been plaguing me turned into something actually grokable. The first complaint was about GetBucketList. One quick IAM adjustment later, and I could finally see the bucket contents. Navigating directly to an HTML file even rendered the page. Huge progress.
I was close. The function worked, but it didn’t remove the requirement to explicitly specify object names like index.html at the domain apex or inside subdirectories. A couple of small tweaks, basically two if statements fixed that behavior. And just like that, everything came together.
Case in point: you’re reading this right now, and unless CloudFront served it from cache, your request just passed through my Lambda@Edge function.
### My Humble Contribution
```js
const crt = require("aws-crt");
const { sigV4ASign } = require("./sigv4a_sign");
/**
* Lambda handler
* @param {*} event
* @returns SigV4 signed request
*
* @see https://github.com/aws-samples/amazon-cloudfront-with-s3-multi-region-access-points
* @author KIMBEOBWOO
*/
exports.handler = async (event) => {
const { request } = event.Records[0].cf;
let config = {
service: "s3", // Empty for GET, could be mapped from request, if there is such case. E.g. request['body']['data']
region: "*", // For S3 Multi-Region Access Point it's '*' (e.g. all regions). Also, that's why SigV4A is required.
algorithm: crt.auth.AwsSigningAlgorithm.SigV4Asymmetric,
signature_type: crt.auth.AwsSignatureType.HttpRequestViaHeaders,
signed_body_header: crt.auth.AwsSignedBodyHeaderType.XAmzContentSha256,
provider: crt.auth.AwsCredentialsProvider.newDefault(),
};
let method = "GET";
if (request.uri.endsWith('/')) {
request.uri += 'index.html';
}
// Check whether the URI is missing a file extension.
else if (!request.uri.includes('.')) {
request.uri += '/index.html';
}
let endpoint = `https://${request["origin"]["custom"]["domainName"]}${request["uri"]}`;
// CloudFront adds "X-Amz-Cf-Id" header after Origin request Lambda but before the request to the origin.
// Therefore it has to be part of the signing request.
let xAmzCfId = event["Records"][0]["cf"]["config"]["requestId"];
// Add SigV4A auth headers in the by CloutFront expected data structure.
let signedHeaders = sigV4ASign(method, endpoint, xAmzCfId, config)
._flatten()
.filter(([key]) => key.toLowerCase() !== "x-amz-cf-id")
.reduce((acc, [key, value]) => {
acc[key] = [{ key, value }];
return acc;
}, {});
// Add the signed headers to the request
request.headers = {
...request.headers,
...signedHeaders,
};
return request;
};
```
## In Closing
I didn’t want to spin up yet another plain static site on a lone S3 bucket. This new setup felt more interesting, and honestly, I’m pretty happy with how it turned out. It was a fun experiment, and I learned quite a bit along the way.
---
# Umami: What I Learned While Eating a Big Serving of Humble Pie.
- URL: https://www.stuurman.com/blog/2025-11-27-aws-dsql-amplify-umami-analytics/
- Published Date: Nov 27, 2025
- Tags: AWS, Reflection
- Description: Lessons learned exploring how cheaply I could self-host the open-source Umami analytics suite on AWS with Aurora DSQL and Amplify.
Umami is a modern, privacy-focused analytics platform. An open-source alternative to Google Analytics, Mixpanel and Amplitude.
Umami Analytics is primarily built with JavaScript and TypeScript, using the React based Next.js framework. While the core application runs on these web technologies, it relies on a database for storing analytics data, with PostgreSQL being the recommended and officially supported option.
There are plenty of guides showing how to deploy Umami on Vercel and Supabase as a privacy friendly and inexpensive alternative to Google Analytics. But I had a different idea in mind and, admittedly, got a bit stubborn about it: I wanted to run Umami on AWS and given how little traffic my site gets, I wanted to pay as close to $0.00 for it as possible.
Naturally, the plan was to contribute this fresh, undocumented implementation back to the community. But if you’re still reading, it’s worth clarifying: this isn’t a tutorial or a step by step guide. It’s more of a cobbled together concept. Something that might one day be revisited and developed into a proper solution, if it ever sees the light of day.
## Stacks I Considered:
First idea: run Umami’s Docker containers on AWS ECS. There are official Umami containers — great. But how low could I push the price if I deployed ECS on the smallest EC2 instance available? Answer: not very. Still a few dollars a month. Unacceptable.
Next idea: deploy the analytics front-end on AWS Amplify, a stack I already use and wanted to explore further. Perfect… except Umami needs a Postgres backend, and I wanted to keep everything AWS-native. I considered AWS RDS, but that was an order of magnitude more expensive than I was willing to pay. What I really needed was something like a serverless relational database. Basically DynamoDB but SQL-flavored.
Enter AWS DSQL. A relatively new service, Generally Available in multiple regions, and billed via Distributed Processing Units — which means no activity, no cost. Fantastic. I could host the frontend on Amplify and let DSQL handle the storage.
But then reality hit: DSQL doesn’t support simple user:password authentication. It relies on ephemeral tokens and IAM roles. That meant Amplify would need an Umami adapter, and Umami would somehow need to generate DSQL auth tokens at connection time.
And that’s where everything fell apart. Too many new concepts at once. Documentation was thin. I couldn’t find any real-world examples showing how to make this work. I did find a short presentation explaining how to generate DSQL tokens in an Amplify app, but the GitHub source for the demo was nowhere to be found.
## In Closing:
I shelved the idea and let it sit for a while. So much ado for nothing. I’m already chuckling at my own foolhardiness.
Back to more accessible things — like expanding the features on this site that are still missing.
---
# Running a Mail Server Is Cool. Until SPF, DKIM, DMARC, and blocklists remind you what it really costs.
- URL: https://www.stuurman.com/blog/2025-11-26-email-deliverability/
- Published Date: Nov 26, 2025
- Tags: Email, Infrastructure, Opinion
- Description: Why self-hosting email is no longer practical: SPF, DKIM, DMARC, blocklists, and the true operational cost of mail deliverability.
I want to back up my opinion with some context. Well over a decade ago, I fondly remember setting up Exim4 mail servers (MTA) and sending hundreds of thousands of transactional emails daily. Since then, I’ve spent several years working full-time with email systems and infrastructure. Even with that experience, I still consider myself a rookie. In both cases, one thing was clear: setting up the infrastructure is a fun and rewarding exercise, but deliverability and inbox placement are a grind.
You’re constantly just one noisy neighbor away from having part of your system blacklisted, and every receiving email platform enforces its own set of rules and policies. On top of that, many people treat the “mark as spam” button like an unsubscribe feature, just as one example. I could list every way running an email platform drains the fun out of what was once an enjoyable infrastructure project, but that would be a tome in itself.
The point is, whether you’re self hosting email for a single user or managing millions of inboxes, ensuring that every message actually arrives at its destination is a 24/7 job. I don’t know anyone who would call this a hobby.
And this is why I use an email provider like [FastMail](https://www.fastmail.com/). Their onboarding is smooth and straightforward, requiring only a few DNS records to get SPF, DKIM, and DMARC fully validated. They provide reliable email infrastructure and handle all the maintenance and support, making email virtually hassle free. All of this and much more comes at a modest, reasonable sum.
## Conclusion
Email deliverability is complex because it’s governed by evolving algorithms, authentication protocols, reputation systems, and provider specific rules. A service like [FastMail](https://www.fastmail.com/) can simplify all of this by offering dedicated infrastructure, automated best practices, monitoring, and support designed to maximize inbox placement.
---
# I Also Fell Down the Rabbit Hole: Building a Fully Automated Astro Blog Pipeline with VSCode, GitLab, Amplify and CloudFront.
- URL: https://www.stuurman.com/blog/2025-11-25-building-an-astro-site/
- Published Date: Nov 25, 2025
- Tags: AstroJS, AWS, Infrastructure, Tailwind CSS
- Description: Because every infrastructure engineer eventually builds yet another automated static site pipeline.
I’ll be honest: I’m new to this whole blogging thing, but if there’s one universal truth about tech blogs, it’s that the first post is always about the stack behind it. So here’s mine. Don’t worry, I’ll spare you a 20-page deep dive. If I didn’t, this post would quickly devolve into a copy-and-paste marathon from half a dozen documentation pages, and nobody wants that.
## What I use
- VScode
- Astro js + tailwind css
- GitLab
- AWS Amplify
- AWS CloudFront
VSCode is my preferred IDE. It’s simple to use, free, and has a massive library of add-ons. Since this is my first Astro project, I’m especially grateful for the extension that provides proper syntax and semantic highlighting.
I ended up choosing Astro after comparing it to static site generators (SSG) I’ve used in the past, like Jekyll, Hugo, and Ghost. Astro is the shiny new kid on the block and brings some interesting features right out of the box, including static, hybrid, and server-side page rendering (SSR). If that piques your curiosity, I encourage you to check out their documentation or spin up an install yourself.
VSCode and Git work hand in hand. After setting up a private repository for this project, pushing changes is as simple as running a few commands in the terminal. I haven’t felt the need for extra extensions like GitLab Workflow but who knows, maybe future me will appreciate the convenience. I chose GitLab because I’m already familiar with self-hosted instances, so it felt like the natural fit for this project.
Enter AWS Amplify. Honestly, Amazon could hardly have made deploying apps any easier. Amplify can trigger a pull from your Git repository using a simple webhook whenever a branch is merged or a new commit gets pushed. Add a bit of YAML, and you’ve got a fully automated build process. From there, it’s almost absurdly straightforward: write a new post or tweak a file, push it, and let the magic cloud machinery handle the rest.
Lastly, with just a few extra clicks, a domain already managed in Route 53 can be automatically configured to front the Amplify app through AWS CloudFront. If you’re using a third-party DNS provider, you’ll probably have to add the required records manually. As a nice bonus, CloudFront also generates and configures an SSL certificate during the setup process.
## Conclusion
This is the high-level overview without diving too deep into the specifics. Those details are all well documented in their respective corners of the internet. Building this site from almost scratch and automating its deployment turned out to be a genuinely fun exercise, and a great way to explore a new stack end to end.
---
# Operational Logs & Status-Updates
## Status-Update: One year in the ground: booming mop conifers vs. slow blue junipers
- URL: https://www.stuurman.com/log/#2026-11-09-one-year-in-the-ground-mop-conifers
- Date: Nov 09, 2026
- Tags: Design, Reflection
Checked in on the conifers in the yard now that they have had a full year in the ground. Overall I'm content with how they have settled in—everything has stayed a healthy green through all four seasons.
The golden mop conifers are booming and putting on real volume, while the low-to-the-ground creeping blue conifers have barely grown an inch—taking their "slow-growing ground cover" reputation very literally.
---
## Status-Update: Outfitting the dog with a Tractive GPS tracker
- URL: https://www.stuurman.com/log/#2026-11-04-tractive-gps-dog-tracker
- Date: Nov 04, 2026
- Tags: Hardware, IoT
Outfitted the dog with a newfangled Tractive GPS tracker today. The packaging and unboxing experience were genuinely well thought out, and the companion app is sleek and responsive right out of the box.
It is currently calibrating and collecting baseline activity, sleep, and vital telemetry—looking very promising so far.
---
## Status-Update: Considering an open-source Astro theme & infrastructure blueprint
- URL: https://www.stuurman.com/log/#2026-11-01-open-source-astro-theme-and-infra-blueprint
- Date: Nov 01, 2026
- Tags: AstroJS, Tailwind CSS, Infrastructure, CI/CD
Over the course of designing and refining this website, the bespoke Astro templates, styling system, and clean-room UI primitives have evolved into a fully realized standalone theme. I am considering packaging and publishing the theme for free as an open-source starter—a practical way to share the design system and generate organic interest around the engineering behind it.
The real value would come from pairing the frontend template with turnkey deployment automation and a concise setup guide for the underlying cloud delivery stack, allowing anyone to provision the same globally distributed, high-performance static infrastructure out of the box.
---
## Status-Update: LinkTap irrigation runs & retaining wall planting
- URL: https://www.stuurman.com/log/#2026-10-25-garden-irrigation-planning
- Date: Oct 25, 2026
- Tags: Hardware, IoT
Mapped out trench paths for water line drops to all four corners of the yard to pair with LinkTap wireless automated timers, plus dedicated conduit runs for low-voltage lighting and power.
Evaluating creeping ground-cover varieties to suppress weeds along the seams of a dry-stacked rock retaining wall, and weighing star jasmine against pyracantha for perimeter fencing.
---
## Status-Update: The 49-inch ultrawide webcam dilemma and office chair hunt
- URL: https://www.stuurman.com/log/#2026-10-15-ultrawide-webcam-and-office-chair-hunt
- Date: Oct 15, 2026
- Tags: Hardware, Design
Replacing dual monitors with a single 49-inch (`32:9`) ultrawide gets rid of the center bezel, but it still leaves the webcam in an awkward spot—mounted along the top edge you look like you are being filmed by a ceiling security camera, and perched off to the side it looks like you are ignoring the call.
Still looking for the right office chair to pair with the desk as well, though the Herman Miller × Logitech Embody is officially off the list after hearing how loudly its plastic pixel-support backrest flexes and creaks on a microphone.
---
# Site Changelogs
## Changelog: Modular Feature Toggles, Configurable Homepage, Social Preview Optimization & Instant Hover
- URL: https://www.stuurman.com/log/#changelog-2026-11-06
- Date: Nov 06, 2026
### Added
- **Modular Site-Wide Feature Toggles & Configurable Homepage**: Every major section and feed (`home`, `about`, `now`, `blog`, `photography`, `log`, `tags`, `contact`, `contactForm`, `rss`, and `llms`) can now be toggled on or off in a single place, and any section can be configured as the root `/` homepage. Disabling a feature automatically removes its pages, navigation links, homepage carousels, tag sections, article feedback forms, and RSS/Atom/LLM feed entries across the entire site.
### Changed & Optimized
- **Lightweight Social Preview Cards**: Converted all link preview cards across the site to optimized MozJPEG images, cutting file sizes by nearly 90% so links shared on social networks and messaging apps load significantly faster.
- **Instant Hover Page Preloading**: Enabled background prefetching on hover and tap, allowing pages to load virtually instantly when you click an internal link.
- **Zero-JavaScript Layout Refinements**: Replaced client-side resizing scripts on [`/blog/`](/blog/) with modern CSS flexbox layouts for smoother scrolling and no layout shifts.
- **Compact Changelog Previews**: Compacted long release logs on [`/log/`](/log/) into clean 3-bullet summaries with native expand/collapse buttons, cutting page weight almost in half.
- **Accessibility & Motion Polish**: Added respect for reduced-motion settings on animations and smooth scrolling, improved tooltip event handling for touch and keyboard users, and unified structured search data across the entire site.
- **CI/CD Build Speedups**: Introduced a lightweight custom build container that skips redundant dependency installations, speeding up automated deployments by nearly a minute.
---
## Changelog: Perfect 100/100 Performance, Interactive Diagram Zoom & Refined Flow
- URL: https://www.stuurman.com/log/#changelog-2026-11-05
- Date: Nov 05, 2026
### Added
- **Interactive Diagram Zoom & Pan**: Technical diagrams across [`/blog/`](/blog/) articles now include an interactive zoom modal with smooth pinch-to-zoom, click-and-drag panning, and full keyboard navigation.
### Changed & Optimized
- **Perfect 100/100 PageSpeed Performance**: Optimized stylesheet and script delivery across the site, achieving a perfect 100 score in Google PageSpeed across Performance, Accessibility, Best Practices, and SEO.
- **Refined Homepage Flow**: Reordered the homepage stream to feature recent technical articles directly below the introduction, followed by the photo roll and operational logs.
- **Zero Layout Shifts**: Pre-calculated responsive dimensions for gallery photos and navigation elements, guaranteeing that pages never jump or shift while loading.
- **WCAG AA Contrast & Accessibility**: Adjusted button colors, tag badges, and code block styling to ensure comfortable contrast and full accessibility in both light and dark modes.
- **Responsive Multi-Width Images**: Added container-matched responsive image sizing and high-priority loading for hero imagery, speeding up mobile visual render times.
---
## Changelog: Floating Navigation Polish & Dark Mode Contrast
- URL: https://www.stuurman.com/log/#changelog-2026-11-04
- Date: Nov 04, 2026
### Changed & Optimized
- **Ergonomic Floating Navigation**: The floating section navigator now docks conveniently at the top of the screen on desktop and in the bottom thumb zone on mobile for effortless one-handed browsing.
- **Dark Mode Surface & Typography Polish**: Enhanced contrast across tag badges and navigation pills with clean slate backgrounds and warm amber accents for comfortable night-time reading.
---
## Changelog: Open Source Release (The Navigator), Dynamic Dropdowns & Full-Bleed Photo Cards
- URL: https://www.stuurman.com/log/#changelog-2026-11-03
- Date: Nov 03, 2026
### Added
- **The Navigator Open Source Release**: Extracted the site engine and multi-region AWS blueprint into a standalone open-source starter theme on GitLab and GitHub.
- **Adaptive Compact Section Menus**: Long articles and guides now automatically collapse multi-section tables of contents into a compact dropdown menu to prevent header clutter.
- **Full-Bleed Photo Roll Cards**: Enhanced photo log cards on the homepage with full-bleed imagery, frosted-glass metadata badges, and direct links into the photo gallery lightbox.
- **Light & Dark Mode Technical Diagrams**: Technical flowcharts and system diagrams now dynamically adapt their colors to match your current light or dark theme.
- **Unified Site Navigation in Floating Bar**: Added a quick-access site menu directly inside the floating navigation capsule for instant jumps between sections on any device.
### Changed & Optimized
- **Consistent Navigation Bar Height**: Standardized the sub-navigation strip height across all pages, eliminating layout jumps when moving between sectioned and standalone pages.
- **Smart Flex Photography Gallery**: Upgraded [`/photography/`](/photography/) to calculate proportional row heights dynamically, eliminating awkward letterboxing or uneven gaps.
- **Standards-Compliant RSS & Atom Feeds**: Streamlined syndication feeds with pure XML, improving compatibility across all modern feed readers and podcast aggregators.
---
## Changelog: Photography Permalinks, Floating Navigation & Fast Video Embeds
- URL: https://www.stuurman.com/log/#changelog-2026-11-02
- Date: Nov 02, 2026
### Added
- **Dedicated Photo Permalinks**: Every photograph now has its own dedicated full-width permalink page with location details, camera notes, and easy social sharing.
- **Floating Breadcrumb Navigation**: Added in-page section jump links that smoothly transition into a floating frosted-glass capsule when scrolling down long pages.
- **Click-to-Load YouTube Videos**: Replaced heavy embedded video players with fast, privacy-friendly click-to-load covers that load zero external video scripts or cookies until played.
- **Interactive FAQ on About Page**: Added an expandable accordion FAQ to [`/about/`](/about/) addressing common questions about career experience, engineering specialties, and tech stacks.
### Changed & Optimized
- **Streamlined Log Terminology**: Refreshed log stream filters into *Status-Updates*, *Changelogs*, and *Photo Rolls* for clearer browsing.
- **Harmonized Color Themes**: Coordinated accent colors, card glows, and social share previews across each section of the site.
- **Faster Incremental Builds**: Enabled smart build caching for unchanged blog posts, tag archives, and photography pages to keep rebuilds fast.
---
## Changelog: Multi-Page Pagination, Client Script Diet & Faster Builds
- URL: https://www.stuurman.com/log/#changelog-2026-11-01
- Date: Nov 01, 2026
### Added
- **Clean Multi-Page Pagination**: Added static page navigation across the blog timeline, operational logs, and photography grid with zero page-weight bloat.
- **Zero-JavaScript Technical Tooltips**: Semantic acronyms across technical posts now expand with clean hover and tap tooltips built directly into the HTML without runtime client scripts.
- **AI & Reader Discoverability**: Added synchronized [`/llms.txt`](/llms.txt) and [`/llms-full.txt`](/llms-full.txt) documentation endpoints to make site content structured and easily digestible by AI assistants.
### Changed & Optimized
- **Lightweight Client Footprint**: Replaced heavy external UI libraries with vanilla web standards, reducing client JavaScript by over 90% across every page.
- **Smart S3 Deployment Sync**: Switched automated deployments to intelligent content-hash synchronization, only uploading files that genuinely changed.
- **Zero-Dependency Photo Lightbox**: Built a custom, lightweight photo gallery lightbox with smooth touch-swipe navigation and zero external library bloat.
---
## Changelog: Gallery Date Sorting, Subtle Border Glows & Collapsible Changelogs
- URL: https://www.stuurman.com/log/#changelog-2026-10-31
- Date: Oct 31, 2026
### Added
- **Gallery Date Sorting**: Added a handy dropdown to sort photographs by newest or oldest first, with smooth slide transitions.
- **Subtle Entrance Border Beams**: Introduced a soft, non-intrusive animated perimeter glow that highlights interactive cards when they first appear on screen.
- **Collapsible Log Entries**: Long release notes in the log stream now start in a tidy collapsed view to keep the feed easy to skim.
- **Instagram Social Link**: Added verified Instagram profile links in the footer and contact directory.
### Changed & Optimized
- **Timeline Layout for Older Articles**: Re-architected older blog posts into a unified chronological stream matching the visual design of [`/log/`](/log/).
- **Standardized Tag Names**: Consolidated technology and topic tags to ensure clean archive directories across the site.
---
## Changelog: Technical Acronym Tooltips, Code Copy Buttons & EXIF Photo Details
- URL: https://www.stuurman.com/log/#changelog-2026-10-30
- Date: Oct 30, 2026
### Added
- **Technical Acronym Dictionary**: Added interactive glossary tooltips explaining over 60 common cloud, infrastructure, and networking acronyms when hovering or tapping on them.
- **Always-Visible Code Copy Buttons**: Added persistent copy buttons to code blocks with instant green checkmark confirmation.
- **Automatic Social Share Previews**: Built dynamic card generation that creates branded summary images for every article, page, and topic archive when shared online.
- **Single-Source Changelog**: Integrated the root release changelog directly into the [`/log/`](/log/) stream with dedicated filtering.
### Changed & Optimized
- **Authentic Photo Timestamps & Locations**: Synchronized camera capture dates and locations across all gallery photographs, ensuring accurate historical timelines.
- **Last-Modified Dates on Articles**: Added visible last-modified dates to technical write-ups so readers know when guides receive updates.
- **Unified Multi-Stream Feeds**: Consolidated technical articles, operational notes, and photography updates into unified RSS and Atom feeds.
---
## Changelog: Photo Gallery Integration, Topic Archives & Sabbatical Timeline
- URL: https://www.stuurman.com/log/#changelog-2026-10-29
- Date: Oct 29, 2026
### Added
- **Integrated Photo Rolls in Log Stream**: Embedded photography entries directly into the chronological log stream with location pins and direct links to the full-screen gallery lightbox.
- **Topic Archives for Photos**: Photographs now appear alongside technical articles and notes under topic tags like `#Japan`, `#Landscape`, and `#Tokyo`.
- **Career Timeline Update**: Documented professional sabbatical and recovery period in the work experience timeline on [`/about/`](/about/).
- **Privacy-Friendly Analytics**: Added lightweight Umami analytics tracking with zero cookies and full visitor privacy.
---
## Changelog: Living Snapshot (/now), Interactive Contact Form & Breadcrumb Trail
- URL: https://www.stuurman.com/log/#changelog-2026-10-28
- Date: Oct 28, 2026
### Added
- **Interactive Contact Page**: Launched [`/contact/`](/contact/) with an accessible contact form, direct social links, and live validation.
- **Living Snapshot (`/now`)**: Created [`/now/`](/now/) to share current engineering focus, homelab experiments, and personal projects.
- **Breadcrumb Navigation**: Added a clean frosted-glass breadcrumb bar across all pages for easy context and site navigation.
- **Unified Topic Taxonomy**: Connected career history, technical articles, and operational updates into shared topic archive pages.
---
## Changelog: Modern Web Stack, Fast Gallery Loading & Theme Switching
- URL: https://www.stuurman.com/log/#changelog-2026-10-27
- Date: Oct 27, 2026
### Added
- **Modern Performance Foundation**: Upgraded site architecture to Astro 7 and Tailwind CSS v4 for faster builds and minimal browser overhead.
- **Smooth Dark & Light Mode**: Added persistent theme switching with automatic system preference detection and zero page flicker.
- **Optimized Photo Delivery**: Modernized gallery imagery with responsive WebP formats and smart loading strategies for rapid image displays.
---
# Photography Portfolio & Photo Rolls
- URL: https://www.stuurman.com/photography/
- Total Photographs: 40
- **Spring Along the Canal** (Mar 30, 2019, Tokyo, Japan) [Sakura] — Somei Yoshino cherry blossoms hang over the stone embankment of a canal, with yellow forsythia along the water’s edge. People crossing the footbridge stop to watch petals floating on the surface, right at the peak of hanami season. (https://www.stuurman.com/photography/?photo=1)
- **2B Gallery Facade** (Aug 30, 2019, Tokyo, Japan) [Architecture] — Timber louvers on the front of Gallery 2B throw long, sharp shadows across the dark charcoal wall. The warm wood slats against the stark lettering make a quiet buffer between the busy street and the exhibition space inside. (https://www.stuurman.com/photography/?photo=2)
- **Past and Present** (Aug 31, 2019, Asakusa, Tokyo) [Cityscape] — In Asakusa you can take in both eras with one look up: the tiled eaves and wind bells of the five-story pagoda in front, and the steel lattice of Tokyo Skytree rising 634 meters behind it on a clear morning. (https://www.stuurman.com/photography/?photo=3)
- **Fuji Through the Pines** (Dec 25, 2016, Fuji Five Lakes, Japan) [Landscape] — Wind-bent old pines frame Mount Fuji, its cone still dusted with snow. It was early morning and the air was sharp and clear, and the dark needles in the foreground give the mountain’s symmetry something to sit against. (https://www.stuurman.com/photography/?photo=4)
- **Bell of Tenpi** (Dec 25, 2016, Lake Kawaguchiko, Japan) [Landscape] — At the top of the ridge above Lake Kawaguchiko, a heart-shaped iron arch holds a large bronze bell. Across the valley, Fuji sits right inside the curve of the arch, with some morning mist still hanging over the lake. (https://www.stuurman.com/photography/?photo=5)
- **Shibazakura Carpet** (May 3, 2019, Yamanashi, Japan) [Nature] — Shibazakura, or moss phlox, in pink, magenta and white covers the flat ground near the base of Fuji. In late spring the small blooms spread across the volcanic soil in wide ribbons, stirred by a cool breeze coming off the mountain. (https://www.stuurman.com/photography/?photo=6)
- **Golden Lattice** (Aug 30, 2019, Mori Tower, Roppongi, Tokyo) [Art] — Seen at an art exhibition in Mori Tower, Roppongi: a charred grand piano and a wooden chair held in a web of black twine running in every direction. Warm golden light picks through the threads and burnt wood, and the whole piece feels quiet and heavy, a work about presence, memory and sound. (https://www.stuurman.com/photography/?photo=7)
- **Beacon in the Dark** (Aug 30, 2019, Minato, Tokyo) [Nightscape] — Tokyo Tower in its usual orange and white lighting, surrounded by modern skyscrapers. At dusk the lit lattice stands out against the cool blue sky, still the most recognizable point on the skyline decades after it was built. (https://www.stuurman.com/photography/?photo=8)
- **Winter Illuminations** (Dec 28, 2016, Tokyo, Japan) [Nightscape] — Strings of tiny golden lights cover the winter trees, with a lit Ferris wheel turning slowly in the background. People in heavy coats stop along the path to look at the display on a cold night. (https://www.stuurman.com/photography/?photo=10)
- **The Loyal Samurai** (Dec 29, 2016, Imperial Palace, Tokyo) [Heritage] — A weathered green bronze statue of Kusunoki Masashige, the 14th-century samurai general, rides forward on horseback in the outer gardens of the Imperial Palace. Streaky cirrus clouds over a deep blue sky add to the sense of movement in the horse’s reins and the general’s armor. (https://www.stuurman.com/photography/?photo=11)
- **Cathedral of Light** (Apr 25, 2018, Bunkyo, Tokyo) [Architecture] — Inside St. Mary’s Cathedral, designed by Kenzo Tange, eight concrete hyperbolic paraboloid shells rise from an octagonal floor to form a cross-shaped ceiling of light. Daylight runs down the raw board-formed concrete and falls across the nave and the red carpet leading to the altar. (https://www.stuurman.com/photography/?photo=12)
- **Urban Hive** (Apr 26, 2018, Tokyo, Japan) [Architecture] — Looking straight up through the open courtyard of a dense Tokyo apartment complex, you see a grid of terraces, catwalks and recessed doorways. The repeated balconies and lit windows make it feel a little futuristic, a study in scale and symmetry. (https://www.stuurman.com/photography/?photo=13)
- **Transit Between Towers** (May 1, 2018, Kawasaki, Japan) [Street] — On the way to lunch near an aquarium in Kawasaki, I looked up just as a passenger jet crossed the gap between two towers above an elevated skybridge. I didn’t have my camera with me, but it quickly clicked that we were standing under a busy departure route out of Haneda Airport.
Since the planes would keep coming, I finished lunch, walked back and waited with the camera ready. When the next one climbed through the gap, with silhouetted pedestrians crossing the glass walkway below, I took the shot. It looks like perfect timing, but it was mostly patience and knowing the flight path. (https://www.stuurman.com/photography/?photo=14)
- **Dragon of the Spring** (Mar 21, 2016, Kyoto, Japan) [Tradition] — A hand-carved stone dragon spouts spring water into the temizuya basin at a shrine in Kyoto. Years of moss, incense smoke and ladle splashes have worn it down, and visitors rinse their hands here before walking through the torii. (https://www.stuurman.com/photography/?photo=15)
- **The Golden Pavilion** (Mar 22, 2016, Kyoto, Japan) [Heritage] — The top two floors of Kinkaku-ji are covered in gold leaf and reflected in the still water of Kyoko-chi pond. Black pines and small rock islands line the edge, the classic Zen garden view that people have been coming to see for centuries. (https://www.stuurman.com/photography/?photo=16)
- **Lattice & Rivets** (Apr 22, 2018, Minato, Tokyo) [Nightscape] — From directly under Tokyo Tower you can see how much hand-riveted steel went into it. Under the golden floodlights the crossing beams narrow upward into the night sky, and a mid-century industrial structure ends up looking close to a monument. (https://www.stuurman.com/photography/?photo=17)
- **Metropolitan Twilight** (Apr 26, 2018, Sumida, Tokyo) [Cityscape] — As the last of the sunset fades to dark indigo over eastern Tokyo, Skytree switches on its blue "Iki" lighting. Below its tip, the city blocks start to light up with street lamps, car trails and the lines of commuter trains. (https://www.stuurman.com/photography/?photo=18)
- **Suspension Over the Bay** (Apr 27, 2018, Tokyo Bay, Japan) [Architecture] — The white steel tower of Rainbow Bridge stands over the dark water of Tokyo Bay, its thick cables lit by harbor floodlights. The bridge links the mainland to the reclaimed island of Odaiba. (https://www.stuurman.com/photography/?photo=19)
- **Citadel of Odaiba** (Apr 27, 2018, Odaiba, Tokyo) [Architecture] — The inverted pyramids of Tokyo Big Sight look like something out of a sci-fi film against the evening clouds. A full moon pushes through the haze above and lights the wide plaza below in pale silver. (https://www.stuurman.com/photography/?photo=20)
- **Neon Sluice** (Apr 27, 2018, Tokyo Waterfront, Japan) [Urban] — Green neon reflects off the still water at an industrial floodgate on the Tokyo waterfront. These sluices are there to hold back storm surges and high tides, but at night, with the city quiet, they look more like light sculptures. (https://www.stuurman.com/photography/?photo=21)
- **Tokyo Sunset Gradient** (Apr 28, 2018, Roppongi, Tokyo) [Cityscape] — The view from an observation deck in Roppongi at dusk, with the sky running from apricot through rose to slate. Tokyo Tower sits near the center of the frame, its warm lit lattice standing out against the grid of office buildings. (https://www.stuurman.com/photography/?photo=22)
- **Diamond Veil** (Apr 28, 2018, Tokyo, Japan) [Nightscape] — Tokyo Tower in its "Diamond Veil" special lighting, with multicolored LEDs running down the frame. The festive scheme gives the old landmark a more modern look against the navy night sky, and it runs over the holiday season. (https://www.stuurman.com/photography/?photo=23)
- **Atrium Geometry** (May 2, 2018, Tokyo, Japan) [Architecture] — A look down into the multi-story atrium of a modern shopping complex, with escalators, glass railings and structural bracing crossing each other. Clean lines and soft overhead light make the space feel airy, and the eye keeps getting pulled downward. (https://www.stuurman.com/photography/?photo=24)
- **Red Threads** (May 5, 2018, Tokyo, Japan) [Abstract] — Looking down onto an outdoor staircase under strong midday sun. Bright red safety stripes painted along each tread edge alternate with pebble-dash concrete and crisp cast shadows, turning an ordinary flight of steps into a rhythmic geometric pattern. (https://www.stuurman.com/photography/?photo=25)
- **Reach for the Light** (May 5, 2018, Tokyo, Japan) [Art] — A bronze public sculpture of intertwined figures reaching upward, shot against the midday sun. The strong backlight flattens the metal into dark silhouettes and gives the group a sense of motion. (https://www.stuurman.com/photography/?photo=26)
- **Hollywood Dream by Night** (Sep 30, 2022, Universal Studios Japan, Osaka) [Nightscape] — A rollercoaster train runs along lit steel tracks under the floodlights at Universal Studios Japan in Osaka. Purple searchlights sweep across the evening sky and light up the passing cars, with screams and music coming from the ride. (https://www.stuurman.com/photography/?photo=27)
- **The Guard of Syntagma** (May 12, 2017, Athens, Greece) [Travel] — An Evzone guard stands completely still in front of the carved reliefs of the Tomb of the Unknown Soldier at Syntagma Square. The uniform is full of detail: an embroidered waistcoat, a foustanella skirt with 400 pleats, and tsarouchia clogs with pom-poms. (https://www.stuurman.com/photography/?photo=28)
- **Philosopher in Marble** (May 12, 2017, Athens, Greece) [Art] — A Pentelic marble statue of Plato sits on a plinth in front of the Academy of Athens, wrapped in heavy robes with his head tilted down in thought. The Doric columns of the neoclassical building rise behind him. (https://www.stuurman.com/photography/?photo=29)
- **Sanctuary on the Cliff** (May 14, 2017, Santorini, Greece) [Travel] — A whitewashed chapel sits right on the volcanic rim of the Santorini caldera in strong Mediterranean sun. An olive branch in the foreground frames the bell tower, with the deep blue Aegean far below. (https://www.stuurman.com/photography/?photo=30)
- **Under Sail** (May 15, 2017, Aegean Sea, Greece) [Travel] — Coiled mooring lines and halyards lie on the trampoline at the front of a catamaran as it cuts through the Aegean. Past the bow, dark blue water breaks into white wake, and the steep cliff walls of the drowned caldera rise in the distance. (https://www.stuurman.com/photography/?photo=31)
- **Caldera Golden Hour** (May 15, 2017, Santorini, Greece) [Landscape] — Late afternoon turns to evening as the sun drops toward the western horizon, leaving a bright streak of gold across the water. Layered clouds pick up orange highlights, and the distant volcanic islands fade into a purple haze. (https://www.stuurman.com/photography/?photo=32)
- **Blue Dome & Bougainvillea** (May 16, 2017, Oia, Santorini) [Travel] — Magenta bougainvillea spills over the whitewashed walls of a cliffside church in Oia. The bright flowers stand out against the blue dome and the Greek flag, and the whole scene looks like the Greek islands people picture. (https://www.stuurman.com/photography/?photo=33)
- **Painting the Windmills** (May 17, 2017, Oia, Santorini) [Street] — A traveling painter in a canvas sunhat stands at his easel on a terrace in Oia, mixing oils to paint the windmills of Santorini. Thick brushstrokes turn the white cubic houses, weathered wooden sails and caldera cliffs into a canvas. (https://www.stuurman.com/photography/?photo=34)
- **Village Bell Arch** (Jun 14, 2018, Mediterranean Coast) [Travel] — An old stone gateway arches over a quiet village square, with a small terracotta-roofed belfry holding an iron bell. Plane trees give shade and dry-stone walls line the courtyard, which has the slow pace of a small rural village. (https://www.stuurman.com/photography/?photo=35)
- **Red Shutters & Terracotta** (Jun 14, 2018, Mediterranean Coast) [Architecture] — Red wooden shutters on either side of a multi-pane window in a rough stone wall, in warm afternoon light. A terracotta pot with yellow flowers sits on the ledge above, the kind of small detail that makes old country houses charming. (https://www.stuurman.com/photography/?photo=36)
- **Portal to the Sea** (Jun 14, 2018, Mediterranean Coast) [Travel] — Walking through an old medieval stone gateway opens onto a view of blue Mediterranean water and rocky cliffs. Wild scrub and fig branches spill over the ramparts, and an iron lantern stands by the opening to the sea. (https://www.stuurman.com/photography/?photo=37)
- **Winter Hoarfrost** (Jan 15, 2026, Near the arctic circle) [Nature] — At dawn in deep winter, river mist freezes into hoarfrost on every birch twig and reed along the bank. The water is flat enough to reflect the frosted trees and the pastel sunrise, and everything is completely silent. (https://www.stuurman.com/photography/?photo=38)
- **Winter Hall of Music** (Dec 25, 2016, Lake Kawaguchiko, Japan) [Heritage] — On Christmas Day inside the music museum by Lake Kawaguchiko, an antique concert grand piano sits under warm stage lights next to old mechanical orchestrions and carved organ pipes. A velvet armchair, red poinsettias and a decorated tree add some holiday warmth to the hall. (https://www.stuurman.com/photography/?photo=39)
- **Electric Gantry** (Dec 28, 2016, Tokyo, Japan) [Nightscape] — Against the black Tokyo night sky, the arches and cable pulleys of an amusement park ride light up in magenta and cyan neon. The steel lattice and support towers make a bold silhouette that matches the energy of the ride. (https://www.stuurman.com/photography/?photo=40)
- **Watcher at the Ruins** (Apr 16, 2017, Dingle Peninsula, Ireland) [Travel] — A weathered sandstone archway in an old coastal ruin on the Dingle Peninsula frames a person looking out toward the calm Atlantic. Lichen on the stone, a pebbled floor and tufts of coastal grass fill the space between the ruin and the sea. (https://www.stuurman.com/photography/?photo=41)