Can we encrypt the plan text credentials from "/etc/prometheus/idrac.yml" and how?

I have just gone through few similar item posted, not sure if this could be related to " Postgres_exporter security issue: plain text password"

thanks in advance for checking and your contribution.