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 <ijtur...@gmail.com>
Sent: Wednesday, May 3, 2023 3:24 AM
To: Mort, Ashley C RTX <ashley.c.m...@rtx.com>
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<mailto: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#/<https://urldefense.com/v3/__http:/www.ianturton.com/talks/foss4g.html*/__;Iw!!MvWE!FD4l8iAwikIPKNz-vTyrTmTAaX6J2y2EdadT7ShCVP9vvZmcG3mfQn1-uZhRMK8TnUNZpIJOm-8NrTutWg$>
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html<https://urldefense.com/v3/__http:/geoserver.org/comm/userlist-guidelines.html__;!!MvWE!FD4l8iAwikIPKNz-vTyrTmTAaX6J2y2EdadT7ShCVP9vvZmcG3mfQn1-uZhRMK8TnUNZpIJOm-_i9xKNkA$>

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<https://urldefense.com/v3/__https:/github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer__;!!MvWE!FD4l8iAwikIPKNz-vTyrTmTAaX6J2y2EdadT7ShCVP9vvZmcG3mfQn1-uZhRMK8TnUNZpIJOm-9YAk0GAw$>


Geoserver-users@lists.sourceforge.net<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users<https://urldefense.com/v3/__https:/lists.sourceforge.net/lists/listinfo/geoserver-users__;!!MvWE!FD4l8iAwikIPKNz-vTyrTmTAaX6J2y2EdadT7ShCVP9vvZmcG3mfQn1-uZhRMK8TnUNZpIJOm--Da14i3w$>


--
Ian Turton
_______________________________________________
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

Reply via email to