Skip to content
David Cumps
Self-Hosting Young Software: Tududi

Self-Hosting Young Software: Tududi

Most services on this platform are mature software with years of scar tissue: Stalwart is the youngest of the big pieces, and even it has a company behind it. Tududi is different: a small GTD-style task manager, early in its life, moving fast. The family wanted shared task management, Tududi fit, and deploying it became an accidental case study in what “self-hosting young software” actually means. Every lesson in this post cost me something, and none of them are Tududi’s fault: this is simply what the early-adopter seat costs.

Tags are promises; digests are facts

Lesson one arrived before the container even started. The version I’d pinned during drafting, a beta tag, was unpublished from Docker Hub by the time the deploy ran. Not deprecated: gone. The role moved to the fresh 1.0.0 release, and by the end of the epic the image was pinned by digest, chrisvel/tududi@sha256:0f13…, not by tag. A tag is a promise someone else can revoke; a digest is a fact. The whole fleet now leans toward digest pins for anything young enough to rewrite its history.

The image also ships with neither wget nor curl, which broke the standard container healthcheck. The replacement probes the app with node -e instead, using the only runtime guaranteed to exist inside a Node.js image. Minimalist images are good hygiene, but your tooling assumptions inherit the diet.

The documented feature that didn’t exist

The SSO story is the heart of this post. It was drafted, carefully, against upstream documentation describing OIDC support. The pinned 1.0.0 image contained no such feature: a grep through the source found zero reads of any OIDC_* variable. Better still, the flag that supposedly disabled password login parsed to nothing: with PASSWORD_AUTH_ENABLED=false set, a POST /api/login still returned 200 and a session. The documentation was describing the main branch’s future, and I had deployed the present.

The decision point mattered. I could run a pre-release to get SSO now, or hold the story open and run stable-with-password-auth as a documented temporary state. I chose to wait. A month and a half later, 1.1.1 shipped with real OIDC, and the held story closed properly. The rule that came out of it is now checked during every story draft: confirm the feature exists in the pinned image, not in the docs, not on main. Documentation describes intentions; images contain decisions.

The cutover itself was treated like the auth migration it really was, not the version bump it looked like. Backup first, using SQLite’s online .backup API, which captured four megabytes of write-ahead log that a naive file copy would have silently dropped. Then a break-glass rehearsal: proving the upgrade’s password-digest migration hadn’t invalidated the existing admin password before switching login to SSO-only. Only then the digest-pinned deploy. Three runtime surprises still surfaced, because young OIDC implementations have opinions: the client wanted client_secret_basic rather than the drafted _post, the email claim needed an explicit claims policy on Authelia’s side, and a trust-proxy variable that accepted "true" in docs wanted "1" in code, a discrepancy that pushed the rate limiter to the edge of locking everyone out. All three fixed live, all three now in the story record.

The blocker that was my fault

The MVP verification story ended on the most instructive finding of the epic, and it wasn’t in the software. Verifying “task creation works”, I checked the database and found no rows: my earlier verbal “yes, creating tasks works” had been wrong, remembered rather than observed. The app was fine. My claim wasn’t. It got logged as a real blocker, retested properly, and left a rule I now apply to my own statements as much as to software: verify against ground truth, especially when the person you’re fact-checking is you.

Young software, honestly summarized: you are the QA department, the pin auditor, and occasionally the unreliable witness. Worth it when the tool fits, but price it in.

Next week the series reaches the thing I should have built first: monitoring.

You May Also Like