I've been trying to setup a pgadmin on Kubernetes behind an nginx ingress that handles the TLS termination. I cannot modify the configuration of that ingress, so I've deployed an additional nginx to handle the reverse proxy config for pgadmin:
It works, all the Location headers are good, the problem is that the returned Cookies are not valid. If I curl the root of the server, and then save the returned cookie and use it again on a subsequent request, a new cookie is issued instead of keepking the previous one (so I guess the server doesn't like it).
The outcome is that in a browser there's an infinite loop of redirects, trying to get a good cookie with no success.