From 510d85bde57b8678e5ef1695df01e247eeca793f Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 23 Oct 2026 12:43:09 +0000 Subject: [PATCH] netpol: allow edge 4647 from node2 kilo gateway IP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cross-cluster mesh traffic arrives SNATed through the node2 kilo gateway (10.4.2.1), not with the original node2 pod CIDR source — confirmed via tcpdump on node4 kilo0. /32 on the gateway preserves the outpost-only restriction while letting the Authentik proxy outpost through. --- deploy/010-cursor-agent-api.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/deploy/010-cursor-agent-api.yaml b/deploy/010-cursor-agent-api.yaml index 22b524f..ccbe421 100644 --- a/deploy/010-cursor-agent-api.yaml +++ b/deploy/010-cursor-agent-api.yaml @@ -191,10 +191,12 @@ metadata: # - port 4646 (internal, token-gated): any source (cluster + federation # mesh). Auth is enforced by PROXY_INTERNAL_TOKEN in the app layer — # the Authentik trust header is NOT accepted on this port. -# - port 4647 (edge): Authentik outpost only. The outpost runs on node2 -# (pod CIDR 10.42.0.0/24, preserved across the kilo mesh). Direct -# in-cluster access to the edge port is blocked, so the -# X-Authentik-Username trust header cannot be forged locally. +# - port 4647 (edge): Authentik outpost only. The outpost runs on node2; +# cross-cluster mesh traffic is SNATed by kilo to the node2 gateway +# address (10.4.2.1/32), so the CIDR below is the node2 kilo gateway, +# not the node2 pod CIDR. Direct in-cluster access to the edge port is +# blocked, so the X-Authentik-Username trust header cannot be forged +# locally. apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: @@ -215,7 +217,7 @@ spec: port: 4646 - from: - ipBlock: - cidr: 10.42.0.0/24 + cidr: 10.4.2.1/32 ports: - protocol: TCP port: 4647