robert@notes: ~ — zsh
➜ robert@notes ~ git:(master) cat ~/.motd
Robert's notes - Notes on Go, Kubernetes, Terraform/OpenTofu, AWS and DevOps culture.
➜ robert@notes ~ git:(master) ls ~
➜ robert@notes ~ git:(master) ls -t posts/ | head -n 5 | xargs head -n 3

From Jenkins pipelines to GitHub Actions - a mapping, not a migration guide

I have written a lot of Jenkins - shared libraries, Job DSL seed jobs, declarative pipelines, the works - and over the last years most of it has moved to GitHub Actions. Every migration guide I read was either “here is how to export your jobs” (you cannot, not meaningfully) or a sales pitch. What I actually wanted was a dictionary: I know what this Jenkins thing does, what is the Actions word for it, and where does the mental model break. So here is that dictionary, with the one place where Actions is genuinely better and the two places where you will miss Jenkins.

read more →

Podman on macOS instead of Docker Desktop - what actually changes

My About page has said “Podman / OrbStack” instead of “Docker” for a while now, and I keep getting asked whether that is a political statement or a practical one. Practical. Docker Desktop’s licence terms made it a procurement question in a lot of companies, and once you have to justify a tool you start asking what you actually use it for. For me the answer was: run a container, build an image, occasionally a compose file. Podman does all of that. This post is the list of what is different on a Mac, because the differences are real, just smaller than the internet makes them sound.

read more →

Go: a request ID on every log line with log/slog, without passing a logger around

The single most useful field in a production log is the one that lets you pull every line belonging to one request. Most Go codebases get there by threading a *slog.Logger through every function signature, or by stuffing the logger into the context and fishing it out everywhere. There is a cleaner way that the slog design makes almost trivial: a Handler that reads the request ID from the context.Context it is given. Then every call site is just slog.InfoContext(ctx, ...), and the ID appears on its own.

read more →

Blocking egress from Lambda: the sequel to the EKS post

After the EKS egress post the first question I got was “and what about Lambda?”. Fair. A lot of the Python glue I write runs as Lambda functions, those functions call third-party APIs, and the supply-chain argument is identical: a compromised dependency in a function has the same unrestricted internet access as one in a pod. The answer is mostly the same tool, Route 53 Resolver DNS Firewall, with one big catch that changes the economics.

read more →

Testing an OpenTofu module without an AWS account: tofu test and mock_provider

In July I published a DNS Firewall module and admitted that “tested” meant “applied it once and looked”. That is how most infrastructure modules are tested, and it is why module refactors are scary. OpenTofu has had tofu test since 1.6 and provider mocking since 1.8, which together let you assert what a module does - how many rules it creates, that the action is BLOCK, that the wildcard gets added - without credentials, without a VPC, in a few seconds, in CI. Here is that module with real tests.

read more →
➜ robert@notes ~ git:(master) ls -t posts/ | sed -n