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