William, Sebastian, and Mark,
On 3/27/25 12:00 PM, Mark Thomas wrote:
On 27/03/2025 14:54, William Crowell wrote:
Sebastian,
Thanks for your reply. I did know about environment variables. I
would be concerned about someone doing a “ps -ef” on the box and
getting the password from the command line arguments. I will keep
looking.
Write a small class that implements IntrospectionUtils.PropertySource
and reads your property file.
Configure as per:
https://tomcat.apache.org/tomcat-11.0-doc/config/
systemprops.html#Property_replacements
Might be sufficiently generally useful to add to the other
implementations in org.apache.tomcat.util.digester
Note that catalina.properties is read and the properties are added as
system properties. The SystemPropertySource then finds them for the
Digester.
Don't forget about ServiceBindingPropertySource.
https://tomcat.apache.org/tomcat-9.0-doc/config/systemprops.html#Property_replacements
https://tomcat.apache.org/tomcat-9.0-doc/api/org/apache/tomcat/util/digester/ServiceBindingPropertySource.html
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org