Eyal Goren
Eyal Goren

Reputation: 277

How to encrypt the DB password in Artifactory?

We have Artifactory OSS that currently use the default DB and we want to move to MS-SQL. According to the regular links - we need to write the MSSQL password in clear text in the db.properties file.

Can the password be encrypted somehow, so the Artifactory will know how to decrypt and use it

Upvotes: 1

Views: 1392

Answers (2)

Eyal Goren
Eyal Goren

Reputation: 277

What I found was that after switching to MS-SQL and starting Artifactory- Artifactory has encrypted the password.

In the admin->Security->Security Configuration there is a section for Password encryption that you can choose to encrypt all password in configuration files

Upvotes: 2

Eldad Assis
Eldad Assis

Reputation: 11045

You should be able to activate encryption using the REST API. See the documented API.

This should create an encryption key and apply it on the db.properties where the username and password are stored.

I hope this helps.

Upvotes: 3

Related Questions