Forum Discussion

tsuarezc's avatar
tsuarezc
Occasional Contributor
3 years ago

Encryp user and password on Database connections

We want to create a gold image for install ReadyAPI on several VMs and we want to configure them with Database connections, but the user/password must be encrypted. How to do it?

3 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    You may try using property expansion in the database configuration and externalisé the values in a property file. When a user wants to connect to db, he/she can load the property file with credentials of their own.
    This way no need to put your credentials in the project. And if some is pushing the project changes such new tests, then they can clean the property values of the db credentials And push the changes.

    Does it help?
    • tsuarezc's avatar
      tsuarezc
      Occasional Contributor

      It doesn't work that way if the user loads the properties file the values will be exposed. We need to encrypt the passwords like the dragonfly plugin for HP-ALM does

      thank you

      • nmrao's avatar
        nmrao
        Champion Level 3
        I believe the credentials are your own, not others.

        Any way, even if you use encrypted password, it has to be decrypted before database authentication.