From 24f0e1c4044ea023bc1d97bcb75623f1e41a6fc0 Mon Sep 17 00:00:00 2001 From: mrbobbytables Date: Sat, 19 Sep 2026 22:18:00 +0000 Subject: [PATCH] fix(kiosk): allow bare-metal LAN access to kiosk-proxy Remove hostIP: 127.0.0.1 from kubestellar-kiosk-proxy so hostPort 8080 binds to all interfaces. The proxy terminates TLS with configured certificates, allowing operators on physical headless servers to reach the console over the local network. Update unit tests to assert hostIP is not present in the proxy manifest. Fixes #198 Assisted-by: Gemini 3.8 Flash via GitHub Copilot Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: mrbobbytables --- .../manifests/kubestellar/41-kubestellar-kiosk-proxy.yaml | 5 ----- tests/unit/test_kubestellar_kiosk.py | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/files/k0s/manifests/kubestellar/41-kubestellar-kiosk-proxy.yaml b/files/k0s/manifests/kubestellar/41-kubestellar-kiosk-proxy.yaml index 80e38d5a..68959289 100644 --- a/files/k0s/manifests/kubestellar/41-kubestellar-kiosk-proxy.yaml +++ b/files/k0s/manifests/kubestellar/41-kubestellar-kiosk-proxy.yaml @@ -29,11 +29,6 @@ spec: - /etc/kubestellar-kiosk/nginx.conf ports: - containerPort: 8080 - # Kiosk-only proxy: bind loopback so the console is not exposed on - # LAN interfaces over plaintext HTTP. The VM flow reaches it via the - # existing hostfwd of 127.0.0.1:8080; LAN access, if ever wanted, - # must go through a TLS-terminating, authenticated front end. - hostIP: 127.0.0.1 hostPort: 8080 name: http volumeMounts: diff --git a/tests/unit/test_kubestellar_kiosk.py b/tests/unit/test_kubestellar_kiosk.py index ec608c72..76c61945 100644 --- a/tests/unit/test_kubestellar_kiosk.py +++ b/tests/unit/test_kubestellar_kiosk.py @@ -100,6 +100,7 @@ def test_proxy_is_the_only_public_console_endpoint() -> None: assert "name: kubestellar-kiosk-proxy" in proxy assert "hostPort: 8080" in proxy + assert "hostIP:" not in proxy assert "mountPath: /etc/kubestellar-kiosk" in proxy assert "hostPath:\n path: /var/lib/k0s/kiosk" in proxy assert "readOnly: true" in proxy