Book Image

WildFly: New Features

By : Filippe C Spolti
Book Image

WildFly: New Features

By: Filippe C Spolti

Overview of this book

Table of Contents (13 chapters)
WildFly: New Features
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Crypt datasource passwords


It is always a good practice to protect passwords, especially when it comes to production, as contained within them is certainly very crucial information for your business, and we do not want this data to be exposed in any way. The encryption used in the JBoss project is asymmetric, which means that, after encryption, it cannot be decrypted again without a password or key. This is one more layer on the application server, if accessed by people who are not allowed to do so, with the intention of obtaining restricted information. In this case, the encryption of datasource passwords will help. Even if an attacker gets access to your application server instance, he will be unable to access the db instance, which is typically located on a different, physical host. Let's see what the necessary steps to encrypt the database password are.

For everything to work, you must create a security-domain inside the security subsystem. We will now explain how this works:

It can also...