heyer.systems Open Source

haypack Compliance

Weekly evidence for ISO 27001 and other standards from NetBox: checks with severity, a heatmap per server, PDF per tenant, and web pages of the current state.

Install

On the Proxmox node as root:

bash -c "$(curl -fsSL https://iac.heyer.systems/compliance/ct.sh)"

Container from the Debian 13 template · default: 1 CPU, 512 MiB RAM, 4 GiB disk

Customise the commandYour own values for CPU, RAM, network and modules – no dialog

Then: Web: http://<IP>/ (current state, every 6 hours), reports: http://<IP>/reports/ – put a reverse proxy with login in front

More steps are needed outside the guest – see the setup guide.

Settings per instance

SettingMeaning
netbox_urlNetBox URL – e.g. https://netbox.example.org
netbox_token secretNetBox API token (read-only) – The token alone, without Bearer – read access only
report_mail_toMail the weekly report to – Addresses, comma separated – empty: archive only
report_responsibleResponsible – Name on the cover of the report
report_distributionDistribution – Recipients named on the cover, default: IT-Projektmanager (English: IT project manager)
report_languageLanguage of the report – de (German, default) or en (English) – report, findings and mail
report_standardsStandards of the report – Only the checks of these standards, comma separated: iso27001, iso9001 – empty: every standard and the checks without one
monitoring_urliac-monitoring read access (optional) – e.g. https://10.0.0.5:9443 – availability per server over 28 days; the certificate of the monitoring guest goes to /etc/iac-compliance/monitoring-ca.pem (README)
monitoring_token secretiac-monitoring token – In the monitoring guest: grep prometheus_read_token /etc/iac/settings.env
nvd_api_key secretNVD API key (optional) – From nvd.nist.gov/developers – 50 instead of 5 requests per 30 s

When creating a container, as var_<setting>:

var_netbox_url="<value>" bash -c "$(curl -fsSL https://iac.heyer.systems/compliance/ct.sh)"

Set or change later, in the guest (for VMs the only way so far): a line netbox_url=<value> in /etc/iac/settings.env – no quotes, the last line of a setting wins – then:

update

With NetBox: the same line netbox_url=<value> in the field Settings of the VM – it takes effect at the next update. Secrets stay in the guest.

Missing or empty = the app's default. Do not edit the configuration files iac writes – update overwrites them; their first lines name the file for local changes.

Setup guide

iac-compliance turns what your guests report to NetBox into a weekly evidence report for ISO/IEC 27001:2022 Annex A: a traffic light per server, vulnerabilities rated by real-world risk, the use of your networks and the measures to take – as a PDF per tenant and over all. The report is evidence, not the certification itself.

NetBox (read-only) ──┐
CISA KEV, EPSS, NVD ─┴─▶ iac-compliance ──▶ PDF archive (http://<guest>/) + mail

It needs guests managed with NetBox provisioning and the module security-report on them – that is where the data comes from.

1. A read-only token in NetBox

iac-compliance never writes to NetBox. Give it a token that cannot:

  1. In NetBox, create a user iac-compliance with a permission that allows view only (all object types, or at least virtual machines, IPAM and journal entries).
  2. Create an API token for that user – with write enabled off.

2. Create the guest

On the Proxmox node:

bash -c "$(curl -fsSL https://iac.heyer.systems/compliance/ct.sh)"

Settings – in the dialog, as var_<name>=…, or later in /etc/iac/settings.env followed by update:

SettingMeaning
netbox_url, netbox_tokenyour NetBox and the read-only token
report_mail_torecipients of the weekly PDF, comma separated – empty: archive only
report_responsible, report_distributionnames on the cover page
nvd_api_keyoptional, free from nvd.nist.gov: 50 instead of 5 requests per 30 s
mail_relay_host, mail_relay_user, mail_relay_passwordyour smarthost – the module mail-relay sends the report

The guest needs outgoing HTTPS to NetBox, www.cisa.gov, api.first.org and services.nvd.nist.gov.

3. The first report

Every Monday at 06:00 the next report appears by itself. To get one now, in the guest:

systemctl start iac-compliance       # takes a few minutes the first time (NVD rate limit)
journalctl -u iac-compliance         # result: how many servers are red, yellow, green

Open http://<guest>/ – one folder per report, e.g. 2026-KW44/ over all and 2026-KW44-<tenant>/ per tenant, each with bericht.pdf. Reports are read-only and never replaced; a second run in the same week gets -2. Next to the PDF lies data.json, the snapshot the report was made from – the evidence over time.

What gets rated

LightWhen
Redlast update failed, no update for over 14 days, or open fixes while the last update is older than 2 days; a fixable CVE that is known to be exploited (CISA KEV) or has CVSS 9.0+ over the network
Yellowopen fixes, services running with replaced libraries, reboot needed, configuration pending, errors in the journal, no vulnerability check, a fixable CVE with CVSS 7.0+ or EPSS 10 %+, a KEV CVE without a fix (needs a workaround)
Greennone of these

CVEs without a fix in Debian are counted but not rated – every Debian system has many. All rules are fixed and traceable to a field in NetBox; no AI rates anything.

Limits

The report covers Debian packages, the update state and configuration of guests managed by iac, and the IPAM of NetBox. Not yet: software an app brings outside Debian, network devices and hypervisors, backups, access control and security events (planned).

Source: docs/GUIDE.md of iac-compliance – corrections welcome.

Update

In the guest:

update

Debian packages, haypack Compliance, modules and the iac configuration. Major versions never change automatically.

Add modules – any time, in containers and VMs alike:

update --list-modules
update --add-modules node-exporter

All modules · More about update