1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-03 04:02:43 +01:00
phorge-phorge/src/applications/metamta/adapter
epriestley 3dfa89dd5d Update SES API to use AWSv4 signatures
Summary:
Ref T13570. Fixes T13235. In most cases, we use modern (v4) signatures for almost all AWS API calls, and have for several years.

However, sending email via SES currently uses an older piece of external code which uses the older (v3) signature method.

AWS is retiring v3 signatures on October 1 2020, so this pathway will stop working.

Update the pathway to use `PhutilAWSFuture`, which provides v4 signatures.

T13235 discusses poor error messages from SES. Switching to Futures fixes this for free, as they have more useful error handling.

Test Plan:
  - Configured an SES mailer, including the new `region` parameter.
  - Used `bin/mail send-test` to send mail via SES.
  - Sent invalid mail (from an unverified address); got a more useful error message.
  - Grepped for removed external, no hits.

Maniphest Tasks: T13570, T13235

Differential Revision: https://secure.phabricator.com/D21461
2020-09-15 13:03:49 -07:00
..
__tests__ Update SES API to use AWSv4 signatures 2020-09-15 13:03:49 -07:00
PhabricatorMailAdapter.php Fix additional "xprintf()"-class static parameter lint errors 2020-09-08 11:45:48 -07:00
PhabricatorMailAmazonSESAdapter.php Update SES API to use AWSv4 signatures 2020-09-15 13:03:49 -07:00
PhabricatorMailAmazonSNSAdapter.php Add infrastructure for sending SMS via AWS SNS 2019-01-23 16:29:50 -08:00
PhabricatorMailMailgunAdapter.php Support EU domains for Mailgun API 2019-02-11 15:06:04 -08:00
PhabricatorMailPostmarkAdapter.php Allow "SMTP" and "Sendmail" mailers to have "Message-ID" behavior configured in "cluster.mailers" 2019-03-16 12:35:55 -07:00
PhabricatorMailSendGridAdapter.php Upgrade Sendgrid to the modern mailer API; removes "api-user" option 2019-01-16 13:09:29 -08:00
PhabricatorMailSendmailAdapter.php Allow "SMTP" and "Sendmail" mailers to have "Message-ID" behavior configured in "cluster.mailers" 2019-03-16 12:35:55 -07:00
PhabricatorMailSMTPAdapter.php Allow "SMTP" and "Sendmail" mailers to have "Message-ID" behavior configured in "cluster.mailers" 2019-03-16 12:35:55 -07:00
PhabricatorMailTestAdapter.php Make the "Test" adapter support both SMS and email 2019-01-23 14:07:07 -08:00
PhabricatorMailTwilioAdapter.php Add a Twilio SMS message adapter 2019-01-16 13:25:59 -08:00