Skip to main content

Mailgun Events Ingestor

service type: worker https://github.com/joinhandshake/mailgun-event-ingestor/

RDE/Local Testing

  • In 1password, lookup the credential for Mailgun-dev Sandbox Private Key
  • using that credential as the MAILGUN_API_KEY, start the mailgun events ingestor with docker compose from the root directory of the repository
docker compose -f development/docker-compose.yml run --env MAILGUN_API_KEY=<credential> --build mailgun_event_ingestor
  • Look for the ngrok auth token in 1password. using ngrok - shared integrations account entry
  • Run ngrok to point to port 3001. install ngrok. Make note of the url.
ngrok http 3001 --authtoken <authtoken>
./scripts/start-all.sh
  • Send a test webhook event from the Mailgun development account (See: Sandbox Mailgun Account in the HS General Engineers 1Password Vault)
    • URL to test: NGROK_URL/api/v1/joinhandshake.com/delivered

webhook