The Forge v1.1: The Lab Now Builds Itself Through Its Own Pipeline

Two days after v1.0: a private GitLab at home holding the code and the infrastructure state, a pipeline that plans every change and waits for my approval, and a one-button rebuild that proves it.

The Forge v1.1: a glowing conveyor carrying rune-stamped crates through a Viking forge pipeline

Two days ago I shipped v1.0 of the Forge: a security lab that rebuilds itself from code in about six minutes. It ended with a promise that v1.1 would be a second ProxmoxProxmox An open-source virtualization platform for running virtual machines and containers, popular in homelabs. host. I changed my mind the next morning.

Every change in v1.0 still ran from one machine: OpenTofuOpenTofu An open-source tool that builds infrastructure from code: you describe the virtual machines and networks in text files, and it creates or changes them to match.’s state file sat on its disk, and the rebuild was me typing commands in order. A second host built that way would just be twice the hand-work. So I swapped the order. v1.1 became the control plane, the machinery everything after it is built through, and the second host moved to v1.2.

What got built

  • A private GitLab, self-hosted. It runs on my storage server, reachable only from home or over my VPN, with sign-ups off and two-factorMFA Multi-factor authentication. Proving who you are with something beyond a password, like an authenticator app, passkey or hardware key. on. It’s now the primary home of the lab’s code; GitHub became a read-only mirror that GitLab pushes to.
  • Infrastructure state in GitLab. OpenTofu’s state (which holds secrets) moved from a file on one VM into GitLab’s built-in, locked, access-controlled state store.
  • A pipelineCI/CD pipeline An automated line that tests and deploys every change: commit the code, and the pipeline checks it and rolls it out the same way every time. that waits for me. Every push is linted (OpenTofu format and validation, ansible-lint). On the main branch it runs tofu plan automatically, and applying is a button only I press.
  • Security agents on every host, with an enrolment secret. The WazuhWazuh An open-source SIEM and endpoint agent: it watches logs, file changes and configuration on every host and alerts on what looks wrong. manager now refuses agents that don’t know the password, and the hypervisor and DockerDocker A tool for packaging software and everything it needs into containers, so it runs the same way on any machine. host report in alongside my assistant’s VM.
  • The hypervisor patched through code. 84 pending updates, one playbook: upgrade, reboot only if the kernel changed, wait until the VMs are back.
  • Backups first. Before putting the lab’s brain on the storage server, its containerscontainer 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. and VMs got automated weekly backups, and I restored one to prove they work.

Bonus: real certificates and network-wide filtering

Self-signed certificate warnings train you to click through warnings. GitLab and my DNSDNS Domain Name System. The internet's phone book, turning names like cyberviking.ca into the IP addresses computers actually connect to. filter now use a real Let’s Encrypt wildcard certificate, issued through a DNS challenge, so nothing has to be exposed to the internet and individual hostnames never appear in public certificate logs. It renews itself weekly; the rest of the lab moves onto it next.

I also replaced Pi-hole with AdGuard Home: two resolvers on two different machines, kept in sync, with encrypted upstream lookups and malware blocking for every device in the house.

The test that makes it real

v1.0’s definition of done was a rebuild from code. v1.1’s is the same rebuild from the pipeline. Start a pipeline with a confirmation variable, press one button, and the Docker host is destroyed and recreated by OpenTofu in 32 seconds; AnsibleAnsible A tool that configures servers from text files called playbooks: install this, set that, harden the rest. Run it twice and nothing changes the second time. then puts back the hardening, Docker, the SIEMSIEM Security information and event management: one place that collects logs from every system, spots suspicious patterns and raises alerts., the DNS replica and its agent in about three minutes. Every agent, including the ones on other machines, re-enrolled on its own with the new password.

Without that exact variable the rebuild jobs don’t even exist in the pipeline, so a typo can’t destroy anything.

What two days taught me

  • The quiet failures are network failures. One innocent-looking setting on my storage server added a second default route. Everything on the same network kept working, so it looked fine, until I tried to reach it over the VPN. A five-minute check now removes it if it ever comes back.
  • Check what clients actually do before you migrate them. I assumed the whole house used my old DNS filter. It didn’t. Reading the real settings first turned a migration into an upgrade.
  • Pasted secrets arrive mangled. A valid SSHSSH Secure Shell. The standard way to get a remote command line on a server, and one of the most attacked services on the internet. key pasted into a CICI Continuous integration. Automation that builds and tests every change as soon as it's pushed, so problems surface early. variable lost its final newline, and SSH called it a cryptographic error. The pipeline now cleans the key and proves it loads before using it.
  • “Done” isn’t the only success. The VM’s first-boot tool reports “done, but degraded” on this image, with its own exit code. My wait loop read that as failure and sat out its full ten minutes. It accepts both now.
  • Guardrails worked, including on my AI assistant. It couldn’t loosen its own network permissions, store secrets in GitLab, or schedule a recurring job on my server without me saying so in plain words. Each of those cost me a click, and each was the right call.

What’s next

v1.2 is the second hypervisor host, built entirely through this pipeline: host settings, VM templates and placement in code, so any workload can run on either machine. After that: a secrets vaultsecrets vault A locked store for passwords, keys and tokens that hands each system only the secrets it's allowed, and logs every read. (v1.3) and a long-lived services tier behind HTTPSHTTPS HTTP over TLS: web traffic that's encrypted and tied to a certificate, so you know you're talking to the real site. and login (v1.4). The roadmap stays in the open on the Forge.

Update, November 2026: the roadmap was renumbered. v1.3 became monitoring, the secrets vault is v1.4 and the services tier is v1.5.

ᛟ ᛟ ᛟ