My homelabhomelab A small lab of servers and network gear at home for learning, testing and self-hosting, where breaking things is part of the point. runs a lot of code I didn’t write: an open-source Microsoft 365 connector, a small bridge that lets my AI assistant talk to it, a GitGit Version control: a full history of every change to a set of files, with who, when and why, and the ability to roll back. plugin that syncs my notes, base images for every containercontainer A lightweight, isolated package of an application and its dependencies. It shares the host's kernel, so it starts in seconds, unlike a full virtual machine.. Any of them could change under me. A maintainer could ship a bad release, hand the project to someone untrustworthy, or delete it.
Big organizations have whole teams for software supply-chain risk. I have one person and about fifteen minutes a month. Here’s what fits in that.
Rule 1: pin everything, in one place
Every third-party component is pinned to an exact version, and every pin lives in a single file in my homelab repo. No latest tags, no “whatever npm gives me today”. The tool that worried me most was a bridge launched with npx -y, which quietly fetched the newest version every time the app started. A component that sits in the path of every request shouldn’t update itself.
Rule 2: keep my own copy
A script keeps local mirrors of each upstream: the source repository, the exact npm packages I use, and the DockerDocker A tool for packaging software and everything it needs into containers, so it runs the same way on any machine. images. If an author deletes a repo or unpublishes a package tomorrow, I can still rebuild what I run today. The same script writes a small status table showing which pins are behind the latest release.
One detail matters more than it looks: the mirror only ever fetches, it never prunes. If a branch or tag disappears upstream, it stays in my copy. A mirror that faithfully copies a deletion isn’t a backup; it’s a second place to lose things.
Rule 3: upgrade on purpose
Being behind isn’t a problem in itself. Once a month, on the first Saturday, I read the release notes between my pin and the latest and decide per item:
- Security fix: upgrade.
- A bug I’ve actually hit, or a feature I want: upgrade.
- Anything else: skip until next month.
And only one upgrade per weekend. If something breaks, I know exactly what changed. If three things are worth upgrading, the most important goes first and the rest wait.
Rule 4: rebuild anyway
Even in a month where I skip every upgrade, I rebuild my containers with a fresh base image. Pinning the application doesn’t pin the operating system underneath it, and that’s where a lot of the security patches land. Before each rebuild, I tag the current image as a rollback, so going back is one command.
Rule 5: check that permissions didn’t grow
For the Microsoft 365 connector, an upgrade has one extra gate. The server can print the exact permissions it will ask for, so I compare that list against the one I approved. If a new version wants anything more, especially the ability to send mail, the upgrade stops there. I wrote about that check in the build write-up.
Two exceptions to the schedule
- A security advisory for anything I pin doesn’t wait for the first Saturday. That one item gets handled right away, with the same steps.
- Never the night before a workday. My weekday morning briefing depends on the connector. Upgrades happen when I have time to roll back.
Why bother at this scale?
Because the habits are the same ones that matter at work, just smaller. Know what you run. Know where it came from. Change it deliberately, one thing at a time, with a way back. A homelab is a cheap place to practise that until it’s automatic.
The whole routine is written down as a step-by-step procedure, so future me doesn’t have to remember any of it. That’s the real trick: if it isn’t written down, it won’t happen every month.



