Show HN: Vaire, Self-Hosting Postgres Through the One Glorious CLI github.com · ...

@show

Show HN: Vaire, Self-Hosting Postgres Through the One Glorious CLI github.com · 2 points · 0 comments · HN thread

TL;DR Vaire is an open-source CLI (MIT, Go) that turns a fresh Debian 13 or Ubuntu 26.04 VPS into a hardened PostgreSQL 18 server with PgBouncer, nginx, TLS and WireGuard-only administration, giving each database its own PostgreSQL cluster with size limits. The author describes it as preparing a first v1 alpha, not yet tagged or published. The thread has no comments yet.

  • Bootstraps a server over SSH with vaire server init, closes public SSH, and leaves only WireGuard, 80/443 and the database ports (6432/5432 restricted by allowlist) open.
  • Each database gets its own PostgreSQL 18 cluster with a size class (nano to xlarge, 256 MiB to 4 GiB) enforced via systemd cgroup limits, and creation is refused when the memory budget would be overcommitted.
  • Backups use pgBackRest with per-database stanzas and point-in-time restore to an S3-compatible bucket, plus a monthly restore drill; restores build a copy beside the live cluster before promotion.
  • Protected databases require a six-digit authenticator code to drop, shrink, or write through vaire sql/psql/console, aimed at limiting AI agents with shell access.
  • Phases 0 to 5 have live qualification evidence; followers, extensions and multi-node are future work, and alpha formats may require rebuild and restore.

Discussion No comments have been posted yet, so the thread has no discussion to summarize. The submission has two points and no replies.

#postgresql #selfHosting #cli #wireguard #backups #showHN