Configuration Variables

We run with Dev, QA Testing, UAT Testing and Production environments. We need to store database connection credentials in configuration files for our Delphi apps. Currently we encrypt the database passwords with a small utility and these are written to the environment specific INI file and persisted in source control. The Continua build process then makes these available for the deployment tool.

We have decided we would rather pull the plain text passwords out of the Bitwarden vault at build time, pass them to the encryption utility and then write as part of the deployment package, so we can avoid having them in source control.

Is there a way we can access Bitwarden via a Continua action, and also avoid having the plain text values appearing in Continua logs ?

Hi David

FYI, I am guessing here since I have never done this (I do use bitwarden though so this is of interest)

You could use a Http Request Build Event Handler configured to run when the build starts.

The docs are not very clear as to what can be achieved with the rest api, auth in particular seems a bit fuzzy.

Another option would be to install the bitwardend cli on the agent machines and call it using the Execute Program Action

Edit : BTW - however you get the passwords, make sure you put them into password variable type - then they will not be logged.

1 Like

Thanks Vincent - all good tips that I can explore.

And a very Happy New Year to you and the team. I think I just get away with still saying that for another day :slight_smile: