Skip to content

Authenticate requests between the group-mail-receiver and the group-mailer #162

@camjackson

Description

@camjackson

This is not authenticating/authorising the person who sent the original email. This is to lock down access to the group-mailer's API so that it can only be triggered by the group-mailer-receiver lambda.

  • There should be a shared secret token between the group-mail-receiver and the group-mailer. It will probably be specified in the infra repo and supplied to the two of them via an environment variable
  • The group-mail-receiver should send the shared token as an Authorization header when making HTTP POST requests to the group-mailer's mail endpoint
  • The group-mailer should refuse any requests to that endpoint that do not contain the secret token

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions