infra(gateway): enable Envoy HTTP access logs for the Cilium GatewayClass (netsec F7) #76
Loading…
Reference in a new issue
No description provided.
Delete branch "wt/t_e662b03a"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Finding F7 of the 2026-11-27 cluster netsec audit:
cilium-envoyemitted no request-level record, so the design's only application-layer detection (§4d traversal /union select/%00/.env/.gitprobes / high-rate 401-403 per client / scanner user-agents) had no input stream.Cilium 1.20 supports Gateway access logs through
CiliumGatewayClassConfig.spec.telemetry.accessLogs, referenced fromGatewayClass.spec.parametersRef. The chart has no Helm values knob for that reference, so this PR declares both objects in Git:infrastructure/networking/gateway/gatewayclass-config.yaml—CiliumGatewayClassConfig kube-system/cilium, JSON, HTTP target, explicit field allowlist.infrastructure/networking/gateway/gatewayclass.yaml— the chart'sciliumGatewayClass plusparametersRef.infrastructure/networking/gateway/kustomization.yaml— lists both.Cilium renders the access log into every Gateway listener's HTTP connection manager and writes one JSON line per request to the
cilium-envoycontainer stdout, i.e./var/log/pods/kube-system_cilium-envoy-*/cilium-envoy/*.log, which the node log store (Alloy -> Loki) already tails.Fields and what is deliberately excluded
gateway, start_time, method, path, protocol, response_code, response_flags, duration_ms, bytes_received, bytes_sent, authority, client_ip (CF-Connecting-IP), x_forwarded_for, peer, user_agent, cf_ray, upstream_hostclient_ipis the real client identity: Envoy is hostNetwork, so the raw peer is cloudflared on the Pi.peer+x_forwarded_forare kept so a missing/forgedCF-Connecting-IPis visible instead of silently trusted.No request/response bodies and no header dumps —
Authorization,Cookie,Set-Cookienever reach disk. Envoy application log level staysinfo; no debug/trace.Safety
created (server dry run)/configured (server dry run)).Verification
Live request proof, byte volume measurement, kubelet rotation window and a parser check are recorded on the card (t_e662b03a) after this merges and Flux reconciles.