I am using storing MarkLogic access credentials in gradle.properties file as a plain text and it used while running Harmonization/ingestion/Corb jobs. As i am adding the credentials in the properties file as a plain text, its visible to everyone who has code access. What is best approach to encrypt these credentials
You could apply the gradle-credentials-plugin in order to use encrypted values for credentials.
Apply the nu.studer.credentials
plugin to your Gradle project.
plugins {
id 'nu.studer.credentials' version '3.0'
}
CoRB also support encryption/decryption of passwords and components of the XCC connectionstring and can be configured with a DECRYPTER option, specifying a decrypter class such as PrivateKeyDecrypter or JasyptDecrypter, or HostKeyDecrypter.