Skip to content

Commit

Permalink
Fix pgadmin4 for U Texas
Browse files Browse the repository at this point in the history
pgadmin4 was using end user IP in its session cookie for
extra security - however this doesn't work in kubernetes
type environments with a lot of dynamic IPs. The documentation
suggests we turn this off, and we do.

Ref 2i2c-org#968
  • Loading branch information
yuvipanda committed Feb 15, 2022
1 parent c2931ab commit 148d1fb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/clusters/2i2c/utexas.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ jupyterhub:
# FIXME: This doesn't work with named servers,
# https://github.com/jupyterhub/kubespawner/pull/565 fixes this
value: "/user/{username}/proxy/absolute/5050"
# Turn off tying the user session to a particular IP the request
# is coming from - in a dynamic environment like kubernetes, this
# means users keep getting 'logged out' every minute or so.
# Look for `ENHANCED_COOKIE_PROTECTION` in
# https://www.pgadmin.org/docs/pgadmin4/development/config_py.html
- name: PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION
value: 'False'
- name: postgres
image: postgres:10
resources:
Expand Down

0 comments on commit 148d1fb

Please sign in to comment.