k8s-hub: evaluate H2 Extended CONNECT for exec #1590

Open
opened 2026-08-27 18:52:56 +00:00 by ginjiruu · 2 comments
Owner

Forced backend.http.version: HTTP1 in k8s-hub/base/oauth-policy.yaml to make kubectl exec work (h2 strips Upgrade). Follow up: check if agentgateway can support H2 Extended CONNECT (RFC8441) for exec websockets so we can drop HTTP1 and regain h2 multiplexing for watches. See faa19b0c.

Forced backend.http.version: HTTP1 in k8s-hub/base/oauth-policy.yaml to make kubectl exec work (h2 strips Upgrade). Follow up: check if agentgateway can support H2 Extended CONNECT (RFC8441) for exec websockets so we can drop HTTP1 and regain h2 multiplexing for watches. See faa19b0c.
Author
Owner

Note: after dual-auth split, passthrough now correctly uses CA-only HTTP1 (no mTLS) so apiserver OIDC RBAC is respected (was 401 due to JWT on passthrough). Fix scoped JWT to exchange only (fe7af238). 401 vs 403 now correct per RBAC; Hunter ginjiruu with mini-admins/portable-admins now 200. Keep for H2 Extended CONNECT revisit.

Note: after dual-auth split, passthrough now correctly uses CA-only HTTP1 (no mTLS) so apiserver OIDC RBAC is respected (was 401 due to JWT on passthrough). Fix scoped JWT to exchange only (fe7af238). 401 vs 403 now correct per RBAC; Hunter ginjiruu with mini-admins/portable-admins now 200. Keep for H2 Extended CONNECT revisit.
Author
Owner

Terminology correction (agentgateway → current architecture). agentgateway is no longer in the apiserver path. The k8s-hub now fronts each apiserver with Cilium Gateway API (the gateway/cilium-default gateway); the RFC 8693 token exchange is done by the custom authz-bridge (CRDs in oauth.animeteamspeak.moe). agentgateway is now AI-only.

Specifically for this ticket:

  • k8s-hub/base/oauth-policy.yaml no longer exists — the base files are apiserver-backend.yaml, apiserver-ca.yaml, httproute.yaml, listenerset.yaml, tls-policy.yaml, and the OIDC config now lives in the per-cluster overlays as OidcPolicy/TokenExchangePolicy (overlays/<cluster>/<cluster>-oidcpolicy.yaml, oauth.animeteamspeak.moe/v1alpha1). The backend.http.version: HTTP1 forcing referenced here is not present in the current tree.
  • The "can agentgateway support H2 Extended CONNECT (RFC 8441) for exec websockets" question is now a Cilium question: whether Cilium's Gateway API implementation (the k8s-hub gateway that terminates the apiserver TLS) can pass H2 Extended CONNECT through for kubectl exec/logs/port-forward, so we can drop the HTTP1 pin and regain h2 multiplexing for watches.
**Terminology correction (agentgateway → current architecture).** agentgateway is no longer in the apiserver path. The k8s-hub now fronts each apiserver with **Cilium Gateway API** (the `gateway/cilium-default` gateway); the RFC 8693 token exchange is done by the custom **authz-bridge** (CRDs in `oauth.animeteamspeak.moe`). agentgateway is now AI-only. Specifically for this ticket: - `k8s-hub/base/oauth-policy.yaml` **no longer exists** — the base files are `apiserver-backend.yaml`, `apiserver-ca.yaml`, `httproute.yaml`, `listenerset.yaml`, `tls-policy.yaml`, and the OIDC config now lives in the per-cluster overlays as `OidcPolicy`/`TokenExchangePolicy` (`overlays/<cluster>/<cluster>-oidcpolicy.yaml`, `oauth.animeteamspeak.moe/v1alpha1`). The `backend.http.version: HTTP1` forcing referenced here is not present in the current tree. - The "can agentgateway support H2 Extended CONNECT (RFC 8441) for exec websockets" question is now a **Cilium** question: whether Cilium's Gateway API implementation (the k8s-hub gateway that terminates the apiserver TLS) can pass H2 Extended CONNECT through for kubectl exec/logs/port-forward, so we can drop the HTTP1 pin and regain h2 multiplexing for watches.
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#1590
No description provided.