zalf-rdm / geonode-k8s

A Kubernetes helm chart for the geospacial webapplication Geonode
https://geonode-k8s.readthedocs.io/en/latest/
GNU General Public License v2.0
12 stars 7 forks source link

Geofence datasource connection is hardcoded #37

Closed ridoo closed 1 year ago

ridoo commented 1 year ago

The geonode/geoserver provides a / templates/geofence directory containing a j2 template for geofence datasource properties. Since 2.23.1 the data connection is a hard wired URL: jdbc:postgresql://db:5432/{{ GEONODE_GEODATABASE }}.

Version 2.23.0 instead has a configurable URL: jdbc:postgresql://{{ DATABASE_HOST }}:{{ DATABASE_PORT }}/{{ GEONODE_GEODATABASE }}

You can check this by either running

docker run --rm geonode/geoserver:2.23.1 cat /templates/geofence/geofence-datasource-ovr.properties.j2

and

docker run --rm geonode/geoserver:2.23.0 cat /templates/geofence/geofence-datasource-ovr.properties.j2

We would have to overload the template until the geonode/geoserver has been updated.