Link B (rpi wg-remote <-> linode wg0) depends on a permanent UPnP mapping
UDP 9999 -> 192.168.1.125:9999 for its inbound path, and the 15-minute
rosenpass-upnp.timer only logged to the journal when it could not re-assert
it. Two gaps closed:
* RosenpassPskRotationStalled gains absent(rosenpass_psk_rotation_age_seconds
{node="rpi", interface="wg-remote"}). Without it a dead metrics timer or
script on the Pi silently dropped the Link B series while the rule kept
reading healthy. No siriussec/wg-remote arm: that interface does not exist
there.
* rosenpass-upnp.sh now stamps its result to /run/rosenpass-upnp.present (1/0)
and rosenpass-metrics.sh reads that file into rosenpass_upnp_mapping_present
{node="rpi"} plus rosenpass_upnp_last_check_timestamp_seconds. The 60 s
metrics timer never calls upnpc (that would poll the IGD 1440x/day); a host
without the state file (siriussec) emits neither series. New
RosenpassUpnpMappingLost alert fires on value 0, on a state file older than
30 minutes (stopped timer / hung IGD, so a stale 1 cannot read healthy), or
on a missing series.
Link B (rpi wg-remote 10.20.0.2 <-> linode wg0 10.20.0.1) is now under
Rosenpass too. The pieces that only existed on the hosts are committed
here with an install/diagnosis write-up, because all three are runtime
state someone will have to rebuild:
- rosenpass-upnp.{sh,service,timer} - re-assert the permanent UPnP mapping
UDP 9999 -> 192.168.1.125 every 15 min (the router has no admin panel,
and a dropped mapping is silent).
- linkb-rollback-{rpi,linode}.sh - the self-cancelling watchdogs; this link
carries the only SSH path to the linode, so the rollback is local and
staged on both ends before the far unit starts.
- linkb-verify.sh - hashes each end's PSK and compares them without
printing key material.
Endpoint strategy recorded: the Pi's public address is residential DHCP
but provably static (IGD uptime since 2026-09-10, ~83 days on the
configured 137.118.156.124), so the linode config pins it and a moved
address is caught by the per-interface rotation-age series rather than by
a sync timer.
rosenpass-metrics.sh hashed wg0 only, so Link B (rpi wg-remote <->
linode wg0) could stall - the Pi's residential public address moving, or
the UPnP mapping for UDP 9999 being dropped - while every Link A series
stayed healthy. Iterate over an interface list, keep one state file per
interface, and emit age/last-change per interface. wg0's series keep the
same names and labels, so existing dashboards and the Link A alerts are
unchanged; RosenpassPskRotationStalled already keys on
(node, interface) and therefore starts covering wg-remote with no rule
change. A host without the interface (siriussec) simply skips it.
Rosenpass rotates the Link A preshared key (rpi wg0 10.10.0.1 <->
siriussec wg0 10.10.0.2) about every two minutes, but WireGuard keeps
using the last key it received: a dead or wedged exchange leaves the
tunnel up and silently non-post-quantum, with no alerting signal.
node-exporter here is distroless without the textfile collector (and
without the dbus plumbing --collector.systemd needs), so observe the
host directly:
- infrastructure/networking/rosenpass/: POSIX sh script run by a 60 s
systemd timer on rpi and siriussec that writes
/var/lib/node-exporter/textfile/rosenpass.prom. It exports
rosenpass_unit_active, rosenpass_psk_rotation_age_seconds and
rosenpass_psk_rotation_last_change_timestamp_seconds; the PSK listing
is only ever sha256'd, never logged or persisted.
- values.yaml: enable --collector.textfile.directory and mount the
hostPath (DirectoryOrCreate, so linode's node-exporter still starts).
extraArgs replaces the subchart defaults, so the two filesystem
exclusions are repeated verbatim.
- rosenpass.yaml: RosenpassDown (5 m) and RosenpassPskRotationStalled
(age > 900 s, 10 m), both warning, both with absent() arms so a
missing series alerts instead of reading as healthy.
Host units are installed out of band (see the directory README); the
GitOps side needs a merge before Prometheus loads the rules.