{
  "report_version": 1,
  "host": "vpn",
  "generated_at": "2026-11-11T09:49:52Z",
  "system_generation": "/nix/store/y6mwjww7iyym42i4d14z1cl5v3jhcrip-nixos-system-vpn-26.11.20260909.7b66dac",
  "all_ok": true,
  "checks": [
    {
      "id": "blocky:wg2:querylog-off",
      "ok": true,
      "detail": "the effective config /nix/store/11dxqnddfr8kamn61gm8c0w5ll8jcgrg-blocky-wg2.yaml (path read from blocky-wg2, not declared here) has queryLog.type=none; no query logging is the fleet posture"
    },
    {
      "id": "blocky:wg2:no-querylog-file",
      "ok": true,
      "detail": "queryLog.type=none target=None; 0 artifact(s) at the declared target; 0 query-log-shaped name(s) under state dir /var/lib/blocky-wg2; unit blocky-wg2 ActiveState=active"
    },
    {
      "id": "blocky:fleet:querylog-off",
      "ok": true,
      "detail": "the effective config /nix/store/sbg6187nswwdhvn1cpqd2jjymcdpwzam-blocky-fleet.yaml (path read from blocky-fleet, not declared here) has queryLog.type=none; no query logging is the fleet posture"
    },
    {
      "id": "blocky:fleet:no-querylog-file",
      "ok": true,
      "detail": "queryLog.type=none target=None; 0 artifact(s) at the declared target; 0 query-log-shaped name(s) under state dir /var/lib/blocky-fleet; unit blocky-fleet ActiveState=active"
    },
    {
      "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 692 line(s) of units blocky-wg2,blocky-fleet,unbound,unbound-client since 14 days ago; 0 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)"
    }
  ],
  "retention": {
    "adguard-querylog": "no AdGuard instance serves on this host any more (the fleet resolver on 11.0.0.1 and the wg2 tier resolver on 172.16.41.1 are both blocky)",
    "blocky-querylog": "disabled on every blocky instance on this host: queryLog.type is forced to \"none\" by nix-config-private modules/resolver-blocky.nix (a host cannot override it; the module fails evaluation instead)",
    "hermes-lcm": "90d (enforced daily by systemd.timers.hermes-lcm-retention)",
    "journald": "30d local ceiling (a maximum, not an achieved window: size-bounded to 512M by NCFG-754, vpn's worst-case full-replay bound, where the ACHIEVED window is ~1-2 d and volume-dependent - 24.3 h at ~0.46 GB/day on 2026-10-07, 48.2 h at ~242 MiB/day on 2026-10-09 - so plan on ~1 d (NCFG-788); the >=3 d surface is VictoriaLogs, 14 d, whole journal shipped off-host)",
    "victorialogs": "14d",
    "victoriametrics": "fleet store 90d; client store 30d - the per-account byte counters (clientsv_account_bytes_total, attributable to a customer's device) are routed by vmagent to vpn-mx's :8430 store which retains 30d, and dropped from the 90d fleet store (nix-config#1007)"
  },
  "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.",
    "blocky:<instance> checks read the EFFECTIVE config the running unit loaded (the path comes from the unit's own ExecStart, not from this module's configuration) and require queryLog.type: none plus no query-log artifact under the unit's state dir, with the unit ACTIVE. There is no canary query on this engine: with query logging off blocky's /api/query answers 405, so a pass here is a claim about configuration and disk, not an observation that a sent query left no log entry.",
    "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"
  }
}
