-
Notifications
You must be signed in to change notification settings - Fork 87
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
chore(deps): Update winston-cloudwatch #2726
Conversation
Sigh, there is a type upgrade to do... Doing it now |
…ypescript compiler happy
Looks like the type upgrade might be wrong in the typescript definition... 😢 I've opened an issue upstream here But for now, to unblock this PR, I have added a dummy |
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.
just to be sure, we should probably test this on staging by making sure that public-facing email notifications (i.e. for email confirmations and verified email fields) go to the custom Cloudwatch log group rather than the main log group. we do this so that we can make email data for public users expire after 1 week instead of the standard 1 year for logs, so we don't keep public user data around for unnecessarily long (the 1 week is useful e.g. when there are outages with SGmail causing submissions to be lost because they don't reach admins' email inboxes, upon which we can check that custom log group to find email addresses of respondents).
Thanks for the advice, I'll push this to staging and try it out. I hesitated to provide an empty string in |
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
Context
Snyk reports a vulnerability in dependencies of [email protected]. See report here.
Approach
Upgrade winston-cloudwatch to 3.0.2
Instantiation signature stays the same so upgrade should be backward compatible.
winston-cloudwatch@3 no longer lists aws-sdk as a direct dependency (set as a peer dependency instead), but since Form does list
aws-sdk
as a dependency, we're good to go.cc @mantariksh @karrui