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

Redact tokens in SendMessage debug log #1215

Merged
merged 3 commits into from Aug 18, 2023
Merged

Redact tokens in SendMessage debug log #1215

merged 3 commits into from Aug 18, 2023

Conversation

daabr
Copy link
Contributor

@daabr daabr commented Jul 14, 2023

This fixes #844.

Instead of changing the request itself as in PR #1102 (which was closed because of this), this PR merely sanitizes the logging.

Added a unit test to ensure the redaction doesn't touch anything other that the token: even if it did it wouldn't have any functional impact, but it would reduce the usefulness of the debug log.

Also added a tiny and unrelated lint fix in interactions_test.go en passant.

I ran make pr-prep as requested - all unit tests passed.

@parsley42
Copy link
Member

Closing and reopening for checks.

@parsley42 parsley42 reopened this Aug 18, 2023
Copy link
Member

@parsley42 parsley42 left a comment

Choose a reason for hiding this comment

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

LGTM

@parsley42 parsley42 merged commit 80f6b07 into slack-go:master Aug 18, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OAuth Slack Token Logged In Clear
2 participants