Re: Tomcat 9.0.x securing db credentials in server.xml

Mark Thomas <[email protected]> Wed, 21 Jan 2026 10:34:16 +0000
Newsgroups gmane.comp.jakarta.tomcat.user
Message-ID <[email protected]>
On 21/01/2026 09:36, dineshk via users wrote:
> Hi Team ,
> Would like to know the recommended approach to secure the db credentials in Tomcat , defined in server.xml file . The application could be deployed on AKS or as normal on premises deployment.
> Is there any recommended common solution? If not , what recommended approach in each case .
> Please let me know . It would be really helpful.

Don't waste your time trying to achieve the logically impossible.

https://cwiki.apache.org/confluence/display/TOMCAT/Password

Mark