From 63e092c3b1b6cad2afe360e66bbe45ce7e230906 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Tue, 11 Jan 2022 13:37:03 -0700 Subject: [PATCH] commented out replace colons Signed-off-by: Richard Jones --- plan/task/transformsecret.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plan/task/transformsecret.go b/plan/task/transformsecret.go index 516f802b..262999de 100644 --- a/plan/task/transformsecret.go +++ b/plan/task/transformsecret.go @@ -40,8 +40,8 @@ func (c *transformSecretTask) Run(ctx context.Context, pctx *plancontext.Context diffs := dmp.DiffMain(inputSecretPlaintext, err.Error(), false) for _, diff := range diffs { if diff.Type == diffmatchpatch.DiffEqual { - diffText := strings.ReplaceAll(diff.Text, ":", "") - errStr = strings.ReplaceAll(errStr, diffText, "") + // diffText := strings.ReplaceAll(diff.Text, ":", "") // colons are tricky. Yaml keys end with them but if a secret contained one that got replaced, the secret wouldn't get redacted + errStr = strings.ReplaceAll(errStr, diff.Text, "") } }