Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use masktoken pkg for redacting token #388

Merged
merged 2 commits into from
Jul 4, 2022
Merged

Use masktoken pkg for redacting token #388

merged 2 commits into from
Jul 4, 2022

Conversation

somtochiama
Copy link
Member

This pull request uses the masktoken pkg from fluxcd/pkg to redact token from logs.

Signed-off-by: Somtochi Onyekwere [email protected]

Signed-off-by: Somtochi Onyekwere <[email protected]>
} else {
err = errors.New(maskedErrStr)
}
err := errors.New(maskedErrStr)
Copy link
Member

@pjbgf pjbgf Jul 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this overrides the err created in the if/else above.

Suggested change
err := errors.New(maskedErrStr)

Signed-off-by: Somtochi Onyekwere <[email protected]>
Copy link
Member

@pjbgf pjbgf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

thank you @somtochiama

@pjbgf pjbgf merged commit a37485b into main Jul 4, 2022
@pjbgf pjbgf deleted the masktoken-pkg branch July 4, 2022 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants