Developer in Spain. I make Noust, open-source deploys for your own Linux servers: https://noust.dev/
🌉 bridged from @Perkybeet@lemmus.org by Tidepool
@perkybeet.lemmus.org.ap.tdpl.io
2 Posts1 Comments0 Memberships
Joined November 2026
Developer in Spain. I make Noust, open-source deploys for your own Linux servers: https://noust.dev/
🌉 bridged from @Perkybeet@lemmus.org by Tidepool
Four rules that keep a Python tool that runs as root honest (from building Noust)
Noust is a free (AGPL) Python 3.10+ CLI and FastAPI service that deploys web apps onto Linux servers. It runs as root, so a few classes of bugs are expensive. The project ended up with four rules, each enforced by a test, and each one exists because its absence shipped a real bug:
1. Nothing runs a process except one module. Only core/runner.py may import subprocess. Argv only, never a shell, timeouts mandatory, secrets through env= or input= (never argv, which every local user can read in ps). The test suite's conftest makes any real process call fail, so code that bypasses the runner can't even be tested. --dry-run lives there too, which is why it can't be honoured in one path and ignored in another.
2. except Exception only at an error boundary, and it must log. There used to be 302 of them, 149 silent; that's how calls to methods that didn't exist shipped for whole releases. mypy blocks CI.
3. One implementation of each thing. The web API is a client of the same managers the CLI uses, never a second implementation.
4. Guards at the chokepoint. Unit ownership is checked in the service manager, read-only SQL is enforced by the database server, escaping by the template engine.
The contributing guide explains each one with the bug behind it: https://github.com/Perkybeet/noust/blob/main/CONTRIBUTING.md
Interested in how others structure similar tools.
I wanted Heroku-style deploys that stay plain Linux: apps as systemd units, sites as nginx files, installed with apt
Noust is a free software (AGPL) tool I've been building to deploy web apps on my own servers without turning them into a Docker host.
What it does on the machine is deliberately boring Linux:
• each app is a systemd unit, so systemctl status and journalctl -u work as usual
• each site is a file in /etc/nginx (or Apache) that you can read, and one you wrote yourself is never rewritten
• builds run as an unprivileged account in a transient systemd unit with a sandbox, and every app created now runs as its own system user
• resource limits are cgroups (memory, CPU, tasks)
• Noust itself is a distro package: apt on Debian and Ubuntu, dnf on Fedora, zypper on openSUSE, built on the openSUSE Build Service; arm64 too
On top of that it gives you releases: every deploy builds in its own directory and only goes live after a health check, so a broken build never replaces the working one, and going back to any previous release takes seconds.
Docker is supported for the apps that need it (Compose stacks, Dockerfiles), but nothing else depends on it, and Noust idles at about 290 MB, so it's happy on a 1 GB VPS.
• Code: https://github.com/Perkybeet/noust
• Docs: https://noust.dev/docs/
Curious what Linux folks think of the approach, and what you'd want it to do differently.