Skip to content

Commit

Permalink
fix: use * to hide the secrets
Browse files Browse the repository at this point in the history
Signed-off-by: Anil Kumar <[email protected]>
  • Loading branch information
anilkumar-pcs committed Oct 21, 2022
1 parent ac964fe commit f35fa08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/logs/workflow-logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func WorkflowLogs(ctx context.Context, wfClient versioned.Interface, kubeClient
for _, s := range secrets.Items {
for _, v := range s.Data {
if strings.Contains(content, string(v)) {
content = strings.Replace(content, string(v), "[ redacted ]", -1)
content = strings.Replace(content, string(v), "[*********]", -1)
}
}
}
Expand Down

0 comments on commit f35fa08

Please sign in to comment.