diff --git a/pkgs/sops-install-secrets/main.go b/pkgs/sops-install-secrets/main.go index c324337..a153451 100644 --- a/pkgs/sops-install-secrets/main.go +++ b/pkgs/sops-install-secrets/main.go @@ -264,6 +264,7 @@ func recurseSecretKey(format FormatType, keys map[string]interface{}, wantedKey if err != nil { return "", fmt.Errorf("Cannot marshal the value of key '%s': %w", keyUntilNow, err) } + strVal = bytes.TrimSpace(strVal) return string(strVal), nil }