Implement: agentgateway as hub ingress for all clusters (D5/D6) #1538

Closed
opened 2026-08-13 23:23:20 +00:00 by ginjiruu · 1 comment
Owner

Implement: agentgateway as hub ingress for all clusters (D5/D6)

Implementation ticket for the hub architecture (#1532). Deploys agentgateway on portable as the single ingress for every cluster's Kubernetes API, once the validations (#1534 dual-auth, #1535 SPDY upgrades) pass.

What to build

  • agentgateway deployed on portable (hub), terminating *.k8s.animeteamspeak.moe with a Let's Encrypt cert.
  • One route per cluster: <cluster>.k8s.animeteamspeak.moe → backend apiserver over the WG fabric (#1533 address plan).
  • Machine flow: kubeconfig carries a Kanidm SA API token + agentgateway server/CA → backendAuth.oauthTokenExchange per request (Golden Path, iac#38/#39).
  • Human flow: kubelogin exec mints a fresh token → passthrough → apiserver OIDC.
  • backendTLS trusts the shared apiserver CA (iac#40 → trust-manager); serverName matches the internal SAN agentgateway dials.
  • Wire into the repo per the #1527 edge pattern (HelmRelease / instance under clusters/portable/).

Gates

Blocked by:

  • #1534 (dual-auth on one endpoint) — prerequisite
  • #1535 (exec/logs/port-forward upgrades) — prerequisite
  • #1533 (network plan — the address agentgateway dials)
  • iac#40 (shared CA available for backendTLS)

Deliverables

  • agentgateway on portable, Let's Encrypt cert, *.k8s listener
  • Per-cluster route with machine + human auth (per #1534 outcome)
  • backendTLS trusting the shared CA
  • kubectl works against each <cluster>.k8s.animeteamspeak.moe for both flows
  • Audit-visible per-flow identity (machine vs human) if #1534 supports it
  • #1532 (plan), #1534, #1535 (validations this implements), #1527 (edge research)
  • iac#28 (T13), iac#38 (Golden Path), iac#39 (resolved), iac#40 (CA)
## Implement: agentgateway as hub ingress for all clusters (D5/D6) Implementation ticket for the hub architecture (#1532). Deploys agentgateway on portable as the single ingress for every cluster's Kubernetes API, once the validations (#1534 dual-auth, #1535 SPDY upgrades) pass. ## What to build - agentgateway deployed on portable (hub), terminating `*.k8s.animeteamspeak.moe` with a Let's Encrypt cert. - One route per cluster: `<cluster>.k8s.animeteamspeak.moe` → backend apiserver over the WG fabric (#1533 address plan). - **Machine flow**: kubeconfig carries a Kanidm SA API token + agentgateway server/CA → `backendAuth.oauthTokenExchange` per request (Golden Path, iac#38/#39). - **Human flow**: kubelogin exec mints a fresh token → passthrough → apiserver OIDC. - `backendTLS` trusts the **shared apiserver CA** (iac#40 → trust-manager); `serverName` matches the internal SAN agentgateway dials. - Wire into the repo per the #1527 edge pattern (HelmRelease / instance under `clusters/portable/`). ## Gates Blocked by: - #1534 (dual-auth on one endpoint) — **prerequisite** - #1535 (exec/logs/port-forward upgrades) — **prerequisite** - #1533 (network plan — the address agentgateway dials) - iac#40 (shared CA available for `backendTLS`) ## Deliverables - [ ] agentgateway on portable, Let's Encrypt cert, `*.k8s` listener - [ ] Per-cluster route with machine + human auth (per #1534 outcome) - [ ] `backendTLS` trusting the shared CA - [ ] `kubectl` works against each `<cluster>.k8s.animeteamspeak.moe` for both flows - [ ] Audit-visible per-flow identity (machine vs human) if #1534 supports it ## Related - #1532 (plan), #1534, #1535 (validations this implements), #1527 (edge research) - iac#28 (T13), iac#38 (Golden Path), iac#39 (resolved), iac#40 (CA)
Author
Owner

Implements hub ingress: portable as hub, *.k8s.animeteamspeak.moe via agentgateway. Validations #1534 (dual-auth) and #1535 (upgrades) now pass.

  • Template generic-templates/k8s-hub deployed via k8s-hub-* Kustomizations (mini 10.15.1.170, portable 10.10.1.20) with shared kanidm-token-endpoint TLS + per-cluster JWT (issuer auth.animeteamspeak.moe) + split HTTPRoute exchange/passthrough. Commits a630e863, faa19b0c, c05fba9c, 31f3774a, fe7af238. Flux applied revision fe7af238.
  • Both flows verified against /tmp/testkubeconfig (oidc-login) and /tmp/kubeconfig-mini.yaml (API token) for get, exec, logs, port-forward. Ready for per-cluster route rollout once #1533 address plan final.
Implements hub ingress: portable as hub, *.k8s.animeteamspeak.moe via agentgateway. Validations #1534 (dual-auth) and #1535 (upgrades) now pass. - Template generic-templates/k8s-hub deployed via k8s-hub-* Kustomizations (mini 10.15.1.170, portable 10.10.1.20) with shared kanidm-token-endpoint TLS + per-cluster JWT (issuer auth.animeteamspeak.moe) + split HTTPRoute exchange/passthrough. Commits a630e863, faa19b0c, c05fba9c, 31f3774a, fe7af238. Flux applied revision fe7af238. - Both flows verified against /tmp/testkubeconfig (oidc-login) and /tmp/kubeconfig-mini.yaml (API token) for get, exec, logs, port-forward. Ready for per-cluster route rollout once #1533 address plan final.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/clusters#1538
No description provided.