Closed jfly closed 5 months ago
This fixes https://github.com/bitnami-labs/sealed-secrets/issues/1534 and https://github.com/bitnami-labs/sealed-secrets/issues/1193.
Description of the change
Add sprig function library for templating
Benefits
As described in https://github.com/bitnami-labs/sealed-secrets/issues/1534, this lets people safely generate more types of configuration (such as yaml files) and safely and correctly escape passwords.
Possible drawbacks
I have not removed env, expandenv, and getHostByName, as argocd does. I supposed there's some security concern here? Happy to filter them out if folks like.
env
expandenv
getHostByName
Applicable issues
Additional information
Thanks for the consideration!
Oh yikes. Sorry, I am a complete go noob. sprig should definitely not be an indirect dependency. Fixed!
Thanks @jfly !
This fixes https://github.com/bitnami-labs/sealed-secrets/issues/1534 and https://github.com/bitnami-labs/sealed-secrets/issues/1193.
Description of the change
Add sprig function library for templating
Benefits
As described in https://github.com/bitnami-labs/sealed-secrets/issues/1534, this lets people safely generate more types of configuration (such as yaml files) and safely and correctly escape passwords.
Possible drawbacks
I have not removed
env
,expandenv
, andgetHostByName
, as argocd does. I supposed there's some security concern here? Happy to filter them out if folks like.Applicable issues
Additional information
Thanks for the consideration!