heyer.systems Open Source

Use

The guest

What every container and VM comes with, what lives where and where your own changes belong.

Access

  • Log in only as root with an SSH key, without a password. A root password only exists with the module desktop – for RDP, not for SSH.
  • Without network: pct enter <ID> (container) or the serial console qm terminal <ID> (VM) on the Proxmox host.
  • Need more keys? Append them to /root/.ssh/authorized_keys.

What every guest comes with

Debian 13no third-party sources – unless an app needs one (Zammad, Elasticsearch, Jellyfin), then with a key pinned in iac-core; time zone Europe/Berlin
Firewallnftables: incoming only SSH, the app’s ports and the ports of active modules – some only from private networks (Security)
Sandboxthe app’s services run in a systemd sandbox: only their data is writable, no needless privileges
Kernel(VM) hardened sysctl values in /etc/sysctl.d/50-iac.conf, your own in 90-local.conf; modules a server does not need are blocked (/etc/modprobe.d/50-iac.conf: rare network protocols, USB and FireWire storage); a container takes all of it from the Proxmox host
LoginSSH keys only, a short warning at the console and before the SSH login (/etc/issue, /etc/issue.net – no host name, version or owner), UMASK 027 for new users
Modulespreselected for new guests: auto-update, unattended-upgrades, fail2ban, security-report – deselect them when creating the guest, or later with update --remove-modules
etckeeperevery change to /etc ends up in a Git repository (git -C /etc log)
updateone command for all updates, nightly with auto-update (Update)
Ansiblefrom Debian, runs only locally and establishes the target state on install and update
Self-testbash /var/lib/iac/src/core/bin/iac-smoke – the same test that runs before every image release

Your own changes

Files that start with # managed by iac – do not edit belong to iac – each update resets them to the target state. Put your own changes in the files iac sets aside for that:

WhatWhere
Firewall rules/etc/nftables.d/90-local.nft
Kernel settings (VM)/etc/sysctl.d/90-local.conf
SSH settings/etc/ssh/sshd_config.d/90-local.conf – 10-iac.conf is read first and wins for its own options; read after yours and so changeable there: port forwarding is off (95-iac-forwarding.conf, allow it with AllowTcpForwarding local, best with PermitOpen 127.0.0.1:<port>), sessions (96-iac-sessions.conf: dead connections closed after 10 minutes, MaxSessions 4)
Settings of a servicesystemctl edit <service>
App configurationthe local file the app names (e.g. traefik.local.yaml, configuration.local.py)
Settings and secrets of the instance/etc/iac/settings.env, then update

Opening an extra port, for example:

echo 'add rule inet iac input tcp dport 8443 accept' >> /etc/nftables.d/90-local.nft
systemctl reload nftables

What lives where

PathContent
/etc/iac/instance.jsonapp, version, active modules, platform, versions of iac-core and the app – written by iac after every successful run
/etc/iac/settings.envsettings and generated secrets of this instance (root only, 0600)
/var/lib/iac/src/iac-core and the app in the installed version
/var/log/iac/iac.loglog of every installation and every update
/var/backups/iac/backups adopt.sh made before an adoption
/var/lib/iac/update.jsonresult of the last update: time, ok/failed, exit code (Update)

Work in progress – planned, not available yet

The internal CA will add these paths:

PathContent
/etc/iac/ca/*.crtyour own root certificates – the guest trusts them system-wide
/etc/iac/tls/key.pem, cert.pemthe certificate of this guest; apps with their own TLS use it instead of a self-signed one

When something doesn’t work

bash /var/lib/iac/src/core/bin/iac-smoke                      # what runs, what does not
tail -n 100 /var/log/iac/iac.log                               # last run
IAC_VERBOSE=1 bash /var/lib/iac/src/core/bin/iac-install       # target state again, with all details

Running iac-install again is harmless – all it does is establish the target state.