Secure way of setting username/password in logstash config file

The only solution I've used is to replace placeholders in the config
after it has been update but before logstash runs it's configtest and it
restarts.