apps(metabase): deploy Metabase (WireGuard-only :8085) with CNPG app DB
- apps/base/metabase: namespace, CNPG Cluster pg (5Gi local-path, siriussec), Metabase Deployment v0.65.6.3 (1.5G heap, no PVC), Service, hostname-less HTTPRoute on the dedicated metabase Gateway - infrastructure/networking/internal: new Gateway metabase on port 8085 (own RouteConfiguration, so it cannot merge with Grafana's bare route) - host firewall: 8085 in siriussec nft set + rpi ufw guard
This commit is contained in:
parent
a0fc373e34
commit
930752152e
13 changed files with 225 additions and 14 deletions
|
|
@ -21,7 +21,8 @@ exactly one node.
|
|||
| siriussec (10.10.0.2) — **load bearing** | nftables table `inet internal_gw`, loaded by a oneshot unit (same pattern as `k8s-api-firewall.service`) | `siriussec-internal-gw.nft`, `internal-gw-firewall.service` |
|
||||
| rpi (10.10.0.1) — **inert guard** | ufw rules inserted above the `allow from 192.168.1.0/24` catch-all | `rpi-ufw-internal-gw.sh` |
|
||||
|
||||
Effective policy for `:8081` (Grafana) and `:8084` (Hubble UI):
|
||||
Effective policy for `:8081` (Grafana), `:8084` (Hubble UI) and `:8085`
|
||||
(Metabase):
|
||||
**accept from 10.10.0.0/24 and 10.244.0.0/16, accept on lo, drop everything
|
||||
else** (LAN, tailscale, public). Envoy binds every listener on `0.0.0.0`, so a
|
||||
new internal listener port is a LAN exposure until it is added here. The
|
||||
|
|
@ -56,7 +57,7 @@ Verify:
|
|||
# the drop counter non-zero after a LAN request
|
||||
nft list table inet internal_gw
|
||||
# rpi
|
||||
ufw status | grep -E '8081|8084'
|
||||
ufw status | grep -E '8081|8084|8085'
|
||||
```
|
||||
|
||||
Negative test from the LAN must be a timeout (DROP), never 200:
|
||||
|
|
@ -70,4 +71,4 @@ When a new internal listener port is added, add it to the `tcp dport { … }` se
|
|||
in `siriussec-internal-gw.nft` and to `PORTS` in `rpi-ufw-internal-gw.sh` (which
|
||||
inserts one deny for the port plus mesh and pod-CIDR allows above the LAN
|
||||
catch-all), then reinstall both and re-run the two negative tests above with the
|
||||
new port.
|
||||
new port.
|
||||
Loading…
Reference in a new issue