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

fix email notifications missing personalisation (notify-api-853) #854

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

terrazoon
Copy link
Contributor

Description

When we removed personalisation from the database, it worked fine for text messages, because all text messages were converted into jobs with one code flow and we could therefore always retrieve the personalisation from the CSV files.

However, there are a number of email notifications that do various unusual tasks (reset password, 90 day verification, invites, etc.). These are not jobs and have no CSV file containing the personalisation. So, we need to put the personalisation in redis so that it persists while the notification goes through the notification queue and awaits sending.

Security Considerations

We want to make sure potential PII in the personalizations doesn't linger around in redis forever, so we should use the one hour timeout (ex=60*60) option to make sure redis deletes stuff when it doesn't need it any longer.

@terrazoon terrazoon self-assigned this Mar 13, 2024
@terrazoon terrazoon linked an issue Mar 13, 2024 that may be closed by this pull request
Copy link
Member

@A-Shumway42 A-Shumway42 left a comment

Choose a reason for hiding this comment

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

LGTM! Great idea to store in redis with the timer to scrub the PII after.

Copy link
Contributor

@ccostino ccostino left a comment

Choose a reason for hiding this comment

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

Thanks, @terrazoon!

@ccostino ccostino merged commit 30ecc21 into main Mar 13, 2024
5 checks passed
@ccostino ccostino deleted the notify-api-853 branch March 13, 2024 18:20
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.

90 day verification fails due to lack of personalisation
3 participants