CSRF tokens do not match when using route for pgAdmin application

Solution Verified - Updated -

Issue

  • CSRF tokens do not match when using the route for pgAdmin application.
  • pgAdmin is the application used as a postgres DB client which has to work via the proxy.
  • Following Environment variables are also set for pgAdmin as to work via the proxy:
      env:
        - name: PGADMIN_DEFAULT_EMAIL
          value: XXXX@XXXX.com
        - name: PGADMIN_DEFAULT_PASSWORD
          value: password
        - name: PGADMIN_CONFIG_PROXY_X_FOR_COUNT
          value: '1'
        - name: PGADMIN_CONFIG_PROXY_X_PROTO_COUNT
          value: '1'
        - name: PGADMIN_CONFIG_PROXY_X_HOST_COUNT
          value: '1'
        - name: PGADMIN_CONFIG_PROXY_X_PORT_COUNT
          value: '1'
        - name: PGADMIN_CONFIG_PROXY_X_PREFIX_COUNT
          value: '1'

Environment

  • Red Hat OpenShift Container Platform
    • 4.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content