Developer in Spain. I make Noust, open-source deploys for your own Linux servers: https://noust.dev/

  • 1 Post
  • 1 Comment
Joined 4 days ago
cake
Cake day: November 23rd, 2026

help-circle
  • Fair on both counts, with one distinction.

    On secrets: argv is readable by every local user (/proc/<pid>/cmdline is 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, like PGPASSWORD for pg_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.