Blog
Articles by Luca Mattivi on software engineering, infrastructure and building products.

Three replicas, zero availability: why I replaced Pomerium with a 15 MiB OAuth gateway
How an outage of my authentication layer led me to build a small, self-hosted OAuth gateway for web applications and AI assistants.

Vibecoding is great, but do you really trust the result?
How I think about trust and review when writing software with AI.

What if you could migrate your frontend without telling anyone? We did.
Gradual frontend migrations don’t need to be painful. Here’s how we rewrote everything, without anyone noticing.

The Hidden Risk of Running WordPress on Kubernetes: Debugging an Unexpected Downtime Issue
We migrated our entire infrastructure to Kubernetes, including wordpress. We encountered intermittent downtime so we had to debug it.

PostgreSQL cluster migration made simple
From Kubernetes to Aurora. Is it so hard? Let’s see.

Automatically scale your Rails application with HPA
Scalability is something we need to face when the application grows over time, and the easier solution is to add more replicas. Or not?

VPN Tunnels: how we used them to migrate our platform to AWS
How can we move everything to AWS with no downtime and without any impact to the productivity?

How to install Sentry 20 on Kubernetes
Notes from setting up self-hosted Sentry 20 at Uala, including Relay, ingress, email and GitHub integration.

How to handle HAProxy log format
During our migration from Rancher1 to Rancher2 and K8S, we also moved our reverse proxies from nginx to HAProxy.

Why and how to migrate from Docker Swarm to K3s
How we moved our hardware products from Docker Swarm to a lightweight Kubernetes distribution.

How we built our CI/CD pipeline with Drone
Our Rails pipeline on Drone, from image tags and parallel testing to scoped deployments and signed release configuration.

How we chose Drone for CI/CD at Uala
Why we moved from Jenkins to Drone for Rancher and Kubernetes, and how we set up the server, agents and GitHub integration.

From Rancher 1 to Kubernetes at Uala
At 650 containers, network-agent failures pushed us off Rancher 1. Here’s how we tested Kubernetes failover and built a Drone pipeline to move our workloads.

How to find large files on Ubuntu
Check which filesystem is full, find the biggest files, and see which directories are actually taking up disk space.

Smart Domotik, part 4: Inside the automation cabinet
Inside the cabinet and server rack that run Smart Domotik, from the lighting relays to the Arduino that monitors energy use.

Smart Domotik, part 3: One button for a whole scene
The new Scenes view groups lights and shutters into routines that run with one tap.

Smart Domotik, part 2: Keeping the wall switches working
I’m planning the wiring so the wall buttons keep working even if my automation controller is down.

Smart Domotik, part 1: Building my first home automation controller
My house is still under construction, and I’m building my own home automation system. The first version lets me control lights and shutters from a 3D floor plan in the browser.