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

fix: redact passwords under account-routes #246

Conversation

bobmel
Copy link
Contributor

@bobmel bobmel commented Jul 8, 2024

This commit makes changes so that all passwords and private keys are redacted in logs, when json marshalled and when yaml marshalled.

Addresses: ENTERPRISE-4159

@bobmel bobmel requested a review from a team as a code owner July 8, 2024 10:10
@bobmel bobmel force-pushed the bmelander/ENTERPRISE-4159-Passwords-under-account-routes-are-not-redacted-in-logs branch 4 times, most recently from 1c94d42 to ddc2a38 Compare July 8, 2024 15:57
Copy link
Member

@bradleyjones bradleyjones left a comment

Choose a reason for hiding this comment

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

One small nit, looks good

internal/config/config.go Outdated Show resolved Hide resolved
This commit makes changes so that all passwords and private keys are
redacted in logs, when json marshalled and when yaml marshalled. It
also fixes so that config keys have correct names (e.g. include '-' for
multi-word keys)) when marhalled to yaml and json. Finally, it fixes so
that the 'default' key/value pairs under
metadata-collection(.nodes|.namespaces|.pods) are properly unmarshalled.

Addresses: ENTERPRISE-4159

Signed-off-by: Bob Melander <[email protected]>
@bobmel bobmel force-pushed the bmelander/ENTERPRISE-4159-Passwords-under-account-routes-are-not-redacted-in-logs branch from ddc2a38 to 0b7d3f8 Compare July 9, 2024 10:41
@bobmel bobmel merged commit 185d5b4 into main Jul 9, 2024
4 checks passed
@bobmel bobmel deleted the bmelander/ENTERPRISE-4159-Passwords-under-account-routes-are-not-redacted-in-logs branch July 9, 2024 10:49
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