A Terraform provider for netcup

My servers and domains are at netcup. I was curious how a Terraform provider is built, and I wanted to manage my own setup with it. That became terraform-provider-netcup, published on the Terraform Registry. Since then other people download it, and netcup keeps extending its APIs. Both make it fun to keep going. What it manages The provider manages DNS records and zones, domains on CloudDNS, and servers with what belongs to them, such as disks, snapshots, firewalls and reverse DNS. It is written in Go on the Terraform Plugin Framework and follows HashiCorp’s provider design principles. Each resource represents one API object, and the schema stays close to the API. Registering domains needs reseller functions and is not part of it.

Battery levels of Logitech devices in GNOME

I use a Logitech mouse and keyboard, and I wanted to see their battery in the GNOME top bar. Solaar can show it, but I like to avoid dependencies and wanted the display as close to GNOME’s own as possible. None of the existing indicators did what I needed. That became the Logi Battery Indicator, an extension for GNOME Shell 50 and 51. What it shows Every Logitech device with a battery gets an entry in the top bar, with its level as a percentage or as a colored icon and a mark while it charges. The devices may sit on a Unifying or Bolt receiver or be paired over Bluetooth. Keyboards with a backlight on a Bolt receiver also get a tile in the quick settings, with a slider like the one GNOME shows for laptop keyboards. The display changes when a device reports a new level or connects. The extension never polls on a timer.

The Matrix code in the terminal

The Matrix films are my favorite films. When I was a bit under the weather recently, I took the chance to watch all of them again. After that I wanted the code from the operators’ screens in my terminal. cmatrix and unimatrix exist for exactly that, but neither looks like the film. What I missed was the real thing. I wanted to get as close as possible to what you see on screen.

Running coding agents in a sandbox

A coding agent reads source code, instructions and web pages and acts on them. It edits files, runs commands and calls services on the network. Any text it reads can therefore influence what it does, including a comment in a dependency or a prepared web page. This risk is known as prompt injection (OWASP LLM01). It becomes critical when an agent reads private data, is exposed to untrusted content and can communicate externally at the same time (Willison). On a developer’s machine, all three conditions apply.

Disposable mailboxes for end-to-end tests

A signup flow is tested only once the confirmation message has been delivered and its link works. A mock of the mail sender checks whether the application attempted to send a message, not whether the message arrived. Public disposable mail services are of limited use as well. Signup forms may reject their domains, the services may limit the request rate, and the test data leaves the test environment. Approach I built a service that provides a mail domain with a REST API. A test creates a mailbox with a POST request and receives a randomly generated, unique address such as 3f9a1c2e@example.com. The test uses this address to complete the signup and then retrieves the message through the API. The mailbox expires after 24 hours.