Fluncle Hetzner operations
Use the canonical mk-hetzner-devbox skill for generic Hetzner provisioning, prerequisites, and the Tailscale-only firewall. This skill owns the public host's profile and scripts. Read the private companion's host facts before acting; never put its addresses, vault paths, or credentials in this public repo. Creating a server, changing a firewall, deploying, or rotating a token requires the operator's authorization.
Public SSH terminal (rave-01)
- Follow the
mk-hetzner-devbox skill: run its scripts/check-prereqs.sh and scripts/create-server.sh with the server name and sizing from the private companion.
- Bootstrap from a fresh root session with
REBOOT_STATUS_PORT=<private-port> NODE_EXPORTER_INSTALLER=<private-installer> SERVER_NAME=<name> SERVER_IPV4=<ip> packages/skills/fluncle-hetzner-ops/scripts/bootstrap-hardening.sh --profile public-ssh. This streams bootstrap-rave-vps.sh: OpenSSH admin moves to port 2222 over Tailscale, Tailscale turns on its own auto-update, TCP/22 is reserved for the Fluncle SSH app, and the app runs under a locked fluncle-ssh user. Confirm tailnet admin access before closing the root session. The public profile enables unattended security upgrades and schedules required reboots at 04:30 Europe/Amsterdam, with the host timezone set accordingly.
- Apply the public provider firewall with
SERVER_NAME=<name> FIREWALL_PROFILE=public-ssh packages/skills/fluncle-hetzner-ops/scripts/apply-firewall.sh. It allows ICMP, Tailscale UDP 41641, and app TCP/22. The generic private firewall does not open the app port.
- Build the Go app as documented in
README.md, then use SERVER_NAME=<tailnet-address> BINARY_PATH=apps/ssh/dist/fluncle-ssh-linux-x64 packages/skills/fluncle-hetzner-ops/scripts/deploy-ssh-app-service.sh for the initial service install or a service-contract change. Routine binary updates use apps/ssh/deploy/README.md.
The public bootstrap installs an unprivileged fluncle-reboot-status service bound to the host's tailnet IPv4 on REBOOT_STATUS_PORT, chosen in private operator configuration. GET /status returns only reboot_required_age_seconds (null when no reboot is required), kernel, and uptime_seconds. It has no write routes or login capability. To update an existing host, transfer the adjacent install-reboot-status.sh and reboot-status.py together, then run the installer as root with that port. The private companion owns the fleet reader and single-port policy grant. The bootstrap also streams the private companion's host metrics installer, named by NODE_EXPORTER_INSTALLER, and runs it after the tailnet join: it serves node_exporter on the host's tailnet IPv4 at the exporter's default port 9100 for the private telemetry store to scrape. To update an existing host, transfer that installer and run it as root with no arguments. For an authorized alert verification, keep the production endpoint on /var/run/reboot-required. Read that endpoint separately to verify transport, then replay old-marker and recovery payloads through private transport fixtures and private reader state, spool, delivered and inflight directories. The fixture source stays separate from the production service configuration, so an interrupted drill cannot leak into the normal reader or hide a real marker.
For agent-token rotation, run packages/skills/fluncle-hetzner-ops/scripts/push-agent-token.sh from the trusted operator machine with OP_AGENT_TOKEN_REF set from the private companion. The script reads the value with op, pipes it over SSH, and verifies the watchdog and self-deploy status. op stays off the public edge.
The optional country display reads a MaxMind-compatible database at /var/lib/fluncle-ssh/dbip-country-lite.mmdb through FLUNCLE_GEOIP_DB. On the host, a monthly fluncle-ssh-geoip-update.timer refreshes DB-IP Lite via /opt/fluncle-ssh/update-geoip-db.sh; confirm the timer and keep DB-IP attribution in the SSH app's About screen. A new host needs the updater, timer, and .mmdb installed before enabling that environment setting.
The agent box (rave-02)
rave-02 is a VM guest on the operator's private platform host, not a Hetzner server; fluncle-box-restore rebuilds it. The platform's guest script runs this skill's installed copy of scripts/install-toolchain.sh (under .agents/skills/fluncle-hetzner-ops/) with TOOLCHAIN_PROFILE=agent-box, which installs Docker and a small host floor without a workstation toolchain. Keep that profile and path working.
Scripts read a skill-local .env when present, then the current directory's .env, or an explicit ENV_FILE. Keep real values out of this repo and its installed skill snapshot.