How to secure or encrypt Data Source Passwords in Tomcat ?
Issue
- Is there a supported way to encrypt the database password that is specified on a DataSource definition within context.xml?
- I know that you can extend the DataSource Factory that Tomcat uses to provide decryption of the password before calling the under lying factory, but is there a more robust way similar to what is provided within EAP?
- Mask / encrypt passwords Tomcat -7?
- Is it possible to encrypt or mask passwords for Database mentioned in
context.xmland keystore password mentioned inserver.xml.
Environment
- JBoss Enterprise Web Server 1.x, 2.x
- Tomcat 5.x, 6.x,7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
