Closed deviarchscs closed 10 months ago
@ricoberger any thoughts? Thank you!
Hi @deviarchscs, I like the idea and this should be supported once #110 is merged.
Once it is merged, I will publish a new version. Please let me know if sth. isn't working as expected.
Problem
I have a scenario where I have to use the same script multiple times with different parameters. (ie: I have to count emails number in several mailboxes). The script_exporter is able to do that well but it is insecure and cumbersome to do this since I have to hardcode passwords directly in the config file. Ssee example below:
Solution
The script exporter should be able to parse environment variables written in the "args" and "env" section of a script inside the config.yaml file. This way, no sensitive information would be written onto the config file (and it will also improve readability IMO)
Example:
Prerequisites existing environment variables:
MYEMAIL_1 MYEMAIL_USERNAME_1 MYEMAIL_PASSWORD_1 MYEMAIL_2 MYEMAIL_USERNAME_2 MYEMAIL_PASSWORD_2 MYEMAIL_3 MYEMAIL_USERNAME_3 MYEMAIL_PASSWORD_3