ALB returns 502 for gRPC over HTTP/2 after enabling TLS policy to TLS1.3-only
Environment
AWS Application Load Balancer (ALB) frontend configured for TLS termination, target group is gRPC server (HTTP/2) on Fargate tasks. Previously used TLS policy supporting TLS1.2 & TLS1.3. After switching ALB listener to a custom policy allowing only TLS1.3, clients see intermittent 502 responses for gRPC calls while health checks to /healthz still pass.
Symptoms
gRPC clients report UNAVAILABLE with ALB returning 502 Bad Gateway for some streams; other gRPC calls succeed intermittently. ALB access logs show target response codes 502 with 'cause' hinting at HTTP/2 framing errors. Backend tasks' application logs show no corresponding request entries for failed requests. TLS handshakes from ALB to backend are not used because ALB terminates TLS and forwards to backend over HTTP/2 plain text.
Observations
Rolling back ALB TLS policy to include TLS1.2 resolves the 502 errors immediately. No change to backend task configuration. ALB metrics show increased TLS negotiation timeouts and some TLS protocol errors shortly after policy change. Client connections use TLS1.3 to the ALB. ALB target group protocol is set to HTTP/2 with 'protocol version' ALPN negotiation expected between client and ALB, and ALB performs HTTP/2 to backend. No custom proxies in between ALB and targets.
Already attempted
Reverted ALB TLS policy to previous TLS1.2+TLS1.3 policy (issue stopped). Increased backend connection timeouts. Rotated ALB certificates. Checked application logs for malformed requests — none found. Verified ALB health checks continued to return 200 on backend.
Question
Why would enabling a TLS1.3-only policy on ALB cause intermittent 502 for gRPC traffic even though ALB is terminating TLS? What diagnostics should I collect and what configuration changes are safe to try while minimizing disruption to production traffic?
Verified community troubleshooting
No answers yet..
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags