Is it possible to update my Postgis Store’s Postgres password programmatically via the REST API?
Yes,
Fetch your store’s config with a GET request and then change the password and PUT the file back.
The tricky bit is working out what to put in the password field, that will depend on which cryptography package you have installed.
Ian
···
Ian Turton
Thanks that worked and it encrypts the plaintext password I ‘PUT’ to the datastore.xml according to my Security settings (crypt1, crypt2, etc).
···
From: Ian Turton <ijturton@…84…>
Sent: Wednesday, May 3, 2023 3:24 AM
To: Mort, Ashley C RTX <Ashley.C.Mort@…11756…>
Cc: GeoServer Users geoserver-users@lists.sourceforge.net
Subject: [External] Re: [Geoserver-users] change PostGIS datastore password w/ REST API?
Yes,
Fetch your store’s config with a GET request and then change the password and PUT the file back.
The tricky bit is working out what to put in the password field, that will depend on which cryptography package you have installed.
Ian
On Tue, 2 May 2023 at 22:50, Mort, Ashley C RTX via Geoserver-users <geoserver-users@lists.sourceforge.net> wrote:
Is it possible to update my Postgis Store’s Postgres password programmatically via the REST API?
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
–
Ian Turton