r/aws • • 10d ago

networking Introducing mTLS for Network Load Balancer

https://aws.amazon.com/blogs/networking-and-content-delivery/introducing-mtls-for-network-load-balancer/
217 Upvotes

8 comments sorted by

44

u/vin_dude9 10d ago

🀝

13

u/dusanodalovic 9d ago

until now mtls behind an nlb meant tcp passthrough and checking the client cert on every target yourself, so this saves real work for device fleets and other non http stuff. one thing i couldnt find tho. alb puts the client cert into a header for the backend, but nlb is layer 4 and has no headers to add. how does the target learn which client it was, proxy protocol v2 or nothing at all past the verify step?

2

u/nekokattt 9d ago

Unless there is a standard TCP level mechanism that I am unaware of, I would not have thought this is possible? You'd have to have your layer of trust on the NLB level and have no server side awareness that ingress was over mTLS in the first place I think?

Otherwise you'd have to pass through on layer 4 like currently is the way, or utilise mTLS on an ALB instead.

I do admit this limits the use case of this feature though quite heavily for people using NLBs to mitigate the limitations of ALBs (e.g. HTTP2 pass through while still supporting HTTP1).

2

u/MonkeyJunky5 9d ago

🚬 🍁

3

u/idleline 9d ago

There are important changes coming to certificates issued by public CAs for mTLS. In early 2027, CABF scoped public CAs will stop issuing certs with clientAuth EKUs from browser certificates. Certs issued to servers for TLS web sites will no longer be able to use those for mTLS.

There will be CA hierarchies that will issue certs with clientAuth EKUs, but they won’t be trusted by browsers. CABF does not provide guidance to CAs for issuing them and many do not perform DCV on client leaf certs, so in general to secure mTLS properly, use a private CA

2

u/omniex123 10d ago

Good addition!

2

u/oschvr 7d ago

I could have used this, say, about 6 years ago

0

u/davestyle 10d ago

Yip cool