From 6a7fedee7ed2f832e7ff4ddd5ca89211feae4bb6 Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Tue, 23 Apr 2024 14:24:06 +0200 Subject: [PATCH] We shouldn't quote encoded values Quoting before encoding in base64 adds the quotes in the encoded data. That's a bad behavior. --- generator/secret.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/secret.go b/generator/secret.go index 6a64b8d..16b7eb1 100644 --- a/generator/secret.go +++ b/generator/secret.go @@ -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.