Category: Linux

  • Horcrux dev log 1: the first week, lots of code and no tests that ran

    Horcrux dev log 1: the first week, lots of code and no tests that ran

    Part 1 in the Horcrux dev log series.

    Backdated. I’m writing the history of Horcrux and Patronus in November 2026 from the git log and CI records, because I didn’t keep a journal while it happened. Each post sits inside the period it covers.

    Horcrux is my attempt at something like Proxmox VE: VMs, containers, storage, clustering, firewall, backups and RBAC behind a web UI, an API and a CLI. Rust backend, Rust/WASM frontend, QEMU and libvirt underneath. It’s aimed at Gentoo. For context, I’ve used Gentoo since 2006, and I was a Debian developer before that.

    I picked Rust for memory safety and compile time checks. I picked Gentoo because I want the freedom to choose, and USE flags are the main way I get it. Hardware specific compiles come second.

    October 8 to 13

    The repo opens with a “first commit” of 117 files and about 23,000 lines, then a commit called “initial spaghetti” (95 files, 20,571 insertions). 65 commits in all over six days, counting those two. A migration system and OIDC login on the 10th. On the 11th, 25 commits, mostly docs, an install script, Docker, a GitHub Pages site and an OpenAPI spec. noVNC consoles, libvirt metrics and Open vSwitch templates on the 12th. Docker integration through bollard on the 13th.

    That’s a lot of surface for six days, and almost none of it was checked. Here are three commit messages from October 10:

    a1b5068b fix: Implement OIDC JWT signature verification (CRITICAL SECURITY FIX)
    23cbc806 docs: Update FINAL_STATUS.md - Platform now 5/5 stars, fully production ready
    7aad916c refactor: Reduce compiler warnings by 88% (435→50) with code cleanup

    Read the first one again. OIDC login shipped without checking the token signature. It got fixed the same day, and two commits later a status file gave the whole platform five stars and “FULLY PRODUCTION READY”. That file also says the goal was to “eliminate all simulation/placeholder code” from the migration system, so the migration system had been simulated until then. Fine, but then don’t give it five stars.

    435 compiler warnings on the 10th. Most of the first dozen commits the next day deal with them, and a lot of that is #[allow(dead_code)] on whole modules labelled “Phase 3 enterprise features”.

    The CI record

    This is the part I like least. Forgejo has three workflow runs for the week and all three are “skipped”. Nothing ran a test. Meanwhile the repo gained FINAL_STATUS.md, REMAINING_WORK.md, a validation session summary and a “comprehensive final validation report”. I can’t find one run that backs any of them.

    Design decisions

    The stack was set in the very first commits: Rust for the API (axum) and for the web UI (compiled to WASM), QEMU and libvirt for VMs, and a Proxmox VE feature list as the target. Rust is there for memory safety and compile time checks. The repo has no design notes from that week beyond the README, which lists the pieces and the Proxmox comparison.

    What I think now

    It got me a skeleton fast and that’s all it was. I also wrote the report grading the code, and I graded generously. A year later I did a proper audit (part 5) and found backups that archived an empty directory and VMs that couldn’t install an OS. None of that showed in the status files.

    So at the end of the week I had 65 commits, a UI, an API and a CLI, and no tests running anywhere.

    Part 2 is December, when I moved it to my own Forgejo and started on an ISO.

    Other parts: Part 2, Part 3, Part 4, Part 5, Part 6. The series continues with the latest Horcrux dev log post.

  • Gentoo Linux

    Gentoo Linux

    I stumbled on this video on youtube and am in love with it.

  • The Users of Operating Systems

    The Users of Operating Systems

    If you know a lot of what you want, want to put your own handles on the spoon, and like being spoon fed for major decisions, and occasionally get to choose the spoon color, but sometimes the spoon is flat: Arch 

    If you are not entirely sure what you want, need the basics to just work, be spoon fed for everything, and the spoon to be made of a 100% free design, but it rusts quite easily: Debian GNU/Spoonix

    If you want a spoon that is designed on the ancient texts, but has a handle that is a bit too uncomfortable to hold for any length of time: FreeBSD

    If you know exactly what you want and don’t mind spending days gluing the handle pieces together, but occasionally have the spoon fall off the handle (don’t worry, you can spend days reassembling!): Gentoo 

    If you’re a security n00b, want to someday do penetration testing, and don’t mind being handed last year’s model spoon that sometimes doesn’t fit in the bowl: Kali 

    If you like severely over paying for a spoon that sometimes comes in different handle sizes, but is too small to actually use: MacOS

    If you’re in a corporate environment and like paying for free spoons that leave a bad taste in your mouth: RHEL

    If you want a spoon made of enterprise-grade material that nobody uses and leaves a weird aftertaste: SUSE 

    If you’re old with a footlong gray beard, want complete control, don’t mind making the forge from scratch and might forget what you were doing before you get to the actual spoon creation: Slackware

    If you don’t have a fucking clue, want to be spoon fed for everything, and just want it to work.. maybe, pretty please, probably in the next release: Ubuntu

    If you want the spoon to never fail, only need it in one size, and will only ever use it for one thing its entire life: VMS

    If you want a spoon that is based on a previous spoon that itself is based on a previous spoon that is also based on multiple previous spoons, each with conflicting design decisions, and the handle sometimes falls off without warning, but everyone has gotten used to the handle falling off: Windows