What Hostwarden recommends
Recipes with reasons, never requirements: a decision of yours settles any of them, and Hostwarden stops proposing it.
Servers
A decision, for one host or a group, settles any of these (rules/decisions.md):
- A firewall that denies incoming traffic by default — a forgotten service stays unreachable from outside. Server baseline
- Automatic security updates — a known vulnerability gets patched before someone finds it first. Server baseline
- Every vendor repository in the automatic updates, by its own
pattern — Docker, NetBird or Grafana stop waiting for a manual
apt-get upgrade, and a repository added later stays out until someone names it. Server baseline live-restorefor Docker when its engine updates automatically — an engine upgrade no longer stops every container. rules/containers.mdneedrestarton Debian and Ubuntu, listing and not restarting — an update shows which services still run the old library, and a restart stays yours to time. A decision keepsa, restarting by itself, on a host. Server baseline- A login notice for a pending reboot, on Debian and Ubuntu — a kernel from unattended-upgrades does not slip past for weeks because nobody read a report; it greets you at the next login. Server baseline
- Time sync, and the timezone you name — logs and certificates across hosts line up. Server baseline
- SSH by key only, no password login — a stolen or guessed password never gets anyone in. Server baseline
- Trust in your SSH CA, where you run one — one certificate and one revocation list work the same way on every host it covers. Server baseline
- SELinux or AppArmor, enforcing — a compromised service is held to what its policy allows instead of everything its user may do. Server baseline
- Brute-force protection for a service that takes passwords from the internet — fail2ban in its normal mode, from the distribution or EPEL, or blocklistd on FreeBSD, bans a guesser; CrowdSec and sshguard count too. A key-only sshd needs none. Security audit
- A persistent journal — the activity check still sees what happened before the last reboot. Server baseline
- Storage maintenance on a schedule — TRIM, RAID checks, ZFS and
btrfs scrubs,
smartdcatch a failing disk before it fails. Server baseline - The hypervisor's guest agent, running in every VM — the host can read the guest and shut it down cleanly instead of pulling the plug. Server baseline
- A backup job — the one thing that survives a mistake. Server baseline
- Mail through a relay where the site's IPv4 address is dynamic, or goes through CGNAT or DS-Lite — receivers commonly reject mail sent directly from such an address. A host's network
- DMARC
reject, SPF~allor-all, DNSSEC and MTA-STSenforcefor a domain that sends or receives mail — a forged sender or a downgraded delivery is refused instead of delivered. Hostwarden reads the records and proposes them, never as a failure of the baseline. rules/mail-dns.md - A null MX,
v=spf1 -alland DMARCrejecton a parked domain — nobody can send as a name that sends nothing. rules/mail-dns.md
Infrastructure code
- A remote, locked, versioned state for every OpenTofu stack — two people, or a workstation and a pipeline, never write over each other's state, and a mistake has a version to go back to. Infrastructure code
- State and plan encryption — a bucket that leaks does not leak every secret the stack ever read. Proposed once, like a missing firewall. Infrastructure code
- Federated credentials before certificates before static tokens — nothing to store, nothing to rotate, nothing to leak. Infrastructure code
- A pipeline that checks and plans first, applies second, with a reviewer — each step named once, when the one before it stands. Infrastructure code
Hostwarden's own SSH key
Asked once; Not now settles it (Hostwarden's own SSH key):
- An SSH key of its own for Hostwarden — its logins show up in every host's log under that key, and it can be revoked without touching yours.
- A certificate for it valid one working day, where you run an SSH
CA — key ID
hostwarden@<your handle>, only the principals it needs, no agent forwarding: its access ends unless you renew it.
Your SSH keys
For the keys Hostwarden logs in with (SSH keys):
- A key an agent confirms per use, or a hardware key — a key file without a passphrase logs in for whoever copies it. Only an operations host's fleet-read key and a deploy user's pipeline key go without one.
- Two factors for SSH logins where NIS2 or BSI IT-Grundschutz applies — with the override its reference names, the security audit reports a host whose sshd accepts one factor, a key or a password alone. Security audit
Password logins
For a device that takes no SSH key (Password logins):
- A key wherever the host takes one — Hostwarden sets up a password login only for a device that leaves no other way.
- The password on this machine rather than in a password manager — only Hostwarden's own passwords are in reach. A manager is used only through an identity that sees nothing but Hostwarden's entries, which is a requirement, not a recommendation.
- A firmware without old SSH algorithms — Hostwarden adds a weak key exchange, host key type or cipher for one host only, and says so each time.
- No management of a DrayTek router from the internet — the web UI facing the WAN is how DrayTek's recent vulnerabilities are reached. Appliances
Guests
- SSH keys from the first boot, a password only on request — with a key, nothing to guess over the network; without one, a generated password on the console instead, except a container from the Proxmox VE baseline template, where you set one yourself. New guests · decide against: ask for a password when you create the guest; Hostwarden never proposes one unasked.
Software
Say so once to skip any of these for the task at hand, or record a decision to keep Hostwarden from asking again (rules/decisions.md):
- Language runtimes through mise, not the distribution's package — a current version, per user, instead of whatever the distro froze at release. Language runtimes and deploy users
- A community script read as a recipe, on Proxmox VE and Incus — what an application needs is already written down at community-scripts.org; Hostwarden offers to read it, and installs by its own rules. rules/community-scripts.md
- Long-running services under the host's service manager, not
nohuporscreen— systemd, or rc on FreeBSD, handles restarts, logging and boot ordering for free. rules/best-practices.md - A reverse proxy with TLS in front of an app, not its port opened directly — the app never has to speak TLS or face the internet on its own. rules/best-practices.md
- A web server on Mozilla's Intermediate TLS profile — TLS 1.2 and 1.3 with forward-secret AEAD suites, port 80 only redirecting, HSTS and no version strings. Stricter choices (HSTS preload, re-encrypting to backends, TLS 1.3 only) are offered once and recorded only if you say so. rules/web-tls.md
- A service bound to
127.0.0.1when nothing outside the host needs it — only the reverse proxy or the local caller can reach it. rules/best-practices.md
Taboos — commands Hostwarden refuses outright, such as repartitioning a disk or touching a running sshd's configuration — are not here: nobody decides against those. They're in Hard guardrails.