galaxy config and sensitive data


The configuration files for our local galaxy instance are under version control, but I now need to change the SMTP settings to use a smarthost, which means we need to set smtp_username and smtp_password in galaxy.yml. For obvious reasons, the SMTP password should not be saved in the git repo. Is there any mechanism to include this information via an external file or environment variable? I know that YAML itself does not natively have such a feature, but that some YAML parsing libraries do implement it in different ways.

EDIT: I have address this for the time being by sending through exim4 and storing the smarthost configuration there, avoiding the need to put it in the Galaxy config. I’d still be curious to know if the above is possible.