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

feat: clean secrets in logs #42

Merged
merged 20 commits into from
Jan 22, 2025
Merged

Conversation

AlexanderLukin
Copy link

In the previous version, all messages were logged to the console via the default JavaScript console.log. With this logging method, if some error occurs during the interaction with a webhook, its content is logged in the console as part of the error object.

In this version, we added Winston logger to the project with the logic of cleaning secrets in logs. All webhook tokens are now added to the secrets after the reading of the config file is completed.

Extend info that is printed to the log in case of errors. For network-related errors print response status and request data, for all errors print their stack trace.

madlabman and others added 19 commits January 26, 2023 13:02
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](json5/json5@v2.2.1...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
feat: support query params passthrough
In the previous version, all messages were logged to the console via the
default JavaScript `console.log`. With this logging method, if some
error occurs during the interaction with a webhook, its content is
logged in the console as part of the error object.

In this version, we added Winston logger to the project with the logic
of cleaning secrets in logs. All webhook tokens are now added to the
secrets after the reading of the config file is completed.

Extend info that is printed to the log in case of errors. For
network-related errors print response status and request data, for all
errors print their stack trace.
Add mock `logger` instance to all tests that use context.
Format all multiple-line log messages in one line.
@AlexanderLukin AlexanderLukin merged commit 1c8cb3c into develop Jan 22, 2025
5 checks passed
@AlexanderLukin AlexanderLukin deleted the feat/clean-secrets-in-logs branch January 22, 2025 10:38
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.

4 participants