forked from geonetwork/core-geonetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Encrypt passwords stored in the database (geonetwork#5476)
* Encode passwords stored in the database * Encode passwords stored in the database - allow to pass the encryptor password as a Java environment variable or System environment variable * Encode passwords stored in the database: - Support encryptor algorithm in enviromental variable. - Display a warning if environmental variables for encryptor password and algorithm differ from the properties file and ignore them. - Throw a runtime exception if the encrytor initialization fails * Encode passwords stored in the database: support encryptor properties updates in environment variables. Updates the encrypted values in the database with the new configuration * Copy the encryptor folder from its default location to the configure one On the data directory initialization copy the encryptor files to the config folder from its default location if the configured config dir doesn't contain an encryptor folder yet. * Refactor code. Format and refactor code. Use try-with-resources. Update some logs sentences. Write the encryptor.properties update time in the file header. Co-authored-by: Juan Luis Rodríguez <juanluisrp@gmail.com>
- Loading branch information
1 parent
bff2410
commit 62f180f
Showing
32 changed files
with
789 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.