I need to provide a string in a helm template that is then sha256 encrypted and dumped out as a hexdigest, then pushed into a json structure.
Currently I have a values file like
Users: - userid: Santa passwd: Claus
and I'm defining a secret like
users.json: {{ .Values.Users | toJson | b64enc }}
but I want the passwd field encrypted as expected by the application. I'm not aware of any helper in helm that provides sha256 encryption so I'm wondering if I can supply my own, and then what the syntax would look like.
Help appreciated.
Thanks.