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.
Curious what Linux folks think of the approach, and what you'd want it to do differently.
Fair on both counts, with one distinction.
On secrets: argv is readable by every local user (
/proc/<pid>/cmdlineis world-readable), while the environment is readable only by the same UID and by root. So the rule is about not leaking to unprivileged users on the box; against root nothing holds, since root can read the process's memory anyway. You're right that env has its own cost (children inherit it), so where a client takes a secret from a 0600 file or on stdin, that's what is used, and env is for the clients that only offer that, likePGPASSWORDforpg_dump.On root: the service does run as root, because its job is writing nginx sites, systemd units and certificates and installing packages. What never runs as root is anything that comes from a repository: installs, builds and deploy hooks run as an unprivileged account inside a sandboxed transient systemd unit, and each app runs as its own system user. An unprivileged front with a small privileged helper would be tighter; that isn't how it works today.