-
Notifications
You must be signed in to change notification settings - Fork 0
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
EHPR-117 | Slack Alerting #124
Conversation
3ba5a96
to
96bb11d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check my comments.
3e06374
to
c054ec2
Compare
message = { | ||
url: config.url, | ||
method: config.method, | ||
...(response?.data ? { data: response.data } : {}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if data contains any sensitive info or PI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This response would be what the external API is returning as error data so it shouldn't have PII
In this implementation the logger isn't responsible for filtering
We've added a bit of filtering in the error filter to prevent logging of the submission payload
We should also be diligent in not explicitly logging PII through info/warn methods
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM just one comment
![image](https://user-images.githubusercontent.com/71518072/148295052-744a024e-a8ac-4e91-bf4a-76cffe92bfcb.png
-