slack-go / slack

Slack API in Go, originally by @nlopes; Maintainers needed, contact @parsley42
https://pkg.go.dev/github.com/slack-go/slack
BSD 2-Clause "Simplified" License
4.64k stars 1.13k forks source link

Issue 844: Redact api token in chat message #1102

Closed briemarie closed 1 year ago

briemarie commented 2 years ago

Debug logs are printing api tokens as part of the request message. Instead of printing the token, the token is transformed into a redacted string if it is not empty. If the token is empty, which is a useful piece of information that should be surfaced in the request, the empty string is transformed into a nil string to make it more obvious.

Pull Request Guidelines

These are recommendations for pull requests. They are strictly guidelines to help manage expectations.

PR preparation

[PASSED] Run make pr-prep from the root of the repository to run formatting, linting and tests.

Should this be an issue instead - YES IT IS #844
API changes

Since API changes have to be maintained they undergo a more detailed review and are more likely to require changes.

Examples of API changes that do not meet guidelines:
briemarie commented 1 year ago

@christophercutajar I see you approved this. Will it be getting merged or was there another release that fixed the issue of the token being exposed in logs?

christophercutajar commented 1 year ago

@kanata2 when you have time can you please review it yourself and merge it!

github-actions[bot] commented 1 year ago

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

briemarie commented 1 year ago

kanata2 I realize that my proposed solution wasn't the proper one, but has this been solved internally by your team in another PR?

kanata2 commented 1 year ago

No, we have not worked on it yet. If you think the labeling by GitHub Actions is inappropriate, please re-open it and reply to my comment.

briemarie commented 1 year ago

@kanata2 Its ok that this PR is closed since it wasn't the right solution. Looks like the original issue https://github.com/slack-go/slack/issues/844 is still open so hopefully that gets addressed.