CSRF Tokens Do Not Match - Kubernetes Deployment via LoadBalancer

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

CSRF Tokens Do Not Match - Kubernetes Deployment via LoadBalancer

Chris Nicholas-2
Hi,

I’ve deployed PGadmin4 via Docker container into our Kubernetes Cluster - TLS enabled and exposed via AWS LoadBalancer. 

Service boots fine and I can get to the login page, but I get failed login with “CSRF Tokens Do Not Match” error.

Standard config.py.

Any pointers?

Thanks in advance!



Reply | Threaded
Open this post in threaded view
|

Re: CSRF Tokens Do Not Match - Kubernetes Deployment via LoadBalancer

Aditya Toshniwal
Hi Chris,

Try setting PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION=False in docker env vars.

On Wed, Jan 6, 2021 at 6:56 PM Chris Nicholas <[hidden email]> wrote:
Hi,

I’ve deployed PGadmin4 via Docker container into our Kubernetes Cluster - TLS enabled and exposed via AWS LoadBalancer. 

Service boots fine and I can get to the login page, but I get failed login with “CSRF Tokens Do Not Match” error.

Standard config.py.

Any pointers?

Thanks in advance!





--
Thanks,
Aditya Toshniwal
pgAdmin hacker | Sr. Software Engineer | edbpostgres.com
"Don't Complain about Heat, Plant a TREE"
Reply | Threaded
Open this post in threaded view
|

Re: CSRF Tokens Do Not Match - Kubernetes Deployment via LoadBalancer

Chris Nicholas-2
Thanks Aditya that works & a case of reading the config file comments :)

Chris Nicholas


On 7 Jan 2021, at 05:16, Aditya Toshniwal <[hidden email]> wrote:

Hi Chris,

Try setting PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION=False in docker env vars.

On Wed, Jan 6, 2021 at 6:56 PM Chris Nicholas <[hidden email]> wrote:
Hi,

I’ve deployed PGadmin4 via Docker container into our Kubernetes Cluster - TLS enabled and exposed via AWS LoadBalancer. 

Service boots fine and I can get to the login page, but I get failed login with “CSRF Tokens Do Not Match” error.

Standard config.py.

Any pointers?

Thanks in advance!





--
Thanks,
Aditya Toshniwal
pgAdmin hacker | Sr. Software Engineer | edbpostgres.com
"Don't Complain about Heat, Plant a TREE"