Hi Jon

Are you able to see if there are any differences in the HTTP headers of the
proxied requests from the F5 before and after the change?

My educated guess (albeit possibly naive-to-GoCD-specifics) is that the
URLs are being built from the incoming request, which inside GoCD is aware
of headers such as *Forwarded* (RFC7239) and earlier de-facto standards
such as *X-Forwarded-Port X-Forwarded-Host X-Forwarded-Proto* etc which are
generally used to communicate the "real host/port/proto" that the client is
using.

Done canonically, the left-most value of these headers (when multi-value)
is taken as the outermost value and used to build redirects etc.

I suspect *X-Forwarded-Port* might be set to 37680 rather than unset, or
443. Are you able to capture traffic and take a look? If you find those
headers there on an incoming request, then maybe you can figure out which
piece of your env is the misbehaving proxy wrt headers.

-Chad

On Thu, May 19, 2022 at 7:51 PM Jon Barry <[email protected]> wrote:

> Hi everyone,
>
> I am looking to see if I can get some help on an issue we are seeing after
> we have upgraded our GoCD Server from version 19.7 to 20.4.  Working on
> getting to the latest release....
>
> Our GoCD server is sitting behind an F5 VIP.  The F5 up to and including
> version 19.7 has been forwarding the traffic to the GoCD server on port
> 8154.  After upgrading to version 20.4, and the SSL changes per
> https://github.com/gocd/gocd/issues/7872 we changed the member in the
> pool behind the VIP to go to port 8153 instead of 8154.
>
> Since making that change we are seeing the client port being added into
> the redirects.  So for example after a successfull logon from
> https://our-gocd-server.com/go/auth/login, we get redirected to a url
> with a port number in it https://our-gocd-server.com:37680/go/pipelines
> which fails.
>
> If we manually remove the port from the url we get to the correct location
> https://our-gocd-server.com/go/pipelines
>
> We are also seeing missing icons on some pages, as the URL to them also
> has the port in it.  e.g:
> http://our-gocd-server.com:37680/go/api/plugin_images/cd.go.authentication.ldap/9fdf150dbce01084106d76b18e3215af1f9c2beff6f3638e38083237f433662f
>
> The *Site URL* and *Secure Site URL *are both set to
> https://our-gocd-server.com
>
> Anyone done something similar or know what the issue may be?   I am not
> the person who manages the F5 so am at a bit of a loss there, but I expect
> something may be missing there.
>
> Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "go-cd" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/966f0230-cf31-446e-809a-ec47281d4f2bn%40googlegroups.com
> <https://groups.google.com/d/msgid/go-cd/966f0230-cf31-446e-809a-ec47281d4f2bn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAA1RwH8HH3G-Nc6TpNhK3nMPX-CVC5KeTFRTRmzDE_GkpAek6Q%40mail.gmail.com.

Reply via email to