Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 1.6.0-RC3
-
Fix Version/s: 2.0.x
-
Component/s: ArcSDE, Configuration, Oracle, PostGIS
-
Labels:None
-
Environment:Windows XP Pro, SP2. BEA Weblogic Server 9.2, ArcSDE 9.2, deployed geoserver.war exploded, 1.6.0-RC3 initially downloaded and later built from svn co of 1.6.0-RC3.
-
Patch Submitted:Yes
-
Number of attachments :
Description
When configuring an ArcSDE DataStore, the password connection parameter is stored to the geoserver/data/catalog.xml file in plain text. The XMLConfigWriter.storeDataStore() method should be modified to encrypt any connection parameter with the keyword "password". When passwords are stored encrypted, the XML attribute value should be renamed "encryptedValue" as opposed to "value". The XMLConfigReader should then use the corresponding decryption algorithm to decrypt any "encryptedValue" attributes when reading in connection parameters. Note: this will allow for someone to "bootstrap" GeoServer config by hand-editing the connection parameters in the catalog.xml file and replacing any "encryptedValue" attribute with a "value" attribute and setting it to the proper plain text password. This encryption should only take place if a system property is set with the full path to a jks KeyStore containing a Secret Key used for encrypt/decrypt, otherwise passwords will be stored in plain text and a warning level statement to that effect will be logged.
Issue Links
- is superceded by
-
GEOS-4702
Passwords stored in plain text
-
Ah, thanks a lot for the patch. A few comments:
Finally, I really suggest you upgrade from 1.6.0-rc3 to 1.6.2, see: http://blog.geoserver.org/2008/03/07/geoserver-162-upgrade-security-release/