Encrypt database password
To add extra security to your Bitbucket Data Center and Server instance, you can encrypt the database password that is stored in the bitbucket.properties file. There are different encryption methods for both basic and advanced users. Additionally, you can create your own encryption mechanism.
Your Bitbucket instance needs a plain-text password to connect to the database, so the configuration file will contain all the information needed to decrypt the password. It is necessary to protect access to Bitbucket and database servers to reach the required level of security.
This method uses a Base64 cipher, which is simple obfuscation. It is a straightforward solution for users who don’t want to store database passwords in plain-text.
This method allows you to choose an algorithm to encrypt a database password. It provides more security as you don't have to store the encrypted password anywhere in the configuration file, which makes it difficult for unauthorized parties to find and decrypt it.
If you have special requirements for database password encryption, you can create your own encryption mechanism based on our examples.