monitoring: kube-prometheus-stack + WireGuard-only Grafana via the internal gateway

- clusters/homek8s/monitoring.yaml: the 'monitoring' Flux Kustomization was
  declared only under clusters/home, which the bootstrapped flux-system
  Kustomization never reads (its path is ./clusters/homek8s), so it had never
  been created. Declare it in the tree that actually reconciles.
- monitoring/controllers/home: HelmRepository + HelmRelease (chart pinned
  92.14.0), values.yaml via configMapGenerator, Grafana admin from the
  monitoring/grafana-admin Secret (out of band, never in git).
- Everything pinned to siriussec, Prometheus on a 10Gi local-path PVC with
  7d AND 8GB retention caps; alertmanager off; no remote write.
- internal gateway listener now accepts routes from any namespace; the security
  boundary is the host firewall, not the namespace.
- host-firewall/: nft table + oneshot unit for siriussec and the ufw script for
  rpi that close :8081 to everything but 10.10.0.0/24 and 10.244.0.0/16.
This commit is contained in:
Lance Walters 2026-10-27 00:12:38 -04:00
commit d3741df619
13 changed files with 367 additions and 2 deletions

View file

@ -0,0 +1,26 @@
#!/usr/sbin/nft -f
# Internal (WireGuard-only) gateway listener: TCP 8081.
#
# Cilium's hostNetwork Envoy binds every Gateway listener on 0.0.0.0, so the
# internal listener is open on the LAN interface the moment the Gateway is
# programmed. This table makes :8081 answer only from the WireGuard mesh and the
# pod network. DROP (not reject) so a LAN scan sees a timeout, not a port that
# tells you something is listening.
#
# Loaded by internal-gw-firewall.service on siriussec.
# The equivalent on rpi is the ufw rules in rpi-ufw-8081.sh.
table inet internal_gw {
chain input {
type filter hook input priority filter; policy accept;
# local process / kubelet probes
tcp dport 8081 iifname "lo" accept
# WireGuard mesh (Legion = 10.10.0.3, nodes, remote hub spokes)
# and the pod network (in-cluster scrapers, probes)
tcp dport 8081 ip saddr { 10.10.0.0/24, 10.244.0.0/16 } accept
# everything else: LAN, tailscale, public
tcp dport 8081 counter drop
}
}