Skip to main content
edited title
Link
GforGIS
  • 3.3k
  • 4
  • 22
  • 39

Programmatic configuration of authkey and similar for geoserverto GeoServer

Source Link

Programmatic configuration of authkey and similar for geoserver

I am using the kartoza/geoserver-docker image link to serve map layers because I wish to gracefully handle server failures and support scaling if needed.

My docker container has a persistent store for the configuration files but recently we had the configuration become corrupted resulting in an infinite boot, fail, reboot cycle which was unrecoverable until all config files were purged.

Following this I have scripted most of the server config via the REST API so I can restore a server to a working state from a blank install. BUT I cannot find any means to configure the authkey plugin I use and set the auth filter chain or things like server defaults such as which services to enable for all layers. Is there a REST API endpoint undocumented for this or is the only option to just keep a copy of the pre-configured xml files for auth and copy those in when bootstrapping a new container?