HomePhabricator
Diffusion Comm 48ea2b0a3ab1

[reports-service] Introduce emails config

Description

[reports-service] Introduce emails config

Summary:
We're going to use Postmark to send report emails. This diff introduces a simple config file format:

{
  "postmarkToken": "api key here",
  "senderEmail": "comm@example.com",
  "mailingGroups": {
    "inconsistencyReports": "mailgroup1@example.com",
    "mediaReports": "mailgroup2@example.com",
    "errorReports": "mailgroup3@example.com"
  }
}

The config will be loaded from CLI args or file - implemented in the next diff

Depends on D8865

Test Plan: Unit test, also tested with the next diff

Reviewers: michal, patryk, varun, jon

Reviewed By: michal

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D8978

Details

Provenance
bartekAuthored on Aug 28 2023, 6:21 AM
Reviewer
michal
Differential Revision
D8978: [reports-service] Introduce emails config
Parents
rCOMMfeb17195f145: [Identity] Add uploadOneTimeKeys to auth service
Branches
Unknown
Tags
Unknown