Mail in through a load balancer that sends PROXY v2 (K-C6) #24

Merged
jcoffey-dev merged 1 commits from feat/mail-proxy-protocol into main 2026-11-19 15:16:12 +00:00
Owner

Closes #6. Local mode (externalTrafficPolicy: Local) was already the default. This adds PROXY v2 as the other mode: server.services.mail.proxyProtocol. The mail Service sends each port to a PROXY copy of the listener in the pods (inbuxa/inbuxa-server#475), believed only from trustedNetworks, the load balancer's addresses. NetworkPolicy opens the copies' ports.

The chart refuses PROXY mode without trustedNetworks, or with externalTrafficPolicy: Cluster. With Cluster, connections arrive from the nodes, and trusting them lets anyone claim any address (spike S6).

Lab: mailin-test.sh (inbuxa/inbuxa-k8s-lab) checks the address in Received in both modes, and that a forged header isn't believed. All pass. 67 chart tests pass, and check.sh passes.

Hold for rc.32, like #19 and #23. It's off by default, so merging early only matters to someone who turns it on with an older server.

Closes #6. Local mode (`externalTrafficPolicy: Local`) was already the default. This adds PROXY v2 as the other mode: `server.services.mail.proxyProtocol`. The mail Service sends each port to a PROXY copy of the listener in the pods (inbuxa/inbuxa-server#475), believed only from `trustedNetworks`, the load balancer's addresses. NetworkPolicy opens the copies' ports. The chart refuses PROXY mode without `trustedNetworks`, or with `externalTrafficPolicy: Cluster`. With Cluster, connections arrive from the nodes, and trusting them lets anyone claim any address (spike S6). Lab: `mailin-test.sh` (inbuxa/inbuxa-k8s-lab) checks the address in Received in both modes, and that a forged header isn't believed. All pass. 67 chart tests pass, and `check.sh` passes. **Hold for rc.32**, like #19 and #23. It's off by default, so merging early only matters to someone who turns it on with an older server.
jcoffey-dev added 1 commit 2026-11-19 15:15:11 +00:00
server.services.mail.proxyProtocol: the mail Service sends each port to a
PROXY copy of the listener in the pods, believed only from trustedNetworks.
Refused without trustedNetworks, or with externalTrafficPolicy Cluster,
where connections arrive from the nodes. Needs server 27.1-rc.32.
jcoffey-dev force-pushed feat/mail-proxy-protocol from 4986d3ea57 to feac6f54ea 2026-11-19 15:15:11 +00:00 Compare
jcoffey-dev merged commit 1130b3beeb into main 2026-11-19 15:16:12 +00:00
jcoffey-dev deleted branch feat/mail-proxy-protocol 2026-11-19 15:16:12 +00:00
Sign in to join this conversation.