Set DB Connector Login via Flow Variable

I’d appreciate a piece of advice about how to wrap this piece of workflow in a shared component which would read connection parameters including a password from an external configuration e.g. properties file so that the only thing an outer workflow would have to do in order to get a database connection would be introducing this shared component with no need of input parameters or flow variables pushed to the component.

According to my experience so far, the Credential Configuration node loses its binding to the workflow variable that holds a password when such a shared component get added to a workflow.

This is related to the issue Recommended way of configuring a database connectors I posted recently.