I observe that on container restart all users , roles etc created are gone, except amin user. On some investigation, I found that a possible culprit is update_crednetials.sh, as it overwrites, users, roles config with default values.
I want to confirm if my analysis is correct, and if yes, then what is possible workaround for this?
After the initial setup, it’s recommended to remove the GEOSERVER_ADMIN_USER and GEOSERVER_ADMIN_PASSWORD variable. Otherwise, newly added roles and users may be overwritten by the next time the container is restarted
I wonder if the script could be updated to only set these values once somehow? Perhaps check the file contents and see if those values are already in use?