In one of my chef recipes, I am using encrypted data bags to do hide the download path for a remote file resource that I have defined. However when converging on a node, if the download fails for whatever reason, then I can see all my secrets in the log.
Since I'm planning to deploy this on a CI server, I really don't want to have it displayed.
Is there any way to keep the data encrypted even on error?