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(email): add support for pgp encrypting notifications #1138

Merged
merged 1 commit into from Mar 14, 2021

Conversation

ankarhem
Copy link
Contributor

@ankarhem ankarhem commented Mar 9, 2021

Description

Add a field to the user profile for adding PGP Key. If it exists it will be used to encrypt the email notification sent when sending email notifications to the user.

To-Dos

  • Successful build yarn build
  • Translation keys yarn i18n:extract
  • Database migration (if required)

package.json Outdated Show resolved Hide resolved
Copy link

@JHilmarch JHilmarch left a comment

Choose a reason for hiding this comment

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

Fancy stuff :) Snowden is proud of you!

I was concentrating on the readability of the code. Please read my comments and consider my suggestions for improvements.

When going to beta you can consider including the PgpEncrypter into a scenario-test:

  1. Generate a real world email
  2. Encrypt it
  3. Decrypt it
  4. Assert generated and decrypted email content is the same

server/lib/email/openpgpEncrypt.ts Outdated Show resolved Hide resolved
server/lib/email/openpgpEncrypt.ts Show resolved Hide resolved
server/lib/email/openpgpEncrypt.ts Outdated Show resolved Hide resolved
server/lib/email/openpgpEncrypt.ts Outdated Show resolved Hide resolved
server/lib/email/openpgpEncrypt.ts Show resolved Hide resolved
Copy link
Collaborator

@TheCatLady TheCatLady left a comment

Choose a reason for hiding this comment

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

Use new form-input-field global CSS class (added in 1be97fe)

@sct sct merged commit 9e5adeb into sct:develop Mar 14, 2021
@github-actions
Copy link

🎉 This PR is included in version 1.21.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants