We shouldn't quote encoded values

Quoting before encoding in base64 adds the quotes in the encoded data.
That's a bad behavior.
This commit is contained in:
2024-04-23 14:24:06 +02:00
parent c31299197f
commit 6a7fedee7e

View File

@@ -88,7 +88,7 @@ func (s *Secret) AddData(key string, value string) {
if value == "" {
return
}
s.Data[key] = []byte(`{{ tpl ` + value + ` $ | quote | b64enc }}`)
s.Data[key] = []byte(`{{ tpl ` + value + ` $ | b64enc }}`)
}
// Yaml returns the yaml representation of the secret.