Hacker
Tanish Aggarwal
@tanishaggarwal06
Projects
Smithy: doctor, backups and safe upgrades for self-hosted Flagsmith
Flagsmith Experimentation HackathonNov 2026
Smithy is an open-source CLI and local dashboard for anyone running Flagsmith themselves with Docker. The problem: self-hosting Flagsmith takes one docker command, but keeping it healthy is where people get stuck. Flagsmith's own issue tracker (#7205) lists the same recurring questions: "my API key returns 403", "flag values aren't updating", "502 errors". There is no official backup guide, the quick-start compose file ships with default secrets and the :latest tag, and upgrades run migrations that can't be undone. Who uses it: developers and small teams who self-host Flagsmith (for data control or compliance) without a dedicated ops person. How it works: - smithy doctor runs 25+ checks across containers, the API, SDK keys, the task processor queue, database connections, security settings, version and backups. Every problem comes with a plain-English fix. -k explains what a key is and whether local evaluation will work; --deep creates a temporary flag, toggles it and times how fast the SDK endpoint sees it. - smithy backup / restore: verified pg_dump with a sha256 checksum and row counts. Restore takes a safety backup first and reloads it automatically if anything fails halfway. - smithy upgrade: preflight checks, backup, pin the exact version, migrate, verify, and roll back both the image and the database if anything fails. - smithy init: a hardened compose file + .env with random secrets, a pinned version and no exposed database. - smithy dashboard: all of the above in a local web page. Tested on real self-hosted Flagsmith: 38 automated tests, CI on Windows/macOS/Linux with an end-to-end job on a live instance, and 17 break-it-on-purpose scenarios, including a real 2.294.0 to 2.295.2 upgrade and a forced failure after migrations that Smithy rolled back.