RFC 7239 uses the more formalized standard way to inform a web server how it is being reverse proxied using Forwarded HTTP header:
NXRM has historically supported the non-standard X-Forwarded headers to help support integrations with reverse proxy servers.
NXRM has upgraded Eclipse Jetty from 9.4.18.v20190429 to 9.4.30.v20200611 between NXRM version 3.25.1 to 3.26.0. (
NEXUS-24327 ). The newer version of Jetty has included changes ( attempts to fix reported bugs against Jetty ) to how X-Forwarded headers are being handled.
Some customers who upgrade NXRM to 3.26.0 or newer have reported problems with unique combinations of X-Forwarded headers where those headers were working in previous NXRM versions. Of note AWS classic load balancers do set X-Forwarded-Port, and when combined with X-Forwarded-For headers, may cause NXRM requests to fail with a 400 response. Sonatype is not documenting AWS load balancer config examples, pointing at NXRM, but customers do report it is possible to make work.
For example this combination of request headers will cause NXRM 3.26.0 to return 400 error status, where in previous versions it did not.
The solution is removing the X-Forwarded-Port header for this example, or use a well formatted Forwarded header instead. For example:
Eclipse Jetty, has transitioned to also supporting the more standard RFC 7239 ( single Forwarded header ) . Use of X-Forwarded-* headers is being discouraged. There is decent summary opinion to that effect from one Jetty developer here:
Sonatype does not test all permutations of X-Forwarded headers - we rely on Jetty to test advanced permutations while expecting our documented recommended best practice reverse proxy example configurations to remain accurate. Even the advanced permutations are best effort by Jetty project, since there is no standard.
Now that support for RFC 7239 is gaining momentum and Eclipse Jetty project is committed to that standard, NXRM customers should be moving to using the now more standard Forwarded header in their reverse proxy configurations.
Expand NXRM reverse proxy example configurations to include mention and examples on RFC 7239 usage.