Hi,
In one of the client place where similar to you they had many binding configurations with sensitive password in it, so we followed this approach:
- When you export the bindings this would have the entire binding configuration. Out of this complete binding, create a subset of binding file, which would only have configurations which need passwords in
it. (or you can use the complete binding you have extracted)
- Then we following BTDFs SettingsFileGenerator.xml approach. Where we created a excel file, which will have different passwords for different environments. i.e. an SFTP port may have different password for
test and production environments. This excel would be similar to this .Save this excel file as XML.
- Update the subset binding file which we extracted earlier with placeholder in the password section. Something like $ClientAPortPassword for Port1, $ClientBPortPassword for Port2 etc.
- We developed a C# application which would take 3 parameters:
1- Environment for which youre trying to create the binding file with password in it
2- Subset binding file (which has placeholder variables in it for passwords)
3- SettingsFileGenerator.xml file which you created out of Excel file.
This C# would replace all the placeholders with relevant passwords from SettingsFileGenerator.xml file based on the chosen environment.
- Once binding file has been created from the C# tool, import the binding and delete it.
From now on, whenever you need to do any changed to the binding, you have a process to follow, which can easily generate the binding files with password for different environment easily.