Files
home-network-k3s-impl/platform/homepage/networkpolicy.yaml
jakman85andClaude Opus 4.8 1749603f87 feat(homepage): apex landing dashboard at home.keithjackson.dev
Deploy Homepage (gethomepage) as the apex landing dashboard aggregating
links to cluster services, in its OWN non-gating post-platform Flux
Kustomization (clusters/base/homepage.yaml, dependsOn platform-config,
wait:false) — mirrors headlamp/oauth2-proxy so a leaf UI can never gate
the platform chain.

- platform/homepage/: plain manifests (ns, config ConfigMap, Deployment,
  Service, default-deny+Cilium ingress NP, apex HTTPRoute). Non-root pod,
  HOMEPAGE_ALLOWED_HOSTS, bundled mdi-* icons (DNS-only egress).
- gateway.yaml: add https-apex + http-apex-redirect listeners for the bare
  apex (the *.home wildcard listener does NOT match it). Apex is already a
  SAN on the wildcard cert — no new Certificate.
- Forward-auth annotated (auth-mode=forward-auth) but NOT enforced: the
  Gateway ext-authz mechanism is an unbuilt Phase-6 WS-NET TODO (same status
  as all other forward-auth apps). Flagged as PM follow-up.

Gate: lint/l0/render-golden(10/10)/l1 green; conformance skipped (no cluster).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-08-28 12:17:25 -05:00

52 lines
1.6 KiB
YAML

---
# Default-deny baseline (R-NET-01): deny all ingress + egress, allow only DNS. `homepage` is a
# PLATFORM namespace so Kyverno does not auto-generate this — we ship it explicitly (defense in
# depth). Same shape as the Kyverno-generated app baseline. Cilium enforces the UNION of this
# NetworkPolicy and the CiliumNetworkPolicy below (allow if ANY policy allows).
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-deny
namespace: homepage
labels:
homelab.keithjackson.dev/baseline: default-deny
spec:
podSelector: {}
policyTypes:
- Ingress
- Egress
ingress: []
egress:
- to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: kube-system
ports:
- protocol: UDP
port: 53
- protocol: TCP
port: 53
---
# Gateway ingress allow (R-NET-01/02): only the shared Gateway (the Cilium `ingress` entity) may
# reach Homepage, on its container port 3000. Homepage is a pure link dashboard — it makes NO
# outbound calls (bundled `mdi-*` icons, no service-status widgets), so DNS-only egress from the
# baseline above is sufficient and no egress CNP is added (minimal egress).
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: homepage-allow-gateway-ingress
namespace: homepage
labels:
app.kubernetes.io/name: homepage
spec:
endpointSelector:
matchLabels:
app.kubernetes.io/name: homepage
ingress:
- fromEntities:
- ingress
toPorts:
- ports:
- port: "3000"
protocol: TCP