1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-10 22:08:32 +01:00
phorge-phorge/src/applications/metamta/controller
epriestley 948b0ceca4 Configure a whitelist of remote addresses for Postmark inbound webhooks
Summary:
Ref T13053. Postmark support recommends testing requests against a whitelist of known remote addresses to determine request authenticity. Today, the list can be found here:

<https://postmarkapp.com/support/article/800-ips-for-firewalls>

This is potentially less robust than, e.g., HMAC verification, since they may need to add new datacenters or support IPv6 or something. Users might also have weird network topologies where everything is proxied, and this makes testing/simulating more difficult.

Allow users to configure the list so that they don't need to hack things apart if Postmark adds a new datacenter or remote addresses are unreliable for some other reason, but ship with safe defaults for today.

Test Plan:
Tried to make local requests, got kicked out. Added `0.0.0.0/0` to the list, stopped getting kicked out.

I don't have a convenient way to route real Postmark traffic to my development laptop with an authentic remote address so I haven't verified that the published remote address is legitimate, but I'll vet that in production when I go through all the other mailers.

Maniphest Tasks: T13053

Differential Revision: https://secure.phabricator.com/D19025
2018-02-08 08:23:14 -08:00
..
PhabricatorMetaMTAController.php Apply some autofix linter rules 2014-09-10 06:55:05 +10:00
PhabricatorMetaMTAMailgunReceiveController.php Support Postmark inbound mail via webhook 2018-02-08 06:25:26 -08:00
PhabricatorMetaMTAMailListController.php MetaMTA - more progress towards a mail application 2015-06-23 11:37:14 -07:00
PhabricatorMetaMTAMailViewController.php Add a "View Object" button on the web mail view page 2018-02-08 06:24:19 -08:00
PhabricatorMetaMTAPostmarkReceiveController.php Configure a whitelist of remote addresses for Postmark inbound webhooks 2018-02-08 08:23:14 -08:00
PhabricatorMetaMTASendGridReceiveController.php Support Postmark inbound mail via webhook 2018-02-08 06:25:26 -08:00