{
  "report_version": 1,
  "host": "vpn",
  "generated_at": "2026-10-04T09:40:25Z",
  "system_generation": "/nix/store/z0zjh983iwvbzz2qzjinq1jfkj7h3acx-nixos-system-vpn-26.11.20260909.7b66dac",
  "all_ok": true,
  "checks": [
    {
      "id": "adguard:fleet:querylog_config",
      "ok": true,
      "detail": "enforce POST accepted after 1 attempt(s); behavioural check below"
    },
    {
      "id": "adguard:fleet:stats_config",
      "ok": true,
      "detail": "enforce POST accepted after 1 attempt(s); behavioural check below"
    },
    {
      "id": "adguard:fleet:no-querylog-file",
      "ok": true,
      "detail": "/var/lib/AdGuardHome/data/querylog.json absent after live queries; purge=False; probe reached the resolver=True (rc=0 after 1 attempt(s): dig @127.0.0.1 example.com A +time=3 +tries=1)"
    },
    {
      "id": "adguard:fleet:buffer",
      "ok": true,
      "detail": "in-memory entries=0 (before the probe: 0); canary audit-canary-0ea3b614ea.ymrtech.invalid present=False; grew=False \u2014 a present canary or growth means the resolver still logs, and that is a violation on every tier; a non-zero count that does neither is residue from before the disable, which only a restart clears"
    },
    {
      "id": "adguard:wg2:querylog_config",
      "ok": true,
      "detail": "enforce POST accepted after 1 attempt(s); behavioural check below"
    },
    {
      "id": "adguard:wg2:stats_config",
      "ok": true,
      "detail": "enforce POST accepted after 1 attempt(s); behavioural check below"
    },
    {
      "id": "adguard:wg2:no-querylog-file",
      "ok": true,
      "detail": "/var/lib/adguardhome-client/data/querylog.json absent after live queries; purge=False; probe reached the resolver=True (rc=0 after 1 attempt(s): dig -b 172.16.41.1 @172.16.41.1 example.com A +time=3 +tries=1)"
    },
    {
      "id": "adguard:wg2:buffer",
      "ok": true,
      "detail": "in-memory entries=868 (before the probe: 868); canary audit-canary-5224995152.ymrtech.invalid present=False; grew=False \u2014 a present canary or growth means the resolver still logs, and that is a violation on every tier; a non-zero count that does neither is residue from before the disable, which only a restart clears"
    },
    {
      "id": "unbound:/etc/unbound/unbound.conf",
      "ok": true,
      "detail": "log-queries lines=none"
    },
    {
      "id": "unbound:/etc/unbound-client/unbound.conf",
      "ok": true,
      "detail": "log-queries lines=none"
    },
    {
      "id": "journal:no-client-tier-address",
      "ok": true,
      "detail": "0 client match(es) in 375 line(s) of units adguardhome,adguardhome-client,unbound,unbound-client since 14 days ago; 2 non-client line(s) ignored (sudo audit trail, or a fleet address: this host's own gateway, its peer's tier resolver, or the tier VIP)"
    },
    {
      "id": "nolog:adguardhome-nolog",
      "ok": true,
      "detail": "re-ran the unit (rc=0); ActiveState=active ExecMainStatus=0 behavioural_ok=True"
    },
    {
      "id": "nolog:clientsv-nolog-primary",
      "ok": true,
      "detail": "re-ran the unit (rc=0); ActiveState=active ExecMainStatus=0 behavioural_ok=True"
    }
  ],
  "retention": {
    "adguard-querylog": "disabled on both instances",
    "hermes-lcm": "90d (enforced daily by systemd.timers.hermes-lcm-retention)",
    "journald": "30d local ceiling (a maximum, not an achieved window: vpn's journal is rotation/size-bounded and measures ~1d), 14d in VictoriaLogs (whole journal shipped off-host)",
    "victorialogs": "14d",
    "victoriametrics": "30d (per-device byte counters are attributable to a customer's device)"
  },
  "notes": [
    "adguard:* checks ENFORCE the setting (idempotent POST), purge any persisted querylog, then require that a real query wrote nothing: the API has no read endpoint for this setting and its querylog GET serves stale memory.",
    "nolog:<unit> checks RE-RUN the unit's own behavioural assertion (restart, then require a fresh success plus its NO-LOG OK line) rather than re-reading the line a past deploy wrote: the local journal is size-capped and vacuums that line long before any declared retention.",
    "journal:no-client-tier-address scans only the resolver units named in queryUnits, and counts only lines naming a CLIENT tier address. Every address the fleet owns inside the scanned ranges \u2014 this host's own gateways, its peer's tier resolvers, and the tier VIP that moves between the halves, declared once in nix-config-private/modules/fleet-tier-addresses.nix \u2014 is counted and reported as non-client rather than dropped.",
    "retention values are DECLARED claims from the configuration, recorded here so a change to them is visible as a diff."
  ],
  "signing_key": {
    "type": "ssh-ed25519",
    "identity": "logging-audit@vpn",
    "allowed_signers": "logging-audit.allowed_signers",
    "fingerprint": "256 SHA256:nLZOwc5NYNz4dWnTI6ZDOYi3IGsiFj9yhKEs/VzCpzY logging-audit@vpn (ED25519)",
    "verify": "ssh-keygen -Y verify -f logging-audit.allowed_signers -I logging-audit@vpn -n logging-audit -s logging-audit.json.sig < logging-audit.json"
  }
}
