From d51f09f9bbc1b487324760233e3a7aa59713ecb4 Mon Sep 17 00:00:00 2001 From: "Schero D." Date: Thu, 19 Nov 2026 00:17:17 +0100 Subject: [PATCH 1/3] feat: Brevo and Amazon SES accounts, template languages and provider open/click tracking Re-landed on main after #20 was squash-merged: the changes of #28 (diff from its #20 base 882a86a) applied onto origin/main, CHANGELOG [Unreleased] merged with #20's entries, StrictMode admin tests added for the Brevo/SES credentials steps and connection check, the Brevo template dialog with language versions and the provider-tracking switch. - Brevo: send, Check connection, webhook token (reveal/rotate, audited), templates with params; Amazon SES v2: own SigV4 (38 official vectors), send, templates, Check connection, SNS-verified events. - Language versions of provider templates (exact -> language -> default). - Provider open/click events counted for provider-template mails. - Brevo and Amazon SES are labelled Beta in the wizard until a live run against their APIs passes (see CHANGELOG Verification). Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 13 + README.md | 64 +- .../AccountWizard/ApiProviderFields.jsx | 625 +++++++ .../AccountWizard/CredentialsStep.jsx | 100 +- .../components/AccountWizard/ProviderStep.jsx | 51 +- .../components/AccountWizard/fieldParts.jsx | 94 ++ .../components/AccountWizard/wizardState.js | 110 +- .../src/pages/EmailDesigner/TemplateList.jsx | 1 + .../providerTemplates/CoreDesignDialog.jsx | 2 +- .../providerTemplates/LanguageVersions.jsx | 215 +++ .../ProviderTemplateDialog.jsx | 25 +- .../ProviderTemplatesSection.jsx | 4 +- .../providerTemplateUtils.js | 58 +- admin/src/pages/HomePage.jsx | 9 +- admin/src/pages/PluginSettings.jsx | 47 + admin/src/translations/de.json | 112 +- admin/src/translations/en.json | 112 +- admin/src/translations/es.json | 112 +- admin/src/translations/fr.json | 112 +- admin/src/translations/pt.json | 112 +- admin/src/utils/providerHints.js | 150 +- admin/src/utils/settingsValidation.js | 2 + docs/acceptance/2026-11-18-brevo-ses.md | 104 ++ docs/api.md | 9 +- docs/configuration.md | 40 +- docs/delivery.md | 37 +- docs/sending.md | 144 +- docs/site/img/readme/brevo-account.webp | Bin 0 -> 71600 bytes docs/site/img/readme/language-versions.webp | Bin 0 -> 80448 bytes docs/site/img/readme/ses-account.webp | Bin 0 -> 85204 bytes docs/upgrading.md | 4 + server/src/bootstrap.js | 13 + .../content-types/email-account/schema.json | 4 +- .../src/content-types/email-log/schema.json | 4 + .../content-types/plugin-settings/schema.json | 5 + .../provider-template/schema.json | 4 +- server/src/controllers/accounts.js | 65 + server/src/controllers/delivery-webhooks.js | 4 + server/src/controllers/provider-templates.js | 28 +- server/src/providers/brevo.js | 925 +++++++++++ server/src/providers/index.js | 70 + server/src/providers/ses.js | 1171 ++++++++++++++ server/src/routes/admin.js | 26 + server/src/routes/content-api.js | 26 + server/src/services/account-manager.js | 139 +- server/src/services/analytics.js | 3 + server/src/services/delivery-webhooks.js | 182 ++- server/src/services/email-router.js | 170 +- server/src/services/plugin-settings.js | 2 + server/src/services/provider-templates.js | 168 +- server/src/utils/aws-sigv4.js | 276 ++++ server/src/utils/client-errors.js | 27 +- server/src/utils/locale.js | 49 + server/src/utils/provider-api.js | 1 + server/src/utils/sns-verify.js | 293 ++++ server/src/validation.js | 36 +- tests/accounts-oauth-hardening.test.js | 2 +- tests/admin-analytics-settings-ui.test.js | 1 + tests/admin-brevo-ses-ui.test.js | 163 ++ tests/admin-switches.test.js | 1 + tests/admin/strict-mode.test.jsx | 158 ++ tests/aws-sigv4.test.js | 102 ++ tests/brevo-adapter.test.js | 642 ++++++++ tests/brevo-contract.test.js | 354 ++++ tests/brevo-integration.test.js | 638 ++++++++ tests/email-only-boundary.test.js | 2 + tests/fixtures/aws-sigv4/README.md | 24 + tests/fixtures/aws-sigv4/v4-vectors.json | 999 ++++++++++++ tests/fixtures/openapi/brevo-account.json | 609 +++++++ tests/fixtures/openapi/brevo-email.json | 919 +++++++++++ tests/fixtures/ses/README.md | 25 + tests/fixtures/ses/aws-doc-examples.json | 587 +++++++ tests/fixtures/smithy/README.md | 25 + tests/fixtures/smithy/sesv2.json | 1441 +++++++++++++++++ tests/fixtures/webhooks/README.md | 31 + tests/fixtures/webhooks/brevo-events.json | 292 ++++ tests/helpers/fake-brevo.js | 208 +++ tests/helpers/fake-ses.js | 359 ++++ tests/helpers/live-env.js | 33 +- tests/helpers/openapi-contract.js | 17 +- tests/helpers/provider-send-harness.js | 32 +- tests/helpers/smithy-contract.js | 287 ++++ tests/helpers/test-certificate.js | 96 ++ tests/helpers/vendor-aws-fixtures.js | 138 ++ tests/live-env-providers.test.js | 45 + tests/live/brevo.live.test.js | 279 ++++ tests/live/ses.live.test.js | 231 +++ tests/provider-locales-tracking.test.js | 709 ++++++++ tests/provider-templates-units.test.js | 4 +- tests/route-inventory.test.js | 8 +- tests/ses-adapter.test.js | 782 +++++++++ tests/ses-contract.test.js | 242 +++ tests/ses-integration.test.js | 595 +++++++ tests/sns-verify.test.js | 333 ++++ tests/templates-settings-hardening.test.js | 18 +- 95 files changed, 17341 insertions(+), 249 deletions(-) create mode 100644 admin/src/components/AccountWizard/ApiProviderFields.jsx create mode 100644 admin/src/components/AccountWizard/fieldParts.jsx create mode 100644 admin/src/pages/EmailDesigner/providerTemplates/LanguageVersions.jsx create mode 100644 docs/acceptance/2026-11-18-brevo-ses.md create mode 100644 docs/site/img/readme/brevo-account.webp create mode 100644 docs/site/img/readme/language-versions.webp create mode 100644 docs/site/img/readme/ses-account.webp create mode 100644 server/src/providers/brevo.js create mode 100644 server/src/providers/index.js create mode 100644 server/src/providers/ses.js create mode 100644 server/src/utils/aws-sigv4.js create mode 100644 server/src/utils/locale.js create mode 100644 server/src/utils/sns-verify.js create mode 100644 tests/admin-brevo-ses-ui.test.js create mode 100644 tests/aws-sigv4.test.js create mode 100644 tests/brevo-adapter.test.js create mode 100644 tests/brevo-contract.test.js create mode 100644 tests/brevo-integration.test.js create mode 100644 tests/fixtures/aws-sigv4/README.md create mode 100644 tests/fixtures/aws-sigv4/v4-vectors.json create mode 100644 tests/fixtures/openapi/brevo-account.json create mode 100644 tests/fixtures/openapi/brevo-email.json create mode 100644 tests/fixtures/ses/README.md create mode 100644 tests/fixtures/ses/aws-doc-examples.json create mode 100644 tests/fixtures/smithy/README.md create mode 100644 tests/fixtures/smithy/sesv2.json create mode 100644 tests/fixtures/webhooks/brevo-events.json create mode 100644 tests/helpers/fake-brevo.js create mode 100644 tests/helpers/fake-ses.js create mode 100644 tests/helpers/smithy-contract.js create mode 100644 tests/helpers/test-certificate.js create mode 100644 tests/helpers/vendor-aws-fixtures.js create mode 100644 tests/live-env-providers.test.js create mode 100644 tests/live/brevo.live.test.js create mode 100644 tests/live/ses.live.test.js create mode 100644 tests/provider-locales-tracking.test.js create mode 100644 tests/ses-adapter.test.js create mode 100644 tests/ses-contract.test.js create mode 100644 tests/ses-integration.test.js create mode 100644 tests/sns-verify.test.js diff --git a/CHANGELOG.md b/CHANGELOG.md index e5c5d6a..3170a78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ### Added +* **Brevo accounts.** Send through the Brevo transactional API (`api-key` header) with sender, cc/bcc, reply-to, attachments, filtered headers and the `magicmail_id` correlation header. **Check connection** reads the Brevo account without sending and names the cause of a failure (invalid key, IP not authorised, account under validation, no credits). Brevo templates sync like SendGrid and Mailgun templates and are sent with `templateId` and your `data` as `params` (a Brevo template writes `{{ params.name }}`, you pass `name`). Delivery webhooks are authenticated with a random webhook token MagicMail creates per account (**Show webhook token**, **Replace token**). +* **Amazon SES accounts.** Send through the SES v2 API in any commercial or GovCloud region, signed with AWS Signature Version 4 (own implementation, tested against the official AWS SigV4 test suite; no AWS SDK). Credentials are an IAM access key or the server's environment variables (`AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_SESSION_TOKEN`). **Check connection** shows sandbox and sending status. SES templates sync and are sent with `TemplateData`. Bounces, complaints, deliveries, delays, rejects and opens/clicks arrive through an SES configuration set → SNS → HTTPS subscription; every SNS message is checked against the configured topic ARN and the SNS signature, and the subscription is confirmed automatically. +* **Language versions for provider templates.** A provider template can map languages (`de`, `fr`, `pt-BR`, …) to other synced templates of the same provider. `send({ providerTemplate, locale })` picks the exact language, then the base language, then the default; without `locale` the recipient's stored locale is used when the users-permissions user type has a `locale` attribute. Core emails use the user's locale and send it as `meta.locale`; test sends use the admin's interface language or `language`. Unusable versions are skipped. +* **Opens and clicks of provider-rendered mails.** New setting **Count provider opens and clicks** (off by default; shown only with a SendGrid, Mailgun, Brevo or SES account). Provider-template sends then ask the provider to track, and the provider's open and click webhook events (SendGrid, Mailgun, Brevo, SES) are counted in Email Analytics, only for those mails, so nothing is counted twice. Clicked links are stored as origin and path only. +* **admin API:** `POST /magic-mail/accounts/:accountId/check` (`test-send`, read-only), `POST /magic-mail/accounts/:accountId/webhook-token` (`manage`, browser sessions only, audit-logged), `locales` in `PUT /magic-mail/provider-templates/:key/settings`, `language` in `POST /magic-mail/provider-templates/:key/test-send`. Content API: `POST /api/magic-mail/webhooks/brevo/:accountId`, `POST /api/magic-mail/webhooks/ses/:accountId`. * **provider templates:** SendGrid dynamic templates and Mailgun templates (domain and account level) appear read-only under **Email Templates → Provider templates** as soon as a SendGrid or Mailgun account exists. Sync reads them with the stored account key (never writes to the provider), follows the providers' pagination, uses the EU hosts for EU accounts, and refreshes itself when the list is older than 10 minutes. A template whose remote id disappears but whose name still exists on the account (a database moved to another environment) is matched by name. * **provider templates:** preview dialog with a sandboxed preview, the detected variables, a code example, a test send (to your own admin address by default, with the same sample values as local templates), an optional local fallback template, and **Copy as Magic Mail template** (HTML copy; Handlebars blocks become Mustache sections and anything that does not carry over is listed). * **sending:** `send({ to, providerTemplate: ':', data })` sends a synced template. The same `data` object that local templates render with Mustache is sent as SendGrid `dynamic_template_data` or Mailgun `t:variables`, converted to plain JSON (dates as ISO strings, no functions, no cycles) and checked against the provider limits (Mailgun: 16 KB for all send options; Magic Mail bounds template data to 1 MB). Routing, rules, failover, quotas and logs work as before, but only between accounts that have the template. Strict by default: a missing template or a provider refusal is a clear error; a local fallback template is sent only when it is configured and no provider accepted the message. The log stores the template key and variable names, never the values. @@ -11,11 +16,13 @@ ### Security +* Brevo webhooks have no provider signature; MagicMail requires a 256-bit random token per account (constant-time comparison, encrypted at rest, revealed only to browser sessions with `manage`, every reveal logged without the token). SNS messages for SES are verified (topic ARN, certificate host `sns..amazonaws.com` of the topic's region, no redirects, size-capped certificate fetch, SignatureVersion 1 and 2) before anything is processed. AWS credentials are never read from instance-metadata or ECS endpoints. Provider error bodies are never logged or returned; Brevo and SES connection checks return no personal data. * Provider ids are never accepted from callers, only synced keys. The public Content API send routes do not accept `providerTemplate`. * Template previews render in a sandboxed iframe without scripts. Provider requests go only to the fixed SendGrid and Mailgun hosts, with timeouts and response size limits; paging URLs from the provider are never requested directly. ### Migration +* Brevo, Amazon SES, language versions and provider tracking: nothing to do. The email log gets an optional `providerTracking` flag and the settings an optional `providerTracking` switch (off). SendGrid, Mailgun and SMTP requests are unchanged (golden payload tests). `PUT /provider-templates/:key/settings` now accepts `locales`, and `fallbackTemplateReferenceId` is optional there (at least one of the two is required). * Provider templates: nothing to do. A new collection `magic_mail_provider_templates` is created on start; nothing changes for accounts without SendGrid or Mailgun. Sends without a provider template are byte-identical to 4.7.0 (golden payload tests). Provider-template sends are not queued in the outbox in this release. * To sync SendGrid templates, the SendGrid key also needs **Template Engine → Read Access** (sending alone needs only **Mail Send**). @@ -23,6 +30,12 @@ * SendGrid: tested live against the real SendGrid API on 2026-11-18, every send in sandbox mode: template sync with pagination, variable detection and preview, template sends, unknown and malformed template ids, the 1 MB data bound, and the template life cycle with temporary templates (no version, a first and a second active version, deleted and re-created under the same name, deleted for good). Temporary objects were deleted afterwards. The EU host could not be tested live (no EU subuser). * Mailgun: verified against Mailgun's official OpenAPI specification and with tests, but not yet against the live Mailgun API. Please report anything unexpected. +* **Brevo and Amazon SES are marked Beta in the account wizard.** Both are verified against their official API descriptions (Brevo OpenAPI files, the Amazon SES v2 Smithy model), by contract tests on every request and response, by the 38 official AWS SigV4 test vectors and by integration tests against fake servers built from those descriptions, plus a browser acceptance run on Strapi 5.62.0 (SQLite and PostgreSQL). **They have not yet been tested against the live Brevo and Amazon SES APIs.** Only a live run (`npm run test:live` with the `BREVO_*` and `SES_*` variables) can confirm: + 1. which header Brevo sends for bearer-token webhook authentication (`Authorization: Bearer ` is assumed; the custom header `X-Magic-Mail-Webhook-Token` also works); + 2. the wording of Brevo's error messages that select the specific hints (IP not authorised, sender not verified, unknown template); other errors fall back to the hint for their status code; + 3. that Amazon SES accepts the per-message `ConfigurationOverrides.Tracking` field used for provider open and click tracking; + 4. that SES answers `404 NotFoundException` for an unknown template on `SendEmail`; + 5. the verification of a real SNS signing certificate (the tests use self-signed certificates; trust rests on HTTPS to the fixed `sns..amazonaws.com` host). # [4.7.0](https://github.com/Schero94/Magic-Mail/compare/v4.6.3...v4.7.0) (2026-11-18) diff --git a/README.md b/README.md index 6d223bc..459073b 100644 --- a/README.md +++ b/README.md @@ -21,19 +21,22 @@ MagicMail sends email only. It is MIT licensed, with no license key, tiers or us ## What you get -- **Six providers.** Gmail, Microsoft 365 and Yahoo with OAuth 2.0, any SMTP server (optional DKIM), SendGrid and Mailgun. Credentials are encrypted with AES-256-GCM and never reach the browser. +- **Eight providers.** Gmail, Microsoft 365 and Yahoo with OAuth 2.0, any SMTP server (optional DKIM), SendGrid, Mailgun, Brevo and Amazon SES (API v2, any commercial or GovCloud region). Credentials are encrypted with AES-256-GCM and never reach the browser. - **Routing rules.** Choose the account by email type, recipient, subject, template or a custom value, with a fallback account per rule. - **Quotas and safe failover.** Hourly and daily limits per account, reserved atomically. When an account fails, the next one is tried only if the error proves the provider did not take the mail, so a mail is never delivered twice by failover. - **Outbox with retries.** Opt-in per send or for every failed send: 3 retries by default (after 1, 5 and 15 minutes, configurable from 1 to 10), idempotency keys, and an Outbox tab where you retry, discard or mark uncertain mails as sent. -- **Delivery webhooks.** Signed SendGrid and Mailgun webhooks record bounces, blocks, complaints, deferrals, deliveries and unsubscribes on the delivery log, feed the suppression list and emit events other plugins can listen to. +- **Delivery webhooks.** Verified SendGrid, Mailgun, Brevo and Amazon SES (SNS) webhooks record bounces, blocks, complaints, deferrals, deliveries and unsubscribes on the delivery log, feed the suppression list and emit events other plugins can listen to. - **Templates.** A visual editor (Unlayer) or plain HTML and text, Mustache variables, versions with restore, import and export, plus the Users & Permissions reset and confirmation mails. -- **Provider templates.** Keep designing in SendGrid or Mailgun: their templates appear read-only in MagicMail, with preview, test send and the same template data your code already passes. Routing, failover and logs stay in MagicMail, and the password-reset and confirmation mails can use them too. +- **Provider templates.** Keep designing in SendGrid, Mailgun, Brevo or Amazon SES: their templates appear read-only in MagicMail, with preview, test send, language versions and the same template data your code already passes. Routing, failover and logs stay in MagicMail, and the password-reset and confirmation mails can use them too. - **Analytics.** A delivery log with server-side search, open and click tracking with truncated IPs and configurable retention. - **Several instances.** Railway replicas or pm2 workers on one database work without sticky sessions or Redis. - **Admin in five languages.** English, German, French, Spanish and Portuguese, in light and dark mode. ## What's new +- **Brevo and Amazon SES accounts:** send, check the connection without sending, sync their templates and receive bounces, complaints and deliveries (Brevo with a MagicMail webhook token, SES through SNS with signature checks) ([Brevo](https://github.com/Schero94/Magic-Mail/blob/main/docs/sending.md#brevo), [Amazon SES](https://github.com/Schero94/Magic-Mail/blob/main/docs/sending.md#amazon-ses)). +- **Language versions of provider templates:** map `de`, `fr`, `pt-BR` … to translated templates; MagicMail picks the version from `locale` or the user's stored locale, falling back to the language and then the default ([details](https://github.com/Schero94/Magic-Mail/blob/main/docs/sending.md#language-versions)). +- **Opens and clicks for provider templates:** with _Count provider opens and clicks_ on, the provider tracks the mails it renders and its open and click events appear in Email Analytics ([details](https://github.com/Schero94/Magic-Mail/blob/main/docs/delivery.md#provider-opens-and-clicks)). - **SendGrid EU regional subusers:** choose region **EU** in the account to send through `api.eu.sendgrid.com` ([setup](https://github.com/Schero94/Magic-Mail/blob/main/docs/sending.md#sendgrid)). - **Fewer provider rejections:** duplicate recipients, SendGrid-reserved headers and oversized messages are handled before the request, with a clear error instead of a bare HTTP status. - **No double tracking:** when MagicMail tracks opens and clicks, SendGrid and Mailgun tracking is switched off for that mail, so links are wrapped once. @@ -83,6 +86,10 @@ All screenshots show synthetic data (`example.test` addresses) on an isolated St ![Provider templates: SendGrid and Mailgun templates with provider badge, key, change date at the provider, account and status under the local templates](https://raw.githubusercontent.com/Schero94/Magic-Mail/main/docs/site/img/readme/provider-templates.webp) +**Brevo and Amazon SES accounts**: the wizard asks only for what the provider needs, checks the connection without sending and shows the webhook URL and setup steps ([Amazon SES](https://github.com/Schero94/Magic-Mail/blob/main/docs/sending.md#amazon-ses) and [language versions](https://github.com/Schero94/Magic-Mail/blob/main/docs/sending.md#language-versions) have their screenshots in the sending guide). + +![Account wizard, Brevo credentials step: API key stored encrypted, Check connection with the result "Connected", and the bounce webhook section with the webhook URL](https://raw.githubusercontent.com/Schero94/Magic-Mail/main/docs/site/img/readme/brevo-account.webp) + **Analytics**: totals and the delivery log with server-side search, delivery status, opens and clicks per email. ![Analytics: sent, opened, clicked and bounced totals and the delivery log with recipient, subject, status, template, time, opens and clicks](https://raw.githubusercontent.com/Schero94/Magic-Mail/main/docs/site/img/readme/analytics.webp) @@ -164,7 +171,7 @@ await strapi.plugin('magic-mail').service('email-router').send({ // → { success: true, accountUsed: 'Transactional SMTP', messageId: '<…>', emailId: '…' } ``` -Designed your email in SendGrid or Mailgun? Send the synced template with the same data a MagicMail template gets (only accounts that have the template send it): +Designed your email in SendGrid, Mailgun, Brevo or Amazon SES? Send the synced template with the same data a MagicMail template gets (only accounts that have the template send it): ```javascript await strapi @@ -174,23 +181,24 @@ await strapi to: 'customer@example.com', providerTemplate: 'sendgrid:welcome-email', // key shown in Email Templates → Provider templates data: { name: 'Ada', user: { email: 'customer@example.com' } }, + locale: 'de', // optional: picks the German language version when one is set }); ``` -All send options, attachments, unsubscribe headers, provider setup, routing rules, templates and [provider templates](https://github.com/Schero94/Magic-Mail/blob/main/docs/sending.md#provider-templates-sendgrid-mailgun): [Sending guide](https://github.com/Schero94/Magic-Mail/blob/main/docs/sending.md). HTTP routes: [API reference](https://github.com/Schero94/Magic-Mail/blob/main/docs/api.md). +All send options, attachments, unsubscribe headers, provider setup, routing rules, templates and [provider templates](https://github.com/Schero94/Magic-Mail/blob/main/docs/sending.md#provider-templates-sendgrid-mailgun-brevo-amazon-ses): [Sending guide](https://github.com/Schero94/Magic-Mail/blob/main/docs/sending.md). HTTP routes: [API reference](https://github.com/Schero94/Magic-Mail/blob/main/docs/api.md). ## Permissions MagicMail registers six admin actions under **Settings → Administration Panel → Roles → Plugins → MagicMail**: -| Action | Grants | -| --------------------------------- | ------------------------------------------------------------------------------------------------------------------ | -| `plugin::magic-mail.access` | The MagicMail menu entry and page. No API access by itself | -| `plugin::magic-mail.read` | Read accounts, routing rules, templates, analytics and settings; render and export templates; the settings link | -| `plugin::magic-mail.manage` | Create, update and delete accounts, rules, templates, logs and settings; OAuth setup | -| `plugin::magic-mail.test-send` | Send test emails (account test, Strapi-service test, template and provider-template test); 10 per minute per admin | -| `plugin::magic-mail.queue.read` | The Outbox tab and queue statistics (no mail content) | -| `plugin::magic-mail.queue.manage` | Retry, discard, mark as sent and delete outbox mails | +| Action | Grants | +| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `plugin::magic-mail.access` | The MagicMail menu entry and page. No API access by itself | +| `plugin::magic-mail.read` | Read accounts, routing rules, templates, analytics and settings; render and export templates; the settings link | +| `plugin::magic-mail.manage` | Create, update and delete accounts, rules, templates, logs and settings; OAuth setup | +| `plugin::magic-mail.test-send` | Send test emails (account test, Strapi-service test, template and provider-template test) and run the read-only Brevo/SES connection check; 10 per minute per admin | +| `plugin::magic-mail.queue.read` | The Outbox tab and queue statistics (no mail content) | +| `plugin::magic-mail.queue.manage` | Retry, discard, mark as sent and delete outbox mails | Typical roles: @@ -222,12 +230,12 @@ Every plugin config key, the admin settings and the multi-instance setup are in ## Security and privacy -- **Credentials.** SMTP passwords, API keys, OAuth tokens and DKIM keys are encrypted with AES-256-GCM (key derived from `MAGIC_MAIL_ENCRYPTION_KEY` with HKDF). The admin API returns the placeholder `********` instead of a secret, and changing the host, user, provider or OAuth client requires the secret again. +- **Credentials.** SMTP passwords, API keys, AWS secret access keys, webhook tokens, OAuth tokens and DKIM keys are encrypted with AES-256-GCM (key derived from `MAGIC_MAIL_ENCRYPTION_KEY` with HKDF). The admin API returns the placeholder `********` instead of a secret, and changing the host, user, provider or OAuth client requires the secret again. - **Admin routes.** Every route needs an authenticated administrator plus the capability listed in [Permissions](#permissions). `access` only shows the menu entry. - **Content API.** The send routes accept API tokens only (users-permissions roles only with `contentApi.allowUserRoles`), reject unknown fields, file-path and URL attachments, and share 60 requests per minute per token across all instances. Never enable them for the _Public_ role. - **What goes out.** HTML is sanitised, `from` is pinned to the sending account's address, custom headers are allowlisted, and SMTP requires TLS 1.2 or newer with certificate checks (unless `allowInsecure` is set on a non-production or loopback host). - **OAuth.** Callbacks are public but use a signed, single-use state with PKCE, bound to the admin who started the flow and stored in the database. -- **Webhooks.** SendGrid and Mailgun requests are verified with the provider signature and a one-hour timestamp window; replays are ignored and bodies are capped (1 MiB by default). Provider messages are not stored; addresses only as a keyed hash plus a masked form (suppression list) or a masked form (events for cc/bcc recipients). +- **Webhooks.** SendGrid and Mailgun requests are verified with the provider signature and a one-hour timestamp window; Brevo requests need the account's random webhook token (compared in constant time; shown only to admins with `manage` in a browser session, every reveal is audit-logged); Amazon SES (SNS) messages need the configured topic ARN and a valid SNS signature from an AWS SNS certificate host; replays are ignored and bodies are capped (1 MiB by default). Provider messages are not stored; addresses only as a keyed hash plus a masked form (suppression list) or a masked form (events for cc/bcc recipients). - **Tracking.** Open and click events keep IPs truncated to /24 or /48 and no location, and expire after 90 days (links after 180 days). Authentication links are never tracked. Mention tracking in your privacy notice. - **Outbox.** Queued mails are stored encrypted and deleted once sent or discarded; the admin API and the Outbox tab never show mail content. `forgetRecipient(address)` removes a recipient's queued mails. - **Logs.** MagicMail's log lines carry error names and codes, not recipient addresses or message content. @@ -240,18 +248,18 @@ Every plugin config key, the admin settings and the multi-instance setup are in ## Documentation -| Guide | What it covers | -| ------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [Docs site](https://schero94.github.io/Magic-Mail/) | Overview, screenshot gallery, install, outbox, several instances | -| [Sending, providers, routing and templates](https://github.com/Schero94/Magic-Mail/blob/main/docs/sending.md) | Send options, attachments, Gmail/Microsoft 365/Yahoo/SMTP/SendGrid/Mailgun setup, routing rules, quotas, failover, templates, the visual editor and its CSP | -| [Tracking, bounces and the outbox](https://github.com/Schero94/Magic-Mail/blob/main/docs/delivery.md) | Open and click tracking, retention, bounce webhooks and mailbox monitoring, recipient checks, retries and the outbox | -| [Content API and Admin API](https://github.com/Schero94/Magic-Mail/blob/main/docs/api.md) | Every route with request, response and error examples | -| [Configuration and several instances](https://github.com/Schero94/Magic-Mail/blob/main/docs/configuration.md) | Every config key, admin settings, account fields, service API, Railway replicas and pm2 clusters | -| [Troubleshooting and FAQ](https://github.com/Schero94/Magic-Mail/blob/main/docs/troubleshooting.md) | Mail not received, OAuth errors, 400/403/429 responses, CSP, DMARC | -| [Live webhook checks](https://github.com/Schero94/Magic-Mail/blob/main/docs/live-webhook-checks.md) | Checking the SendGrid and Mailgun webhooks against your real accounts: test buttons, a real bounce, what to expect | -| [Upgrading](https://github.com/Schero94/Magic-Mail/blob/main/docs/upgrading.md) | Migration notes for every release since 4.0.0 | -| [Permission migration](https://github.com/Schero94/Magic-Mail/blob/main/docs/permission-migration.md) | Granting the 4.x admin capabilities | -| [Changelog](https://github.com/Schero94/Magic-Mail/blob/main/CHANGELOG.md) | Every release | +| Guide | What it covers | +| ------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [Docs site](https://schero94.github.io/Magic-Mail/) | Overview, screenshot gallery, install, outbox, several instances | +| [Sending, providers, routing and templates](https://github.com/Schero94/Magic-Mail/blob/main/docs/sending.md) | Send options, attachments, Gmail/Microsoft 365/Yahoo/SMTP/SendGrid/Mailgun/Brevo/Amazon SES setup, routing rules, quotas, failover, templates, the visual editor and its CSP | +| [Tracking, bounces and the outbox](https://github.com/Schero94/Magic-Mail/blob/main/docs/delivery.md) | Open and click tracking, retention, bounce webhooks and mailbox monitoring, recipient checks, retries and the outbox | +| [Content API and Admin API](https://github.com/Schero94/Magic-Mail/blob/main/docs/api.md) | Every route with request, response and error examples | +| [Configuration and several instances](https://github.com/Schero94/Magic-Mail/blob/main/docs/configuration.md) | Every config key, admin settings, account fields, service API, Railway replicas and pm2 clusters | +| [Troubleshooting and FAQ](https://github.com/Schero94/Magic-Mail/blob/main/docs/troubleshooting.md) | Mail not received, OAuth errors, 400/403/429 responses, CSP, DMARC | +| [Live webhook checks](https://github.com/Schero94/Magic-Mail/blob/main/docs/live-webhook-checks.md) | Checking the SendGrid and Mailgun webhooks against your real accounts: test buttons, a real bounce, what to expect | +| [Upgrading](https://github.com/Schero94/Magic-Mail/blob/main/docs/upgrading.md) | Migration notes for every release since 4.0.0 | +| [Permission migration](https://github.com/Schero94/Magic-Mail/blob/main/docs/permission-migration.md) | Granting the 4.x admin capabilities | +| [Changelog](https://github.com/Schero94/Magic-Mail/blob/main/CHANGELOG.md) | Every release | ## Contributing @@ -274,7 +282,7 @@ npm run verify npm run verify:runtime ``` -`npm run test:live` runs the opt-in live suites against the real SendGrid and Mailgun APIs: the send paths (`tests/live/provider-send.live.test.js`), the provider-template flows (`tests/live/provider-templates.live.test.js`) and the rest of the SendGrid integration (`tests/live/sendgrid-account.live.test.js`: restricted API keys, template versions, read-only account checks; it creates temporary `magic-mail-live-*` API keys and templates and deletes them again, so its key needs full access). SendGrid runs in sandbox mode and Mailgun in test mode, so nothing is delivered (Mailgun bills test-mode messages). Credentials come only from `~/.config/magic-mail-live/.env` and are never printed. `LIVE_PROVIDERS` (environment variable or a line in that file) picks the providers: `sendgrid`, `mailgun` or `sendgrid,mailgun`; without it, every provider whose required variables are complete runs. Tests of a provider that is not selected are skipped with the reason. For SendGrid only: `LIVE_PROVIDERS=sendgrid npm run test:live`. Required per provider: SendGrid needs `SENDGRID_API_KEY`, `SENDGRID_FROM`, `LIVE_TEST_RECIPIENT` and, for the template suite, `SENDGRID_TEMPLATE_ID`; Mailgun needs `MAILGUN_API_KEY`, `MAILGUN_DOMAIN`, `MAILGUN_REGION`, `LIVE_TEST_RECIPIENT` and, for the template suite, `MAILGUN_TEMPLATE`. Optional: `SENDGRID_REGION`, `SENDGRID_EU_API_KEY`, `SENDGRID_EU_FROM`, `MAILGUN_FROM`, `MAILGUN_EU_DOMAIN`, `MAILGUN_EU_API_KEY`. Without the file, or when a selected provider misses a variable, the template suite fails with the file name and the missing variable names (the send suite reports those tests as skipped). It never runs in CI. Never commit that file. +`npm run test:live` runs the opt-in live suites against the real SendGrid and Mailgun APIs: the send paths (`tests/live/provider-send.live.test.js`), the provider-template flows (`tests/live/provider-templates.live.test.js`) and the rest of the SendGrid integration (`tests/live/sendgrid-account.live.test.js`: restricted API keys, template versions, read-only account checks; it creates temporary `magic-mail-live-*` API keys and templates and deletes them again, so its key needs full access). SendGrid runs in sandbox mode and Mailgun in test mode, so nothing is delivered (Mailgun bills test-mode messages). Credentials come only from `~/.config/magic-mail-live/.env` and are never printed. `LIVE_PROVIDERS` (environment variable or a line in that file) picks the providers as a comma-separated list of `sendgrid`, `mailgun`, `brevo` and `ses`; without it, every provider whose required variables are complete runs. Tests of a provider that is not selected are skipped with the reason. For SendGrid only: `LIVE_PROVIDERS=sendgrid npm run test:live`. Required per provider: SendGrid needs `SENDGRID_API_KEY`, `SENDGRID_FROM`, `LIVE_TEST_RECIPIENT` and, for the template suite, `SENDGRID_TEMPLATE_ID`; Mailgun needs `MAILGUN_API_KEY`, `MAILGUN_DOMAIN`, `MAILGUN_REGION`, `LIVE_TEST_RECIPIENT` and, for the template suite, `MAILGUN_TEMPLATE`. Optional: `SENDGRID_REGION`, `SENDGRID_EU_API_KEY`, `SENDGRID_EU_FROM`, `MAILGUN_FROM`, `MAILGUN_EU_DOMAIN`, `MAILGUN_EU_API_KEY`. Without the file, or when a selected provider misses a variable, the template suite fails with the file name and the missing variable names (the send suite reports those tests as skipped). Brevo (`tests/live/brevo.live.test.js`, sandbox header `X-Sib-Sandbox: drop`, nothing delivered) needs `BREVO_API_KEY`, `BREVO_FROM`, `BREVO_TO` and optionally `BREVO_TEMPLATE_ID`; Amazon SES (`tests/live/ses.live.test.js`, only the SES mailbox simulator `success@` and `bounce@simulator.amazonses.com`) needs `SES_REGION`, `SES_ACCESS_KEY_ID`, `SES_SECRET_ACCESS_KEY`, `SES_FROM` and optionally `SES_CONFIGURATION_SET`, `SES_TEMPLATE_NAME`; both skip with the missing names when their variables are not set. It never runs in CI. Never commit that file. `npm run test:admin` renders every admin entry point (the five sections of the MagicMail page with their dialogs, the template editor, the Plugin Settings page) inside `React.StrictMode` with the providers of the Strapi admin, in jsdom with a fake network. It fails on a mutation sent twice, a read repeated without aborting the first one, an interval, listener, connection or observer left after unmount, and any console error or warning. A separate CI job runs the same tests against React 19 for information only: the plugin's peer range is React 18, like the Strapi 5 admin. diff --git a/admin/src/components/AccountWizard/ApiProviderFields.jsx b/admin/src/components/AccountWizard/ApiProviderFields.jsx new file mode 100644 index 0000000..018b50f --- /dev/null +++ b/admin/src/components/AccountWizard/ApiProviderFields.jsx @@ -0,0 +1,625 @@ +import { useState } from 'react'; +import { Box, Button, Field, Flex, Radio, TextInput, Typography } from '@strapi/design-system'; +import { Key, Lock } from '@strapi/icons'; +import { useFetchClient, useNotification } from '@strapi/strapi/admin'; +import { useMagicMailIntl } from '../../hooks/useMagicMailIntl'; +import { useCopyToClipboard } from '../../hooks/useCopyToClipboard'; +import { providerHintMessage } from '../../utils/providerHints'; +import { ConfirmDialog } from '../shared/ConfirmDialog'; +import { ExternalLink, SecretField, SecurityAlert } from './fieldParts'; +import { + FullWidthField, + GuideBox, + GuideList, + RedirectUriRow, + RedirectUriValue, + SectionTitle, + StaticAlert, +} from './styles'; +import { getWebhookUrl, validateCredentials } from './wizardState'; + +const code = (chunks) => {chunks}; + +/** + * Absolute webhook URL of a saved account, or null before the first save. + * + * @param {'brevo'|'ses'} provider + * @param {string|null} accountId + * @returns {string|null} + */ +const webhookUrlFor = (provider, accountId) => + getWebhookUrl(provider, accountId, { + backendURL: typeof window !== 'undefined' ? window.strapi?.backendURL : undefined, + origin: typeof window !== 'undefined' ? window.location.origin : '', + }); + +/** + * Read-only value with a Copy button (webhook URL, webhook token). + * + * @param {{label: string, value: string, copyLabel: string, copied: string}} props + */ +const CopyRow = ({ label, value, copyLabel, copied }) => { + const { t } = useMagicMailIntl(); + const copy = useCopyToClipboard(); + return ( +
+ + {label} + + + {value} + + +
+ ); +}; + +/** + * Webhook URL of a saved account, or the "shown after saving" note. + * + * @param {{provider: 'brevo'|'ses', accountId: string|null}} props + */ +const WebhookUrl = ({ provider, accountId }) => { + const { t } = useMagicMailIntl(); + const url = webhookUrlFor(provider, accountId); + if (!url) { + return ( + + {t( + 'accountModal.webhook.urlAfterSave', + 'The webhook URL is shown here after the account is saved.' + )} + + ); + } + return ( + + ); +}; + +/** + * "Check connection" for a saved Brevo or Amazon SES account: one read-only + * request with the stored credentials, no email is sent. + * + * @param {{accountId: string|null}} props + */ +export const ConnectionCheck = ({ accountId }) => { + const { t } = useMagicMailIntl(); + const { post } = useFetchClient(); + const [state, setState] = useState({ busy: false, result: null }); + + if (!accountId) { + return ( + + {t( + 'accountModal.check.afterSave', + 'After saving, you can check the connection here without sending an email.' + )} + + ); + } + + const run = async () => { + setState({ busy: true, result: null }); + try { + const { data } = await post(`/magic-mail/accounts/${accountId}/check`, {}); + setState({ busy: false, result: data || null }); + } catch { + setState({ busy: false, result: { ok: false, code: 'UNAVAILABLE' } }); + } + }; + + const result = state.result; + const details = result?.details || {}; + return ( + + + + + {t('accountModal.check.note', 'Uses the saved credentials. No email is sent.')} + + +
+ {result?.ok ? ( + + {details.sandbox === true + ? t( + 'accountModal.check.okSandbox', + 'Connected. The AWS account is in the SES sandbox: it can only send to verified addresses.' + ) + : t('accountModal.check.ok', 'Connected. The credentials work.')} + + ) : null} + {result?.ok && details.hintCode ? ( + + {providerHintMessage(t, details.hintCode, null)} + + ) : null} + {result && !result.ok ? ( + + {providerHintMessage(t, result.hintCode || result.code, result.hint) || + t('accountModal.check.failed', 'The connection check failed.')} + + ) : null} +
+
+ ); +}; + +/** + * Brevo webhook token of a saved account: hidden until "Show token", + * replaceable with a confirmation. The server returns it only to an admin + * signed in to the browser and writes an audit line. + * + * @param {{accountId: string|null}} props + */ +const BrevoWebhookToken = ({ accountId }) => { + const { t } = useMagicMailIntl(); + const { post } = useFetchClient(); + const { toggleNotification } = useNotification(); + const [token, setToken] = useState(''); + const [busy, setBusy] = useState(''); + const [confirmRotate, setConfirmRotate] = useState(false); + + if (!accountId) { + return ( + + {t( + 'accountModal.brevo.tokenAfterSave', + 'Magic Mail creates a random webhook token when the account is saved. It is shown here afterwards.' + )} + + ); + } + + const request = async (action) => { + setBusy(action); + try { + const { data } = await post(`/magic-mail/accounts/${accountId}/webhook-token`, { action }); + setToken(data?.data?.token || ''); + if (action === 'rotate') { + toggleNotification({ + type: 'success', + message: t( + 'accountModal.brevo.tokenRotated', + 'New webhook token created. Update it in Brevo now.' + ), + }); + } + return true; + } catch { + toggleNotification({ + type: 'danger', + message: t( + 'accountModal.brevo.tokenFailed', + 'The webhook token could not be loaded. Sign in to the admin panel with an account that may manage email accounts.' + ), + }); + return false; + } finally { + setBusy(''); + } + }; + + return ( + + {token ? ( + + ) : null} + + {!token ? ( + + ) : null} + + + setConfirmRotate(false)} + title={t('accountModal.brevo.rotateTitle', 'Replace the webhook token?')} + description={t( + 'accountModal.brevo.rotateBody', + 'Brevo webhooks that still send the old token are rejected until you paste the new token in Brevo. This can not be undone.' + )} + confirmLabel={t('accountModal.brevo.rotateConfirm', 'Replace token')} + onConfirm={async () => { + if (await request('rotate')) setConfirmRotate(false); + }} + /> + + ); +}; + +/** + * Credentials, webhook and setup guide of a Brevo account. + * + * @param {{form: Record, onChange: Function, isEditMode: boolean, + * accountId: string|null, unreadableAlert: React.ReactNode}} props + */ +export const BrevoFields = ({ form, onChange, isEditMode, accountId, unreadableAlert }) => { + const { t } = useMagicMailIntl(); + return ( + <> + {unreadableAlert} + + {t( + 'accountModal.credentials.apiKeySecurityBody', + 'Your API key is encrypted with AES-256-GCM before it is stored.' + )} + + + + + onChange('apiKey', value)} + isEditMode={isEditMode} + /> + + + + + + + + + {t('accountModal.brevo.webhookGuideTitle', 'Set up the webhook in Brevo')} + + +
  • + {t( + 'accountModal.brevo.webhookStep1', + 'In Brevo: Transactional, Settings, Webhooks, Add a new webhook. Paste the webhook URL.' + )} +
  • +
  • + {t( + 'accountModal.brevo.webhookStep2', + 'Select Delivered, Hard bounce, Soft bounce, Invalid email, Deferred, Blocked, Spam and Unsubscribed. Add Opened and Clicked only when Magic Mail should count opens and clicks of Brevo templates.' + )} +
  • +
  • + {t( + 'accountModal.brevo.webhookStep3', + 'Choose token authentication (Bearer) and paste the webhook token. Requests without this token are rejected.' + )} +
  • +
    +
    + + + + {t('accountModal.guide.dashboard', 'Dashboard')} + + + {t('accountModal.guide.docs', 'Documentation')} + +
    + } + > + {t( + 'accountModal.brevo.resourcesBody', + 'The From address must be a verified sender or belong to an authenticated domain in Brevo. Brevo templates use {code1}: Magic Mail sends your data under params, so the key name becomes {code2}. Open and click tracking is an account setting in Brevo.', + { + code1: code('{{ params.name }}'), + code2: code('params.name'), + } + )} + + + + ); +}; + +/** + * Credentials, event destination and setup guide of an Amazon SES account. + * + * @param {{form: Record, onChange: Function, isEditMode: boolean, + * accountId: string|null, unreadableAlert: React.ReactNode}} props + */ +export const SesFields = ({ form, onChange, isEditMode, accountId, unreadableAlert }) => { + const { t } = useMagicMailIntl(); + const errors = validateCredentials('ses', form); + const environment = form.sesCredentialSource === 'environment'; + const text = (field) => (event) => onChange(field, event.target.value); + + return ( + <> + {unreadableAlert} + + {t( + 'accountModal.ses.securityBody', + 'The secret access key is encrypted with AES-256-GCM before it is stored. Requests are signed (AWS Signature Version 4); the key itself is never sent.' + )} + + + + + + + + {t('accountModal.ses.region', 'AWS region')} + + + + + + + + + {t('accountModal.ses.source', 'Credentials')} + + onChange('sesCredentialSource', value)} + > + + {t('accountModal.ses.sourceKeys', 'Access key of an IAM user')} + + + {t( + 'accountModal.ses.sourceEnvironment', + 'Server environment variables (for example an IAM role)' + )} + + + + + {environment ? ( + + {t( + 'accountModal.ses.environmentBody', + 'Magic Mail reads {a}, {b} and, for temporary role credentials, {c} from the environment of the Strapi process at every request. Use this when your platform injects role credentials as environment variables. Magic Mail never queries the EC2 instance metadata or ECS credential endpoints.', + { + a: code('AWS_ACCESS_KEY_ID'), + b: code('AWS_SECRET_ACCESS_KEY'), + c: code('AWS_SESSION_TOKEN'), + } + )} + + ) : ( + <> + + + {t('accountModal.ses.accessKeyId', 'Access key ID')} + + + + + onChange('sesSecretAccessKey', value)} + isEditMode={isEditMode} + /> + + )} + + + + {t('accountModal.ses.configurationSet', 'Configuration set')} + + + + + + + + + + + + {t('accountModal.ses.topicArn', 'SNS topic ARN')} + + + + + + + + + {t('accountModal.ses.guideTitle', 'Set up events in AWS')} + + +
  • + {t( + 'accountModal.ses.step1', + 'Verify the From address or its domain in this region. In the SES sandbox, every recipient must be verified too.' + )} +
  • +
  • + {t( + 'accountModal.ses.step2', + 'Create a standard SNS topic in the same region and allow ses.amazonaws.com to publish to it.' + )} +
  • +
  • + {t( + 'accountModal.ses.step3', + 'In the configuration set, add an SNS event destination for Delivery, Bounce, Complaint, Reject, Rendering failure and Delivery delay (plus Open and Click to count them).' + )} +
  • +
  • + {t( + 'accountModal.ses.step4', + 'Paste the topic ARN above and save. Then create an HTTPS subscription for the webhook URL; Magic Mail confirms it automatically.' + )} +
  • +
    +
    + + + + {t('accountModal.guide.dashboard', 'Dashboard')} + + + {t('accountModal.guide.docs', 'Documentation')} + +
    + } + > + {t( + 'accountModal.ses.resourcesBody', + 'SES templates use the same {code1} variables as Magic Mail, so your data keys stay the same. Test sends to success@simulator.amazonses.com work in the sandbox.', + { code1: code('{{name}}') } + )} + + + + ); +}; diff --git a/admin/src/components/AccountWizard/CredentialsStep.jsx b/admin/src/components/AccountWizard/CredentialsStep.jsx index 12bcab3..09469b9 100644 --- a/admin/src/components/AccountWizard/CredentialsStep.jsx +++ b/admin/src/components/AccountWizard/CredentialsStep.jsx @@ -16,16 +16,16 @@ import { Key, Lock, Server } from '@strapi/icons'; import { LockClosedIcon } from '@heroicons/react/24/outline'; import { useMagicMailIntl } from '../../hooks/useMagicMailIntl'; import { useCopyToClipboard } from '../../hooks/useCopyToClipboard'; +import { ExternalLink, SecretField, SecurityAlert } from './fieldParts'; +import { BrevoFields, SesFields } from './ApiProviderFields'; import { BulletList, CONNECT_BUTTON_COLORS, ConnectButton, - ExternalAnchor, FormSection, FullWidthField, GuideBox, GuideList, - InfoAlert, RedirectUriRow, RedirectUriValue, SectionTitle, @@ -40,7 +40,6 @@ import { getRedirectUri, getWebhookUrl, isIntegerInRange, - isMaskedSecret, validateCredentials, } from './wizardState'; import { normalizeMailgunDomain } from '../../utils/mailgunDomain.mjs'; @@ -48,25 +47,7 @@ import { normalizeMailgunDomain } from '../../utils/mailgunDomain.mjs'; const bold = (chunks) => {chunks}; const code = (chunks) => {chunks}; -const ExternalLink = ({ href, children, standalone = false }) => { - const { t } = useMagicMailIntl(); - return ( - - {children} - - {` (${t('accountModal.guide.newTab', 'opens in a new tab')})`} - - - ); -}; +export { SecretField }; const GuideStep = ({ number, children }) => (
  • @@ -75,47 +56,6 @@ const GuideStep = ({ number, children }) => (
  • ); -/** Text input for a secret; explains how stored (masked) secrets are kept. */ -export const SecretField = ({ - name, - label, - value, - placeholder, - hint, - onChange, - isEditMode, - required = true, -}) => { - const { t } = useMagicMailIntl(); - const masked = isEditMode && isMaskedSecret(value); - return ( - - - {label} - onChange(e.target.value)} - /> - - - - ); -}; - const RedirectUri = ({ providerKey, serverRedirectUri }) => { const { t } = useMagicMailIntl(); const copy = useCopyToClipboard(); @@ -247,20 +187,6 @@ const DeliveryWebhookFields = ({ provider, form, onChange, isEditMode, accountId ); }; -const SecurityAlert = ({ title, children }) => { - const { t } = useMagicMailIntl(); - return ( - - {children} - - ); -}; - /** Connect button, authorized state, or the edit-mode notice. */ const OAuthConnect = ({ provider, @@ -984,6 +910,26 @@ export const CredentialsStep = ({ )} + {provider === 'brevo' && ( + + )} + + {provider === 'ses' && ( + + )} + {(provider === 'sendgrid' || provider === 'mailgun') && ( <> {unreadableAlert} diff --git a/admin/src/components/AccountWizard/ProviderStep.jsx b/admin/src/components/AccountWizard/ProviderStep.jsx index de958f6..5cce922 100644 --- a/admin/src/components/AccountWizard/ProviderStep.jsx +++ b/admin/src/components/AccountWizard/ProviderStep.jsx @@ -1,5 +1,5 @@ -import { Box } from '@strapi/design-system'; -import { Check, Cloud, Mail, Server } from '@strapi/icons'; +import { Badge, Box } from '@strapi/design-system'; +import { Check, Cloud, Mail, PaperPlane, Server, Earth } from '@strapi/icons'; import { useMagicMailIntl } from '../../hooks/useMagicMailIntl'; import { byScheme } from '../../utils/theme'; import { @@ -17,7 +17,7 @@ import { const ICON_STYLE = { width: 26, height: 26 }; -const ProviderTile = ({ value, selected, onSelect, icon, name, tagline }) => ( +const ProviderTile = ({ value, selected, onSelect, icon, name, tagline, badge }) => ( ( ) : null} {icon} - {name} + + {name} + {badge ? ( + + {badge} + + ) : null} + {tagline} @@ -48,7 +55,9 @@ const ProviderTile = ({ value, selected, onSelect, icon, name, tagline }) => ( export const ProviderStep = ({ provider, onSelect }) => { const { t } = useMagicMailIntl(); - const tile = (value, icon, name, tagline) => ( + // Beta until a live run against the real API has passed (Brevo, Amazon SES). + const beta = t('accountModal.providers.beta', 'Beta'); + const tile = (value, icon, name, tagline, badge) => ( { icon={icon} name={name} tagline={tagline} + badge={badge} /> ); @@ -175,6 +185,37 @@ export const ProviderStep = ({ provider, onSelect }) => { 'Developer-first API · EU/US regions · routes and webhooks' ) )} + {tile( + 'brevo', + , + 'Brevo', + t( + 'accountModal.providers.brevoTagline', + 'Transactional API · templates with params · webhooks' + ), + beta + )} + {tile( + 'ses', + , + 'Amazon SES', + t('accountModal.providers.sesTagline', 'AWS regions · SES templates · SNS events'), + beta + )} ); diff --git a/admin/src/components/AccountWizard/fieldParts.jsx b/admin/src/components/AccountWizard/fieldParts.jsx new file mode 100644 index 0000000..1ec189d --- /dev/null +++ b/admin/src/components/AccountWizard/fieldParts.jsx @@ -0,0 +1,94 @@ +import { Field, TextInput } from '@strapi/design-system'; +import { useMagicMailIntl } from '../../hooks/useMagicMailIntl'; +import { isMaskedSecret } from './wizardState'; +import { ExternalAnchor, FullWidthField, InfoAlert } from './styles'; + +/** + * Small building blocks shared by the provider credential sections of the + * account wizard (CredentialsStep, ApiProviderFields, BounceMonitorFields). + */ + +/** + * External link that opens in a new tab and says so to screen readers. + * + * @param {{href: string, children: React.ReactNode, standalone?: boolean}} props + */ +export const ExternalLink = ({ href, children, standalone = false }) => { + const { t } = useMagicMailIntl(); + return ( + + {children} + + {` (${t('accountModal.guide.newTab', 'opens in a new tab')})`} + + + ); +}; + +/** + * Green notice about how a credential is protected. + * + * @param {{title: string, children: React.ReactNode}} props + */ +export const SecurityAlert = ({ title, children }) => { + const { t } = useMagicMailIntl(); + return ( + + {children} + + ); +}; + +/** Text input for a secret; explains how stored (masked) secrets are kept. */ +export const SecretField = ({ + name, + label, + value, + placeholder, + hint, + onChange, + isEditMode, + required = true, +}) => { + const { t } = useMagicMailIntl(); + const masked = isEditMode && isMaskedSecret(value); + return ( + + + {label} + onChange(e.target.value)} + /> + + + + ); +}; diff --git a/admin/src/components/AccountWizard/wizardState.js b/admin/src/components/AccountWizard/wizardState.js index e846425..62819fa 100644 --- a/admin/src/components/AccountWizard/wizardState.js +++ b/admin/src/components/AccountWizard/wizardState.js @@ -24,8 +24,38 @@ export const PROVIDER_LABELS = Object.freeze({ smtp: 'SMTP', sendgrid: 'SendGrid', mailgun: 'Mailgun', + brevo: 'Brevo', + ses: 'Amazon SES', }); +/** Amazon SES field rules (same as server/src/providers/ses.js). */ +export const SES_REGION_PATTERN = /^[a-z]{2}(?:-[a-z]+)+-\d{1,2}$/; +const SES_UNSUPPORTED_REGION = /^(?:cn-|[a-z]{2}-iso)/; +const SES_ACCESS_KEY_ID_PATTERN = /^\w{16,128}$/; +const SES_CONFIGURATION_SET_PATTERN = /^[A-Za-z0-9_-]{1,64}$/; +const SES_TOPIC_ARN_PATTERN = + /^arn:(aws|aws-us-gov):sns:([a-z]{2}(?:-[a-z]+)+-\d{1,2}):(\d{12}):([A-Za-z0-9_-]{1,256})$/; + +/** Common SES regions offered in the wizard (any valid region code can be typed). */ +export const SES_REGIONS = Object.freeze([ + 'us-east-1', + 'us-east-2', + 'us-west-2', + 'ca-central-1', + 'eu-west-1', + 'eu-west-2', + 'eu-west-3', + 'eu-central-1', + 'eu-north-1', + 'eu-south-1', + 'ap-south-1', + 'ap-southeast-1', + 'ap-southeast-2', + 'ap-northeast-1', + 'ap-northeast-2', + 'sa-east-1', +]); + /** Product names of the OAuth identity providers (not translated). */ export const OAUTH_PROVIDER_NAMES = Object.freeze({ 'gmail-oauth': 'Google', @@ -81,6 +111,13 @@ export const createEmptyForm = () => ({ sendgridRegion: 'us', webhookPublicKey: '', webhookSigningKey: '', + // Amazon SES + sesRegion: 'eu-west-1', + sesCredentialSource: 'keys', + sesAccessKeyId: '', + sesSecretAccessKey: '', + sesConfigurationSet: '', + sesTopicArn: '', microsoftTenantId: '', oauthClientId: '', oauthClientSecret: '', @@ -105,6 +142,8 @@ export const BOUNCE_MODES = Object.freeze({ 'yahoo-oauth': ['imap'], sendgrid: [], mailgun: [], + brevo: [], + ses: [], }); const isFiniteNumber = (value) => typeof value === 'number' && Number.isFinite(value); @@ -149,6 +188,12 @@ export const accountToForm = (account = {}) => { // Optional bounce/complaint webhook secrets (SendGrid key is public). webhookPublicKey: stringOr(config.webhookPublicKey), webhookSigningKey: stringOr(config.webhookSigningKey), + sesRegion: account?.provider === 'ses' ? stringOr(config.region) : 'eu-west-1', + sesCredentialSource: config.credentialSource === 'environment' ? 'environment' : 'keys', + sesAccessKeyId: stringOr(config.accessKeyId), + sesSecretAccessKey: stringOr(config.secretAccessKey), + sesConfigurationSet: stringOr(config.configurationSetName), + sesTopicArn: stringOr(config.snsTopicArn), microsoftTenantId: stringOr(config.tenantId), oauthClientId: stringOr(config.clientId), oauthClientSecret: stringOr(config.clientSecret), @@ -250,10 +295,35 @@ export const validateLimits = (form) => { * * @param {string} provider * @param {Record} form - * @returns {{mailgunDomain?: 'invalid'}} error codes + * @returns {{mailgunDomain?: 'invalid', sesRegion?: 'invalid', sesAccessKeyId?: 'invalid', + * sesConfigurationSet?: 'invalid', sesTopicArn?: 'invalid'|'partition'}} error codes */ export const validateCredentials = (provider, form) => { const errors = {}; + if (provider === 'ses') { + const region = (form.sesRegion || '').trim(); + if ( + filled(region) && + (!SES_REGION_PATTERN.test(region) || SES_UNSUPPORTED_REGION.test(region)) + ) { + errors.sesRegion = 'invalid'; + } + const keyId = (form.sesAccessKeyId || '').trim(); + if (form.sesCredentialSource !== 'environment' && filled(keyId)) { + if (!SES_ACCESS_KEY_ID_PATTERN.test(keyId)) errors.sesAccessKeyId = 'invalid'; + } + const set = (form.sesConfigurationSet || '').trim(); + if (filled(set) && !SES_CONFIGURATION_SET_PATTERN.test(set)) + errors.sesConfigurationSet = 'invalid'; + const arn = (form.sesTopicArn || '').trim(); + if (filled(arn)) { + const match = SES_TOPIC_ARN_PATTERN.exec(arn); + if (!match) errors.sesTopicArn = 'invalid'; + else if ((match[1] === 'aws-us-gov') !== region.startsWith('us-gov-')) { + errors.sesTopicArn = 'partition'; + } + } + } if ( provider === 'mailgun' && filled(form.mailgunDomain) && @@ -300,7 +370,17 @@ export const canProceedStep = (step, ctx) => { isIntegerInRange(form.port, PORT_MIN, PORT_MAX) ); } - if (provider === 'sendgrid') return filled(form.apiKey); + if (provider === 'sendgrid' || provider === 'brevo') return filled(form.apiKey); + if (provider === 'ses') { + const keys = + form.sesCredentialSource === 'environment' || + (filled(form.sesAccessKeyId) && filled(form.sesSecretAccessKey)); + return ( + filled(form.sesRegion) && + keys && + Object.keys(validateCredentials(provider, form)).length === 0 + ); + } if (provider === 'mailgun') { return ( filled(form.apiKey) && @@ -361,6 +441,24 @@ export const buildConfig = (provider, form) => { // Trimming keeps the stored-secret mask unchanged (it has no spaces). webhookSigningKey: (form.webhookSigningKey || '').trim(), }; + case 'brevo': + // The webhook token is created by the server and never sent from here. + return { apiKey: form.apiKey.trim() }; + case 'ses': { + const environment = form.sesCredentialSource === 'environment'; + return { + region: (form.sesRegion || '').trim(), + credentialSource: environment ? 'environment' : 'keys', + ...(environment + ? {} + : { + accessKeyId: (form.sesAccessKeyId || '').trim(), + secretAccessKey: form.sesSecretAccessKey || '', + }), + configurationSetName: (form.sesConfigurationSet || '').trim(), + snsTopicArn: (form.sesTopicArn || '').trim(), + }; + } case 'gmail-oauth': case 'yahoo-oauth': return { @@ -509,16 +607,16 @@ export const getRedirectUri = (providerKey, { serverRedirectUri, backendURL, ori }; /** - * Public bounce/complaint webhook URL of a saved SendGrid or Mailgun account. - * Assumes Strapi's default REST prefix `/api`. + * Public delivery webhook URL of a saved SendGrid, Mailgun, Brevo or Amazon + * SES account. Assumes Strapi's default REST prefix `/api`. * - * @param {'sendgrid'|'mailgun'} provider + * @param {'sendgrid'|'mailgun'|'brevo'|'ses'} provider * @param {string|number|null|undefined} accountId - account documentId * @param {{backendURL?: unknown, origin?: string}} env * @returns {string|null} null until the account is saved */ export const getWebhookUrl = (provider, accountId, env = {}) => { - if (!['sendgrid', 'mailgun'].includes(provider)) return null; + if (!['sendgrid', 'mailgun', 'brevo', 'ses'].includes(provider)) return null; if (accountId === null || accountId === undefined || accountId === '') return null; return `${resolveBackendBase(env)}/api/magic-mail/webhooks/${provider}/${encodeURIComponent( String(accountId) diff --git a/admin/src/pages/EmailDesigner/TemplateList.jsx b/admin/src/pages/EmailDesigner/TemplateList.jsx index 517254c..eb0d973 100644 --- a/admin/src/pages/EmailDesigner/TemplateList.jsx +++ b/admin/src/pages/EmailDesigner/TemplateList.jsx @@ -996,6 +996,7 @@ const TemplateList = () => { canTestSend={canTestSend} localTemplates={templates} onChanged={providerTemplates.reload} + providerTemplateList={providerTemplates.overview?.templates} /> {t('templates.coreDesign.label', 'Design')} diff --git a/admin/src/pages/EmailDesigner/providerTemplates/LanguageVersions.jsx b/admin/src/pages/EmailDesigner/providerTemplates/LanguageVersions.jsx new file mode 100644 index 0000000..746a6e6 --- /dev/null +++ b/admin/src/pages/EmailDesigner/providerTemplates/LanguageVersions.jsx @@ -0,0 +1,215 @@ +import { useState } from 'react'; +import { useFetchClient, useNotification } from '@strapi/strapi/admin'; +import { + Box, + Field, + Flex, + IconButton, + SingleSelect, + SingleSelectOption, + TextInput, + Typography, +} from '@strapi/design-system'; +import { Trash } from '@strapi/icons'; +import { useMagicMailIntl } from '../../../hooks/useMagicMailIntl'; +import { canonicalLocaleTag, languageVersionCandidates } from './providerTemplateUtils'; +import { VariableItem, VariableList } from './providerTemplateStyles'; + +/** + * "Language versions" of a provider template: other synced templates of the + * same provider that are sent instead for a locale. Templates are picked + * from a list, never typed as ids. Every change is saved right away (like + * the fallback template). + * + * Read-only roles see the list without controls. A template that is itself + * a language version of another one shows where it belongs instead. + * + * @param {object} props + * @param {{key: string, provider: string, locales?: {locale: string, key: string}[], + * localeVariantOf?: string|null}} props.detail - Provider template detail + * @param {Array<{key: string, name: string, provider: string, locales?: object[], + * localeVariantOf?: string|null}>} props.templates - Synced provider templates + * @param {boolean} props.canManage + * @param {(locales: {locale: string, key: string}[]) => void} props.onSaved + * @returns {import('react').ReactElement} + */ +export const LanguageVersions = ({ detail, templates, canManage, onSaved }) => { + const { t } = useMagicMailIntl(); + const { put } = useFetchClient(); + const { toggleNotification } = useNotification(); + const [locale, setLocale] = useState(''); + const [variantKey, setVariantKey] = useState(''); + const [localeError, setLocaleError] = useState(null); + const [saving, setSaving] = useState(false); + + const entries = detail.locales ?? []; + const nameOf = (key) => (templates ?? []).find((item) => item.key === key)?.name ?? key; + + if (detail.localeVariantOf) { + return ( + + + {t('templates.provider.locales.title', 'Language versions')} + + + {t( + 'templates.provider.locales.isVersionOf', + 'This template is a language version of {name}. Send {name}; Magic Mail picks this version for the matching language.', + { name: nameOf(detail.localeVariantOf) } + )} + + + ); + } + + const candidates = languageVersionCandidates(detail, templates); + + const save = async (next, message) => { + setSaving(true); + try { + const response = await put( + `/magic-mail/provider-templates/${encodeURIComponent(detail.key)}/settings`, + { locales: Object.fromEntries(next.map((entry) => [entry.locale, entry.key])) } + ); + onSaved(response?.data?.data?.locales ?? next); + toggleNotification({ type: 'success', message }); + return true; + } catch (error) { + toggleNotification({ + type: 'danger', + message: + error?.response?.data?.error?.details?.locales?.[0] || + error?.response?.data?.error?.message || + t('templates.provider.locales.failure', 'The language versions could not be saved.'), + }); + return false; + } finally { + setSaving(false); + } + }; + + /** Saves the version as soon as a template is picked (like the fallback). */ + const add = async (key) => { + setVariantKey(key); + const tag = canonicalLocaleTag(locale); + if (!tag) { + setLocaleError( + t( + 'templates.provider.locales.localeInvalid', + 'Enter a language code such as de, fr or pt-BR.' + ) + ); + return; + } + if (entries.some((entry) => entry.locale.toLowerCase() === tag.toLowerCase())) { + setLocaleError( + t('templates.provider.locales.duplicate', 'This language already has a version.') + ); + return; + } + setLocaleError(null); + const saved = await save( + [...entries, { locale: tag, key }], + t('templates.provider.locales.added', 'Language version added.') + ); + if (saved) { + setLocale(''); + setVariantKey(''); + } + }; + + return ( + + + {t('templates.provider.locales.title', 'Language versions')} + + + {t( + 'templates.provider.locales.hint', + 'Send this template and Magic Mail picks the version for the recipient language: the locale passed to send(), else the locale stored on the user. de-AT falls back to de, then to this template. Enter a language and pick its template; it is saved right away.' + )} + + + {entries.length > 0 ? ( + + {entries.map((entry) => ( + + {entry.locale} + + {nameOf(entry.key)} + + {canManage ? ( + + save( + entries.filter((item) => item.locale !== entry.locale), + t('templates.provider.locales.removed', 'Language version removed.') + ) + } + > + + + ) : null} + + ))} + + ) : ( + + {t( + 'templates.provider.locales.none', + 'No language versions. Every recipient gets this template.' + )} + + )} + + {canManage && candidates.length > 0 ? ( + + + + {t('templates.provider.locales.locale', 'Language')} + setLocale(event.target.value)} + /> + + + + + + {t('templates.provider.locales.template', 'Template')} + add(String(value))} + > + {candidates.map((template) => ( + + {template.name} + + ))} + + + + + ) : null} + {canManage && candidates.length === 0 && entries.length === 0 ? ( + + {t( + 'templates.provider.locales.noCandidates', + 'Create the translated template at the provider and sync; it can then be added here.' + )} + + ) : null} + + ); +}; + +export default LanguageVersions; diff --git a/admin/src/pages/EmailDesigner/providerTemplates/ProviderTemplateDialog.jsx b/admin/src/pages/EmailDesigner/providerTemplates/ProviderTemplateDialog.jsx index caea0de..7fabb58 100644 --- a/admin/src/pages/EmailDesigner/providerTemplates/ProviderTemplateDialog.jsx +++ b/admin/src/pages/EmailDesigner/providerTemplates/ProviderTemplateDialog.jsx @@ -28,6 +28,7 @@ import { StyledModalHeader, } from '../templateListStyles'; import { Notice } from './Notice'; +import { LanguageVersions } from './LanguageVersions'; import { conversionWarning, providerName, statusInfo } from './providerTemplateUtils'; import { ConvertedCode, PreviewFrame, VariableList, VariableItem } from './providerTemplateStyles'; @@ -45,7 +46,8 @@ const NO_FALLBACK = '__none__'; * @param {boolean} props.canManage - May set the fallback and copy * @param {boolean} props.canTestSend - May send a test * @param {Array<{templateReferenceId: number, name: string}>} props.localTemplates - * @param {() => void} props.onChanged - Called after the fallback changed + * @param {() => void} props.onChanged - Called after the fallback or the language versions changed + * @param {Array} [props.providerTemplateList] - Synced provider templates (language versions) * @returns {import('react').ReactElement} */ export const ProviderTemplateDialog = ({ @@ -55,6 +57,7 @@ export const ProviderTemplateDialog = ({ canTestSend, localTemplates, onChanged, + providerTemplateList = [], }) => { const { t } = useMagicMailIntl(); const { get, post, put } = useFetchClient(); @@ -398,6 +401,14 @@ export const ProviderTemplateDialog = ({ ))} )} + {detail.provider === 'brevo' ? ( + + {t( + 'templates.provider.detail.brevoParams', + 'Brevo reads your data under params: the template writes params.name, you pass name. Magic Mail does the mapping.' + )} + + ) : null} {notSentInTest.length > 0 ? ( {t( @@ -465,6 +476,16 @@ export const ProviderTemplateDialog = ({ ) : null} + { + setDetail((current) => ({ ...current, locales })); + onChanged?.(); + }} + /> + {canTestSend ? ( - {canManage && detail?.previewHtml ? ( + {canManage && detail?.previewHtml && detail.provider !== 'brevo' ? ( @@ -217,7 +217,7 @@ export const ProviderTemplatesSection = ({ {t( 'templates.provider.description', - 'Read-only templates from your SendGrid and Mailgun accounts.' + 'Read-only templates from your SendGrid, Mailgun, Brevo and Amazon SES accounts.' )}{' '} {lastSynced} diff --git a/admin/src/pages/EmailDesigner/providerTemplates/providerTemplateUtils.js b/admin/src/pages/EmailDesigner/providerTemplates/providerTemplateUtils.js index 35ff675..f964f92 100644 --- a/admin/src/pages/EmailDesigner/providerTemplates/providerTemplateUtils.js +++ b/admin/src/pages/EmailDesigner/providerTemplates/providerTemplateUtils.js @@ -4,7 +4,63 @@ */ /** Display names of the template providers (brand names, not translated). */ -export const PROVIDER_NAMES = Object.freeze({ sendgrid: 'SendGrid', mailgun: 'Mailgun' }); +export const PROVIDER_NAMES = Object.freeze({ + sendgrid: 'SendGrid', + mailgun: 'Mailgun', + brevo: 'Brevo', + ses: 'Amazon SES', +}); + +/** Account providers whose templates Magic Mail syncs (server: providers/index.js). */ +export const TEMPLATE_PROVIDERS = Object.freeze(['sendgrid', 'mailgun', 'brevo', 'ses']); + +/** + * @param {Array<{provider?: string}>} accounts + * @returns {boolean} true when at least one account can have provider templates + */ +export const hasTemplateProviderAccount = (accounts) => + Array.isArray(accounts) && + accounts.some((account) => TEMPLATE_PROVIDERS.includes(account?.provider)); + +const LOCALE_SHAPE = /^[A-Za-z]{2,3}(?:[-_][A-Za-z0-9]{1,8}){0,3}$/; + +/** + * Canonical language tag (same rule as server/src/utils/locale.js), or null. + * + * @param {unknown} value - e.g. 'de', 'pt_br' + * @returns {string|null} e.g. 'de', 'pt-BR' + */ +export const canonicalLocaleTag = (value) => { + if (typeof value !== 'string') return null; + const trimmed = value.trim().replace(/_/g, '-'); + if (!trimmed || trimmed.length > 35 || !LOCALE_SHAPE.test(trimmed)) return null; + try { + return Intl.getCanonicalLocales(trimmed)[0] ?? null; + } catch { + return null; + } +}; + +/** + * Templates that can become a language version of `detail`: same provider, + * not the template itself, not already used for a language, without + * language versions of their own and not a version of another template. + * + * @param {{key: string, provider: string, locales?: {key: string}[]}} detail + * @param {Array<{key: string, provider: string, locales?: object[], localeVariantOf?: string|null}>} templates + * @returns {Array<{key: string, name: string}>} + */ +export const languageVersionCandidates = (detail, templates) => { + const used = new Set((detail?.locales ?? []).map((entry) => entry.key)); + return (templates ?? []).filter( + (template) => + template.provider === detail?.provider && + template.key !== detail?.key && + !used.has(template.key) && + !(template.locales ?? []).length && + (!template.localeVariantOf || template.localeVariantOf === detail?.key) + ); +}; /** * One status mapping for every provider template screen: badge tone, label diff --git a/admin/src/pages/HomePage.jsx b/admin/src/pages/HomePage.jsx index 7e44ef7..b397acc 100644 --- a/admin/src/pages/HomePage.jsx +++ b/admin/src/pages/HomePage.jsx @@ -1,3 +1,4 @@ +import { hasTemplateProviderAccount } from './EmailDesigner/providerTemplates/providerTemplateUtils'; import { useEffect, useRef, useState } from 'react'; import { useFetchClient, useNotification } from '@strapi/strapi/admin'; import { useMagicMailRBAC } from '../hooks/useMagicMailRBAC'; @@ -81,6 +82,8 @@ const PROVIDER_NAMES = { 'yahoo-oauth': 'Yahoo Mail OAuth', sendgrid: 'SendGrid', mailgun: 'Mailgun', + brevo: 'Brevo', + ses: 'Amazon SES', }; const providerName = (value) => PROVIDER_NAMES[value] ?? value; @@ -668,11 +671,7 @@ const HomePage = () => { ) : null} - account?.provider === 'sendgrid' || account?.provider === 'mailgun' - )} - /> + {!loadError && ( diff --git a/admin/src/pages/PluginSettings.jsx b/admin/src/pages/PluginSettings.jsx index e551633..55c2590 100644 --- a/admin/src/pages/PluginSettings.jsx +++ b/admin/src/pages/PluginSettings.jsx @@ -1,3 +1,4 @@ +import { hasTemplateProviderAccount } from './EmailDesigner/providerTemplates/providerTemplateUtils'; import { useState, useEffect, useMemo, useRef } from 'react'; import { Box, @@ -305,8 +306,25 @@ const PluginSettingsContent = () => { const [initialSettings, setInitialSettings] = useState(null); const [settings, setSettings] = useState(SETTINGS_DEFAULTS); const [saving, setSaving] = useState(false); + const [templateAccounts, setTemplateAccounts] = useState(false); const mounted = useRef(true); + // The provider-tracking switch only matters with a SendGrid, Mailgun, Brevo + // or Amazon SES account; without one it stays hidden. + useEffect(() => { + let ignore = false; + get('/magic-mail/accounts') + .then((response) => { + if (!ignore) setTemplateAccounts(hasTemplateProviderAccount(response?.data?.data)); + }) + .catch(() => { + if (!ignore) setTemplateAccounts(false); + }); + return () => { + ignore = true; + }; + }, [get]); + useEffect(() => { mounted.current = true; return () => { @@ -654,6 +672,35 @@ const PluginSettingsContent = () => { /> + {templateAccounts || settings.providerTracking ? ( + + + + {t('settings.providerTracking.label', 'Count provider opens and clicks')} + + + {t( + 'settings.providerTracking.description', + 'Provider templates are rendered by SendGrid, Mailgun, Brevo or Amazon SES, so Magic Mail can not add its pixel or rewrite their links. When this is on, the provider tracks them and its open and click events are counted in Email Analytics. Needs the delivery webhook with open and click events (SES: a configuration set with Open and Click). Brevo tracks at account level.' + )} + + + + handleChange('providerTracking', checked)} + aria-label={t( + 'settings.providerTracking.label', + 'Count provider opens and clicks' + )} + onLabel={t('settings.switch.on', 'Enabled')} + offLabel={t('settings.switch.off', 'Disabled')} + visibleLabels={false} + /> + + + ) : null} diff --git a/admin/src/translations/de.json b/admin/src/translations/de.json index 4b58c02..1d27b9e 100644 --- a/admin/src/translations/de.json +++ b/admin/src/translations/de.json @@ -1023,9 +1023,9 @@ "templates.provider.sync": "Synchronisieren", "templates.provider.empty.syncingTitle": "Ihre Provider-Vorlagen werden gelesen...", "templates.provider.empty.title": "Keine Provider-Vorlagen gefunden", - "templates.provider.empty.description": "Erstellen Sie eine dynamische Vorlage bei SendGrid oder eine Vorlage bei Mailgun und wählen Sie dann Synchronisieren. Magic Mail listet sie hier auf und kann sie mit Ihrem Routing, Failover und Protokoll senden.", + "templates.provider.empty.description": "Erstellen Sie eine Vorlage bei Ihrem Provider (SendGrid, Mailgun, Brevo oder Amazon SES) und wählen Sie dann Synchronisieren. Magic Mail listet sie hier auf und kann sie mit Ihrem Routing, Failover und Protokoll senden.", "templates.provider.open": "{name} öffnen", - "templates.provider.description": "Schreibgeschützte Vorlagen aus Ihren SendGrid- und Mailgun-Konten.", + "templates.provider.description": "Schreibgeschützte Vorlagen aus Ihren SendGrid-, Mailgun-, Brevo- und Amazon-SES-Konten.", "templates.provider.accountError.title": "{account} ({provider}) konnte nicht gelesen werden", "templates.provider.accountError.keep": "Seine Vorlagen behalten den zuletzt synchronisierten Stand.", "templates.provider.accountError.auth": "Der API-Schlüssel wurde abgelehnt oder darf keine Vorlagen lesen.", @@ -1037,7 +1037,7 @@ "templates.coreDesign.savedProvider": "{name} nutzt jetzt \"{template}\".", "templates.coreDesign.failure": "Das Design konnte nicht gespeichert werden.", "templates.coreDesign.title": "Design von {name}", - "templates.coreDesign.hint": "Mit einer Provider-Vorlage erstellt SendGrid oder Mailgun diese E-Mail. Routing, Failover und Protokoll bleiben in Magic Mail.", + "templates.coreDesign.hint": "Mit einer Provider-Vorlage erstellt der Provider diese E-Mail. Routing, Failover und Protokoll bleiben in Magic Mail.", "templates.coreDesign.label": "Design", "templates.coreDesign.designer": "Magic-Mail-Designer (Standard)", "templates.coreDesign.option": "{name} ({provider})", @@ -1047,5 +1047,109 @@ "templates.coreDesign.missingTitle": "Die Vorlage nutzt Variablen, die Magic Mail nicht sendet", "templates.coreDesign.missingBody": "Diese bleiben leer: {names}", "templates.coreDesign.fallback": "Wenn die Provider-Vorlage fehlschlägt, stattdessen die Version aus dem Magic-Mail-Designer senden", - "templates.coreDesign.fallbackHint": "Aus: Die E-Mail schlägt mit einer klaren Fehlermeldung fehl und es wird nichts anderes gesendet." + "templates.coreDesign.fallbackHint": "Aus: Die E-Mail schlägt mit einer klaren Fehlermeldung fehl und es wird nichts anderes gesendet.", + "accountModal.check.afterSave": "Nach dem Speichern können Sie hier die Verbindung prüfen, ohne eine E-Mail zu senden.", + "accountModal.check.button": "Verbindung prüfen", + "accountModal.check.note": "Verwendet die gespeicherten Zugangsdaten. Es wird keine E-Mail gesendet.", + "accountModal.check.okSandbox": "Verbunden. Das AWS-Konto befindet sich in der SES-Sandbox: Es kann nur an verifizierte Adressen senden.", + "accountModal.check.ok": "Verbunden. Die Zugangsdaten funktionieren.", + "accountModal.check.failed": "Die Verbindungsprüfung ist fehlgeschlagen.", + "accountModal.brevo.tokenAfterSave": "Magic Mail erstellt beim Speichern des Kontos ein zufälliges Webhook-Token. Es wird anschließend hier angezeigt.", + "accountModal.brevo.tokenRotated": "Neues Webhook-Token erstellt. Aktualisieren Sie es jetzt in Brevo.", + "accountModal.brevo.tokenFailed": "Das Webhook-Token konnte nicht geladen werden. Melden Sie sich im Admin-Bereich mit einem Konto an, das E-Mail-Konten verwalten darf.", + "accountModal.brevo.token": "Webhook-Token", + "accountModal.brevo.copyToken": "Webhook-Token kopieren", + "accountModal.brevo.tokenCopied": "Webhook-Token kopiert", + "accountModal.brevo.showToken": "Webhook-Token anzeigen", + "accountModal.brevo.rotateToken": "Token ersetzen", + "accountModal.brevo.rotateTitle": "Webhook-Token ersetzen?", + "accountModal.brevo.rotateBody": "Brevo-Webhooks, die noch das alte Token senden, werden abgelehnt, bis Sie das neue Token in Brevo einfügen. Dies kann nicht rückgängig gemacht werden.", + "accountModal.brevo.rotateConfirm": "Token ersetzen", + "accountModal.brevo.title": "Brevo-API-Konfiguration", + "accountModal.brevo.apiKey": "Brevo-API-Schlüssel", + "accountModal.brevo.apiKeyHint": "In Brevo: SMTP & API, API keys, Generate a new API key. Verwenden Sie einen API-Schlüssel, keinen SMTP-Schlüssel. Wenn Brevo unbekannte IP-Adressen blockiert, autorisieren Sie die IP-Adresse dieses Servers.", + "accountModal.brevo.webhookGuideTitle": "Webhook in Brevo einrichten", + "accountModal.brevo.webhookStep1": "In Brevo: Transactional, Settings, Webhooks, Add a new webhook. Fügen Sie die Webhook-URL ein.", + "accountModal.brevo.webhookStep2": "Wählen Sie Delivered, Hard bounce, Soft bounce, Invalid email, Deferred, Blocked, Spam und Unsubscribed. Fügen Sie Opened und Clicked nur hinzu, wenn Magic Mail Öffnungen und Klicks von Brevo-Vorlagen zählen soll.", + "accountModal.brevo.webhookStep3": "Wählen Sie die Token-Authentifizierung (Bearer) und fügen Sie das Webhook-Token ein. Anfragen ohne dieses Token werden abgelehnt.", + "accountModal.brevo.resources": "Brevo-Ressourcen", + "accountModal.brevo.resourcesBody": "Die Absenderadresse muss in Brevo ein verifizierter Absender sein oder zu einer authentifizierten Domain gehören. Brevo-Vorlagen verwenden {code1}: Magic Mail sendet Ihre Daten unter params, daher wird aus dem Schlüssel name {code2}. Öffnungs- und Klick-Tracking ist in Brevo eine Kontoeinstellung.", + "accountModal.ses.securityTitle": "Sicherheit der Zugangsdaten", + "accountModal.ses.securityBody": "Der geheime Zugriffsschlüssel wird vor dem Speichern mit AES-256-GCM verschlüsselt. Anfragen werden signiert (AWS Signature Version 4); der Schlüssel selbst wird nie übertragen.", + "accountModal.ses.title": "Amazon-SES-Konfiguration", + "accountModal.ses.regionInvalid": "Geben Sie einen AWS-Regionscode wie eu-west-1 ein. Regionen in China werden nicht unterstützt.", + "accountModal.ses.regionHint": "Die Region, in der Ihre Absenderidentität verifiziert ist, zum Beispiel eu-west-1 oder us-east-1.", + "accountModal.ses.region": "AWS-Region", + "accountModal.ses.source": "Zugangsdaten", + "accountModal.ses.sourceKeys": "Zugriffsschlüssel eines IAM-Benutzers", + "accountModal.ses.sourceEnvironment": "Umgebungsvariablen des Servers (zum Beispiel eine IAM-Rolle)", + "accountModal.ses.environmentTitle": "Zugangsdaten vom Server", + "accountModal.ses.environmentBody": "Magic Mail liest bei jeder Anfrage {a}, {b} und, für temporäre Rollen-Zugangsdaten, {c} aus der Umgebung des Strapi-Prozesses. Verwenden Sie dies, wenn Ihre Plattform Rollen-Zugangsdaten als Umgebungsvariablen bereitstellt. Magic Mail fragt nie die EC2-Instanz-Metadaten oder die ECS-Endpunkte für Zugangsdaten ab.", + "accountModal.ses.accessKeyIdInvalid": "Eine Zugriffsschlüssel-ID besteht aus 16 bis 128 Buchstaben und Ziffern, zum Beispiel AKIA gefolgt von 16 Zeichen.", + "accountModal.ses.accessKeyId": "Zugriffsschlüssel-ID", + "accountModal.ses.secretAccessKey": "Geheimer Zugriffsschlüssel", + "accountModal.ses.secretHint": "Erstellen Sie den Schlüssel in IAM für einen Benutzer, der nur E-Mails senden darf: ses:SendEmail, ses:GetAccount, ses:ListEmailTemplates und ses:GetEmailTemplate.", + "accountModal.ses.configurationSetInvalid": "Verwenden Sie bis zu 64 Buchstaben, Ziffern, Bindestriche und Unterstriche.", + "accountModal.ses.configurationSetHint": "Optional. Erforderlich für Bounce-, Beschwerde- und Zustellereignisse sowie für das Öffnungs- und Klick-Tracking von SES-Vorlagen.", + "accountModal.ses.configurationSet": "Konfigurationssatz", + "accountModal.ses.topicArnPartition": "Das Thema muss sich in derselben AWS-Partition wie die Region befinden.", + "accountModal.ses.topicArnInvalid": "Geben Sie den ARN eines Standard-SNS-Themas ein, zum Beispiel arn:aws:sns:eu-west-1:123456789012:ses-events.", + "accountModal.ses.topicArnHint": "Nur Benachrichtigungen von diesem SNS-Thema werden akzeptiert. Ohne diese Angabe lehnt der Webhook jede Anfrage ab.", + "accountModal.ses.topicArn": "SNS-Themen-ARN", + "accountModal.ses.guideTitle": "Ereignisse in AWS einrichten", + "accountModal.ses.step1": "Verifizieren Sie die Absenderadresse oder ihre Domain in dieser Region. In der SES-Sandbox muss außerdem jeder Empfänger verifiziert sein.", + "accountModal.ses.step2": "Erstellen Sie ein Standard-SNS-Thema in derselben Region und erlauben Sie ses.amazonaws.com, darin zu veröffentlichen.", + "accountModal.ses.step3": "Fügen Sie im Konfigurationssatz ein SNS-Ereignisziel für Delivery, Bounce, Complaint, Reject, Rendering failure und Delivery delay hinzu (sowie Open und Click, um diese zu zählen).", + "accountModal.ses.step4": "Fügen Sie den Themen-ARN oben ein und speichern Sie. Erstellen Sie dann ein HTTPS-Abonnement für die Webhook-URL; Magic Mail bestätigt es automatisch.", + "accountModal.ses.resources": "Amazon-SES-Ressourcen", + "accountModal.ses.resourcesBody": "SES-Vorlagen verwenden dieselben {code1}-Variablen wie Magic Mail, daher bleiben Ihre Datenschlüssel gleich. Testsendungen an success@simulator.amazonses.com funktionieren in der Sandbox.", + "accountModal.providers.brevoTagline": "Transaktions-API · Vorlagen mit params · Webhooks", + "accountModal.providers.sesTagline": "AWS-Regionen · SES-Vorlagen · SNS-Ereignisse", + "templates.provider.locales.title": "Sprachversionen", + "templates.provider.locales.isVersionOf": "Diese Vorlage ist eine Sprachversion von {name}. Senden Sie {name}; Magic Mail wählt diese Version für die passende Sprache.", + "templates.provider.locales.failure": "Die Sprachversionen konnten nicht gespeichert werden.", + "templates.provider.locales.localeInvalid": "Geben Sie einen Sprachcode wie de, fr oder pt-BR ein.", + "templates.provider.locales.duplicate": "Für diese Sprache gibt es bereits eine Version.", + "templates.provider.locales.added": "Sprachversion hinzugefügt.", + "templates.provider.locales.hint": "Senden Sie diese Vorlage, und Magic Mail wählt die Version für die Sprache des Empfängers: die an send() übergebene Locale, sonst die beim Benutzer gespeicherte Locale. de-AT fällt auf de zurück, dann auf diese Vorlage. Geben Sie eine Sprache ein und wählen Sie die Vorlage dazu; sie wird sofort gespeichert.", + "templates.provider.locales.remove": "Version {locale} entfernen", + "templates.provider.locales.removed": "Sprachversion entfernt.", + "templates.provider.locales.none": "Keine Sprachversionen. Alle Empfänger erhalten diese Vorlage.", + "templates.provider.locales.locale": "Sprache", + "templates.provider.locales.template": "Vorlage", + "templates.provider.locales.pick": "Vorlage wählen", + "templates.provider.locales.noCandidates": "Erstellen Sie die übersetzte Vorlage beim Provider und synchronisieren Sie; danach können Sie sie hier hinzufügen.", + "templates.provider.detail.brevoParams": "Brevo liest Ihre Daten unter params: Die Vorlage schreibt params.name, Sie übergeben name. Magic Mail übernimmt die Zuordnung.", + "settings.providerTracking.label": "Öffnungen und Klicks des Providers zählen", + "settings.providerTracking.description": "Provider-Vorlagen werden von SendGrid, Mailgun, Brevo oder Amazon SES erstellt, daher kann Magic Mail weder sein Pixel einfügen noch ihre Links umschreiben. Wenn diese Option aktiv ist, erfasst der Provider Öffnungen und Klicks, und seine Ereignisse werden in der E-Mail-Analyse gezählt. Erfordert den Zustell-Webhook mit Öffnungs- und Klickereignissen (SES: ein Konfigurationssatz mit Open und Click). Brevo erfasst sie auf Kontoebene.", + "accounts.test.hint.brevoInvalidKey": "Brevo hat den API-Schlüssel abgelehnt. Erstellen Sie einen API-Schlüssel unter SMTP & API > API keys (keinen SMTP-Schlüssel) und fügen Sie ihn vollständig ein.", + "accounts.test.hint.brevoIpNotAuthorized": "Brevo hat die Anfrage blockiert, weil die IP-Adresse des Servers nicht autorisiert ist. Fügen Sie die IP-Adresse dieses Strapi-Servers in Brevo unter Security > Authorised IPs hinzu oder deaktivieren Sie die Blockierung unbekannter IP-Adressen.", + "accounts.test.hint.brevoForbidden": "Brevo hat die Anfrage verweigert. Prüfen Sie, ob der API-Schlüssel Transaktions-E-Mails senden darf und das Brevo-Konto vollständig aktiviert ist.", + "accounts.test.hint.brevoAccountUnderValidation": "Das Brevo-Konto wird noch geprüft. Der Versand funktioniert, sobald Brevo das Konto aktiviert hat.", + "accounts.test.hint.brevoSenderNotVerified": "Brevo hat den Absender abgelehnt. Fügen Sie die Absenderadresse in Brevo unter Senders, Domains & Dedicated IPs hinzu und verifizieren Sie sie, oder authentifizieren Sie ihre Domain.", + "accounts.test.hint.brevoNoCredits": "Das Brevo-Konto hat keine E-Mail-Credits mehr. Prüfen Sie den Tarif und die Credits in Brevo.", + "accounts.test.hint.brevoTemplateNotFound": "Brevo kennt diese Vorlage nicht oder sie ist inaktiv. Aktivieren Sie sie in Brevo und synchronisieren Sie die Provider-Vorlagen erneut.", + "accounts.test.hint.brevoTooLarge": "Brevo hat die Nachricht als zu groß abgelehnt. Brevo akzeptiert höchstens 20 MB einschließlich Anhängen.", + "accounts.test.hint.brevoRateLimited": "Brevo begrenzt die Anfragen. Warten Sie einen Moment und versuchen Sie es erneut; die Warteschlange wiederholt den Versand automatisch.", + "accounts.test.hint.brevoUnavailable": "Brevo ist gerade nicht erreichbar. Versuchen Sie es später erneut.", + "accounts.test.hint.sesInvalidCredentials": "Amazon SES kennt diesen Zugriffsschlüssel nicht. Prüfen Sie die Zugriffsschlüssel-ID und ob der Schlüssel in IAM aktiv ist.", + "accounts.test.hint.sesSignatureMismatch": "Der geheime Zugriffsschlüssel gehört nicht zu dieser Zugriffsschlüssel-ID. Geben Sie den geheimen Zugriffsschlüssel erneut ein.", + "accounts.test.hint.sesClockSkew": "Die Serveruhr weicht um mehr als 5 Minuten von der AWS-Zeit ab. Synchronisieren Sie die Serveruhr (NTP).", + "accounts.test.hint.sesAccessDenied": "Dem IAM-Benutzer oder der IAM-Rolle fehlt eine Berechtigung. Erlauben Sie ses:SendEmail, ses:GetAccount, ses:ListEmailTemplates und ses:GetEmailTemplate in dieser Region.", + "accounts.test.hint.sesExpiredToken": "Die temporären AWS-Zugangsdaten (AWS_SESSION_TOKEN) sind abgelaufen. Erneuern Sie die Rollen-Zugangsdaten des Servers.", + "accounts.test.hint.sesCredentialsMissing": "Es sind keine AWS-Zugangsdaten verfügbar. Geben Sie einen Zugriffsschlüssel ein oder setzen Sie AWS_ACCESS_KEY_ID und AWS_SECRET_ACCESS_KEY auf dem Server.", + "accounts.test.hint.sesUnverifiedIdentity": "Amazon SES hat eine Adresse abgelehnt, die in dieser Region nicht verifiziert ist. In der SES-Sandbox müssen der Absender und jeder Empfänger verifiziert sein; außerhalb der Sandbox verifizieren Sie die Absenderadresse oder ihre Domain in der Region dieses Kontos.", + "accounts.test.hint.sesMessageRejected": "Amazon SES hat die Nachricht abgelehnt, zum Beispiel wegen ihres Inhalts oder eines nicht akzeptierten Anhangtyps.", + "accounts.test.hint.sesSendingPaused": "Der Versand ist für dieses AWS-Konto oder diesen Konfigurationssatz pausiert. Aktivieren Sie den Versand in der Amazon-SES-Konsole wieder.", + "accounts.test.hint.sesAccountSuspended": "AWS hat die Versandmöglichkeit dieses Kontos eingeschränkt. Wenden Sie sich an den AWS Support.", + "accounts.test.hint.sesMailFromNotVerified": "Die benutzerdefinierte MAIL-FROM-Domain des Absenders ist nicht verifiziert. Prüfen Sie ihre MX- und SPF-Einträge in der Amazon-SES-Konsole.", + "accounts.test.hint.sesLimitExceeded": "Ein Limit von Amazon SES wurde überschritten, zum Beispiel das tägliche Versandkontingent. Prüfen Sie die Kontingente in der Amazon-SES-Konsole.", + "accounts.test.hint.sesNotFound": "Amazon SES hat die Vorlage oder den Konfigurationssatz in dieser Region nicht gefunden. Prüfen Sie die Namen und die Region.", + "accounts.test.hint.sesMessageTooLarge": "Amazon SES hat die Nachricht als zu groß abgelehnt (40 MB einschließlich Anhängen).", + "accounts.test.hint.sesSandbox": "Das AWS-Konto befindet sich in der SES-Sandbox: Es kann nur an verifizierte Adressen und den Mailbox-Simulator senden. Beantragen Sie Produktionszugriff in der Amazon-SES-Konsole.", + "accounts.test.hint.sesSendingDisabled": "Der E-Mail-Versand ist für dieses AWS-Konto in dieser Region deaktiviert. Prüfen Sie den Kontostatus in der Amazon-SES-Konsole.", + "accounts.test.hint.credentials": "Die gespeicherten Zugangsdaten können nicht gelesen werden. Öffnen Sie das Konto, geben Sie die Zugangsdaten erneut ein und speichern Sie.", + "accounts.test.hint.auth": "Der Anbieter hat die Zugangsdaten abgelehnt. Prüfen Sie den Schlüssel und seine Berechtigungen.", + "accounts.test.hint.unavailable": "Der Anbieter war nicht erreichbar. Prüfen Sie die Netzwerkverbindung des Servers und versuchen Sie es erneut.", + "accountModal.providers.beta": "Beta" } diff --git a/admin/src/translations/en.json b/admin/src/translations/en.json index 1ca4bca..bc6dd88 100644 --- a/admin/src/translations/en.json +++ b/admin/src/translations/en.json @@ -1023,9 +1023,9 @@ "templates.provider.sync": "Sync", "templates.provider.empty.syncingTitle": "Reading your provider templates...", "templates.provider.empty.title": "No provider templates found", - "templates.provider.empty.description": "Create a dynamic template at SendGrid or a template at Mailgun, then select Sync. Magic Mail lists it here and can send it with your routing, failover and logs.", + "templates.provider.empty.description": "Create a template at your provider (SendGrid, Mailgun, Brevo or Amazon SES), then select Sync. Magic Mail lists it here and can send it with your routing, failover and logs.", "templates.provider.open": "Open {name}", - "templates.provider.description": "Read-only templates from your SendGrid and Mailgun accounts.", + "templates.provider.description": "Read-only templates from your SendGrid, Mailgun, Brevo and Amazon SES accounts.", "templates.provider.accountError.title": "{account} ({provider}) could not be read", "templates.provider.accountError.keep": "Its templates keep their last synced state.", "templates.provider.accountError.auth": "The API key was rejected or may not read templates.", @@ -1037,7 +1037,7 @@ "templates.coreDesign.savedProvider": "{name} now uses \"{template}\".", "templates.coreDesign.failure": "The design could not be saved.", "templates.coreDesign.title": "Design of {name}", - "templates.coreDesign.hint": "With a provider template, SendGrid or Mailgun renders this email. Routing, failover and logs stay in Magic Mail.", + "templates.coreDesign.hint": "With a provider template, the provider renders this email. Routing, failover and logs stay in Magic Mail.", "templates.coreDesign.label": "Design", "templates.coreDesign.designer": "Magic Mail designer (default)", "templates.coreDesign.option": "{name} ({provider})", @@ -1047,5 +1047,109 @@ "templates.coreDesign.missingTitle": "The template uses variables Magic Mail does not send", "templates.coreDesign.missingBody": "These render empty: {names}", "templates.coreDesign.fallback": "If the provider template fails, send the Magic Mail designer version instead", - "templates.coreDesign.fallbackHint": "Off: the email fails with a clear error and nothing else is sent." + "templates.coreDesign.fallbackHint": "Off: the email fails with a clear error and nothing else is sent.", + "accountModal.check.afterSave": "After saving, you can check the connection here without sending an email.", + "accountModal.check.button": "Check connection", + "accountModal.check.note": "Uses the saved credentials. No email is sent.", + "accountModal.check.okSandbox": "Connected. The AWS account is in the SES sandbox: it can only send to verified addresses.", + "accountModal.check.ok": "Connected. The credentials work.", + "accountModal.check.failed": "The connection check failed.", + "accountModal.brevo.tokenAfterSave": "Magic Mail creates a random webhook token when the account is saved. It is shown here afterwards.", + "accountModal.brevo.tokenRotated": "New webhook token created. Update it in Brevo now.", + "accountModal.brevo.tokenFailed": "The webhook token could not be loaded. Sign in to the admin panel with an account that may manage email accounts.", + "accountModal.brevo.token": "Webhook token", + "accountModal.brevo.copyToken": "Copy webhook token", + "accountModal.brevo.tokenCopied": "Webhook token copied", + "accountModal.brevo.showToken": "Show webhook token", + "accountModal.brevo.rotateToken": "Replace token", + "accountModal.brevo.rotateTitle": "Replace the webhook token?", + "accountModal.brevo.rotateBody": "Brevo webhooks that still send the old token are rejected until you paste the new token in Brevo. This can not be undone.", + "accountModal.brevo.rotateConfirm": "Replace token", + "accountModal.brevo.title": "Brevo API configuration", + "accountModal.brevo.apiKey": "Brevo API key", + "accountModal.brevo.apiKeyHint": "In Brevo: SMTP & API, API keys, Generate a new API key. Use an API key, not an SMTP key. If Brevo blocks unknown IP addresses, authorise the IP address of this server.", + "accountModal.brevo.webhookGuideTitle": "Set up the webhook in Brevo", + "accountModal.brevo.webhookStep1": "In Brevo: Transactional, Settings, Webhooks, Add a new webhook. Paste the webhook URL.", + "accountModal.brevo.webhookStep2": "Select Delivered, Hard bounce, Soft bounce, Invalid email, Deferred, Blocked, Spam and Unsubscribed. Add Opened and Clicked only when Magic Mail should count opens and clicks of Brevo templates.", + "accountModal.brevo.webhookStep3": "Choose token authentication (Bearer) and paste the webhook token. Requests without this token are rejected.", + "accountModal.brevo.resources": "Brevo resources", + "accountModal.brevo.resourcesBody": "The From address must be a verified sender or belong to an authenticated domain in Brevo. Brevo templates use {code1}: Magic Mail sends your data under params, so the key name becomes {code2}. Open and click tracking is an account setting in Brevo.", + "accountModal.ses.securityTitle": "Credential security", + "accountModal.ses.securityBody": "The secret access key is encrypted with AES-256-GCM before it is stored. Requests are signed (AWS Signature Version 4); the key itself is never sent.", + "accountModal.ses.title": "Amazon SES configuration", + "accountModal.ses.regionInvalid": "Enter an AWS region code such as eu-west-1. China regions are not supported.", + "accountModal.ses.regionHint": "The region where your sender identity is verified, for example eu-west-1 or us-east-1.", + "accountModal.ses.region": "AWS region", + "accountModal.ses.source": "Credentials", + "accountModal.ses.sourceKeys": "Access key of an IAM user", + "accountModal.ses.sourceEnvironment": "Server environment variables (for example an IAM role)", + "accountModal.ses.environmentTitle": "Credentials from the server", + "accountModal.ses.environmentBody": "Magic Mail reads {a}, {b} and, for temporary role credentials, {c} from the environment of the Strapi process at every request. Use this when your platform injects role credentials as environment variables. Magic Mail never queries the EC2 instance metadata or ECS credential endpoints.", + "accountModal.ses.accessKeyIdInvalid": "An access key ID has 16 to 128 letters and digits, for example AKIA followed by 16 characters.", + "accountModal.ses.accessKeyId": "Access key ID", + "accountModal.ses.secretAccessKey": "Secret access key", + "accountModal.ses.secretHint": "Create the key in IAM for a user that may only send email: ses:SendEmail, ses:GetAccount, ses:ListEmailTemplates and ses:GetEmailTemplate.", + "accountModal.ses.configurationSetInvalid": "Use up to 64 letters, digits, hyphens and underscores.", + "accountModal.ses.configurationSetHint": "Optional. Needed for bounce, complaint and delivery events and for open and click tracking of SES templates.", + "accountModal.ses.configurationSet": "Configuration set", + "accountModal.ses.topicArnPartition": "The topic must be in the same AWS partition as the region.", + "accountModal.ses.topicArnInvalid": "Enter a standard SNS topic ARN such as arn:aws:sns:eu-west-1:123456789012:ses-events.", + "accountModal.ses.topicArnHint": "Only notifications from this SNS topic are accepted. Without it, the webhook rejects every request.", + "accountModal.ses.topicArn": "SNS topic ARN", + "accountModal.ses.guideTitle": "Set up events in AWS", + "accountModal.ses.step1": "Verify the From address or its domain in this region. In the SES sandbox, every recipient must be verified too.", + "accountModal.ses.step2": "Create a standard SNS topic in the same region and allow ses.amazonaws.com to publish to it.", + "accountModal.ses.step3": "In the configuration set, add an SNS event destination for Delivery, Bounce, Complaint, Reject, Rendering failure and Delivery delay (plus Open and Click to count them).", + "accountModal.ses.step4": "Paste the topic ARN above and save. Then create an HTTPS subscription for the webhook URL; Magic Mail confirms it automatically.", + "accountModal.ses.resources": "Amazon SES resources", + "accountModal.ses.resourcesBody": "SES templates use the same {code1} variables as Magic Mail, so your data keys stay the same. Test sends to success@simulator.amazonses.com work in the sandbox.", + "accountModal.providers.brevoTagline": "Transactional API · templates with params · webhooks", + "accountModal.providers.sesTagline": "AWS regions · SES templates · SNS events", + "templates.provider.locales.title": "Language versions", + "templates.provider.locales.isVersionOf": "This template is a language version of {name}. Send {name}; Magic Mail picks this version for the matching language.", + "templates.provider.locales.failure": "The language versions could not be saved.", + "templates.provider.locales.localeInvalid": "Enter a language code such as de, fr or pt-BR.", + "templates.provider.locales.duplicate": "This language already has a version.", + "templates.provider.locales.added": "Language version added.", + "templates.provider.locales.hint": "Send this template and Magic Mail picks the version for the recipient language: the locale passed to send(), else the locale stored on the user. de-AT falls back to de, then to this template. Enter a language and pick its template; it is saved right away.", + "templates.provider.locales.remove": "Remove the {locale} version", + "templates.provider.locales.removed": "Language version removed.", + "templates.provider.locales.none": "No language versions. Every recipient gets this template.", + "templates.provider.locales.locale": "Language", + "templates.provider.locales.template": "Template", + "templates.provider.locales.pick": "Choose a template", + "templates.provider.locales.noCandidates": "Create the translated template at the provider and sync; it can then be added here.", + "templates.provider.detail.brevoParams": "Brevo reads your data under params: the template writes params.name, you pass name. Magic Mail does the mapping.", + "settings.providerTracking.label": "Count provider opens and clicks", + "settings.providerTracking.description": "Provider templates are rendered by SendGrid, Mailgun, Brevo or Amazon SES, so Magic Mail can not add its pixel or rewrite their links. When this is on, the provider tracks them and its open and click events are counted in Email Analytics. Needs the delivery webhook with open and click events (SES: a configuration set with Open and Click). Brevo tracks at account level.", + "accounts.test.hint.brevoInvalidKey": "Brevo rejected the API key. Create an API key under SMTP & API > API keys (not an SMTP key) and paste it completely.", + "accounts.test.hint.brevoIpNotAuthorized": "Brevo blocked the request because the server IP address is not authorised. Add the IP address of this Strapi server under Security > Authorised IPs in Brevo, or turn off blocking of unknown IP addresses.", + "accounts.test.hint.brevoForbidden": "Brevo refused the request. Check that the API key may send transactional email and that the Brevo account is fully activated.", + "accounts.test.hint.brevoAccountUnderValidation": "The Brevo account is still being validated. Sending works once Brevo has activated the account.", + "accounts.test.hint.brevoSenderNotVerified": "Brevo rejected the sender. Add and verify the From address under Senders, Domains & Dedicated IPs in Brevo, or authenticate its domain.", + "accounts.test.hint.brevoNoCredits": "The Brevo account has no email credits left. Check the plan and credits in Brevo.", + "accounts.test.hint.brevoTemplateNotFound": "Brevo does not know this template or it is inactive. Activate it in Brevo and sync the provider templates again.", + "accounts.test.hint.brevoTooLarge": "Brevo rejected the message as too large. Brevo accepts at most 20 MB including attachments.", + "accounts.test.hint.brevoRateLimited": "Brevo is rate limiting requests. Wait a moment and try again; the queue retries automatically.", + "accounts.test.hint.brevoUnavailable": "Brevo is not reachable right now. Try again later.", + "accounts.test.hint.sesInvalidCredentials": "Amazon SES does not know this access key. Check the access key ID and that the key is active in IAM.", + "accounts.test.hint.sesSignatureMismatch": "The secret access key does not belong to this access key ID. Enter the secret access key again.", + "accounts.test.hint.sesClockSkew": "The server clock differs from AWS time by more than 5 minutes. Synchronise the server clock (NTP).", + "accounts.test.hint.sesAccessDenied": "The IAM user or role is missing a permission. Allow ses:SendEmail, ses:GetAccount, ses:ListEmailTemplates and ses:GetEmailTemplate in this region.", + "accounts.test.hint.sesExpiredToken": "The temporary AWS credentials (AWS_SESSION_TOKEN) have expired. Renew the role credentials of the server.", + "accounts.test.hint.sesCredentialsMissing": "No AWS credentials are available. Enter an access key, or set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY on the server.", + "accounts.test.hint.sesUnverifiedIdentity": "Amazon SES rejected an address that is not verified in this region. In the SES sandbox the sender and every recipient must be verified; outside the sandbox, verify the From address or its domain in the region of this account.", + "accounts.test.hint.sesMessageRejected": "Amazon SES rejected the message, for example because of its content or an attachment type it does not accept.", + "accounts.test.hint.sesSendingPaused": "Sending is paused for this AWS account or configuration set. Re-enable sending in the Amazon SES console.", + "accounts.test.hint.sesAccountSuspended": "AWS has restricted this account's ability to send email. Contact AWS Support.", + "accounts.test.hint.sesMailFromNotVerified": "The custom MAIL FROM domain of the sender is not verified. Check its MX and SPF records in the Amazon SES console.", + "accounts.test.hint.sesLimitExceeded": "An Amazon SES limit was exceeded, for example the daily sending quota. Check the quotas in the Amazon SES console.", + "accounts.test.hint.sesNotFound": "Amazon SES did not find the template or the configuration set in this region. Check the names and the region.", + "accounts.test.hint.sesMessageTooLarge": "Amazon SES rejected the message as too large (40 MB including attachments).", + "accounts.test.hint.sesSandbox": "The AWS account is in the SES sandbox: it can only send to verified addresses and the mailbox simulator. Request production access in the Amazon SES console.", + "accounts.test.hint.sesSendingDisabled": "Email sending is disabled for this AWS account in this region. Check the account status in the Amazon SES console.", + "accounts.test.hint.credentials": "The stored credentials can not be read. Open the account, enter the credentials again and save.", + "accounts.test.hint.auth": "The provider rejected the credentials. Check the key and its permissions.", + "accounts.test.hint.unavailable": "The provider could not be reached. Check the network connection of the server and try again.", + "accountModal.providers.beta": "Beta" } diff --git a/admin/src/translations/es.json b/admin/src/translations/es.json index c4a4f3b..dba8de9 100644 --- a/admin/src/translations/es.json +++ b/admin/src/translations/es.json @@ -1023,9 +1023,9 @@ "templates.provider.sync": "Sincronizar", "templates.provider.empty.syncingTitle": "Leyendo sus plantillas del proveedor...", "templates.provider.empty.title": "No se encontraron plantillas del proveedor", - "templates.provider.empty.description": "Cree una plantilla dinámica en SendGrid o una plantilla en Mailgun y, a continuación, seleccione Sincronizar. Magic Mail la muestra aquí y puede enviarla con su enrutamiento, conmutación por error y registros.", + "templates.provider.empty.description": "Cree una plantilla en su proveedor (SendGrid, Mailgun, Brevo o Amazon SES) y, a continuación, seleccione Sincronizar. Magic Mail la muestra aquí y puede enviarla con su enrutamiento, conmutación por error y registros.", "templates.provider.open": "Abrir {name}", - "templates.provider.description": "Plantillas de solo lectura de sus cuentas de SendGrid y Mailgun.", + "templates.provider.description": "Plantillas de solo lectura de sus cuentas de SendGrid, Mailgun, Brevo y Amazon SES.", "templates.provider.accountError.title": "No se pudo leer {account} ({provider})", "templates.provider.accountError.keep": "Sus plantillas conservan el último estado sincronizado.", "templates.provider.accountError.auth": "La clave de API se rechazó o no tiene permiso para leer plantillas.", @@ -1037,7 +1037,7 @@ "templates.coreDesign.savedProvider": "{name} ahora usa \"{template}\".", "templates.coreDesign.failure": "No se pudo guardar el diseño.", "templates.coreDesign.title": "Diseño de {name}", - "templates.coreDesign.hint": "Con una plantilla del proveedor, SendGrid o Mailgun genera este correo. El enrutamiento, la conmutación por error y los registros permanecen en Magic Mail.", + "templates.coreDesign.hint": "Con una plantilla del proveedor, el proveedor genera este correo. El enrutamiento, la conmutación por error y los registros permanecen en Magic Mail.", "templates.coreDesign.label": "Diseño", "templates.coreDesign.designer": "Diseñador de Magic Mail (predeterminado)", "templates.coreDesign.option": "{name} ({provider})", @@ -1047,5 +1047,109 @@ "templates.coreDesign.missingTitle": "La plantilla usa variables que Magic Mail no envía", "templates.coreDesign.missingBody": "Estas quedan vacías: {names}", "templates.coreDesign.fallback": "Si la plantilla del proveedor falla, enviar en su lugar la versión del diseñador de Magic Mail", - "templates.coreDesign.fallbackHint": "Desactivado: el correo falla con un error claro y no se envía nada más." + "templates.coreDesign.fallbackHint": "Desactivado: el correo falla con un error claro y no se envía nada más.", + "accountModal.check.afterSave": "Después de guardar, puede comprobar aquí la conexión sin enviar ningún correo.", + "accountModal.check.button": "Comprobar conexión", + "accountModal.check.note": "Usa las credenciales guardadas. No se envía ningún correo.", + "accountModal.check.okSandbox": "Conectado. La cuenta de AWS está en el sandbox de SES: solo puede enviar a direcciones verificadas.", + "accountModal.check.ok": "Conectado. Las credenciales funcionan.", + "accountModal.check.failed": "La comprobación de la conexión ha fallado.", + "accountModal.brevo.tokenAfterSave": "Magic Mail crea un token de webhook aleatorio al guardar la cuenta. Después se muestra aquí.", + "accountModal.brevo.tokenRotated": "Nuevo token de webhook creado. Actualícelo ahora en Brevo.", + "accountModal.brevo.tokenFailed": "No se pudo cargar el token de webhook. Inicie sesión en el panel de administración con una cuenta que pueda gestionar cuentas de correo.", + "accountModal.brevo.token": "Token de webhook", + "accountModal.brevo.copyToken": "Copiar token de webhook", + "accountModal.brevo.tokenCopied": "Token de webhook copiado", + "accountModal.brevo.showToken": "Mostrar token de webhook", + "accountModal.brevo.rotateToken": "Sustituir token", + "accountModal.brevo.rotateTitle": "¿Sustituir el token de webhook?", + "accountModal.brevo.rotateBody": "Los webhooks de Brevo que aún envíen el token antiguo se rechazan hasta que pegue el nuevo token en Brevo. Esta acción no se puede deshacer.", + "accountModal.brevo.rotateConfirm": "Sustituir token", + "accountModal.brevo.title": "Configuración de la API de Brevo", + "accountModal.brevo.apiKey": "Clave de API de Brevo", + "accountModal.brevo.apiKeyHint": "En Brevo: SMTP & API, API keys, Generate a new API key. Use una clave de API, no una clave SMTP. Si Brevo bloquea las direcciones IP desconocidas, autorice la dirección IP de este servidor.", + "accountModal.brevo.webhookGuideTitle": "Configurar el webhook en Brevo", + "accountModal.brevo.webhookStep1": "En Brevo: Transactional, Settings, Webhooks, Add a new webhook. Pegue la URL del webhook.", + "accountModal.brevo.webhookStep2": "Seleccione Delivered, Hard bounce, Soft bounce, Invalid email, Deferred, Blocked, Spam y Unsubscribed. Añada Opened y Clicked solo si Magic Mail debe contar las aperturas y los clics de las plantillas de Brevo.", + "accountModal.brevo.webhookStep3": "Elija la autenticación por token (Bearer) y pegue el token de webhook. Las solicitudes sin este token se rechazan.", + "accountModal.brevo.resources": "Recursos de Brevo", + "accountModal.brevo.resourcesBody": "La dirección del remitente debe ser un remitente verificado o pertenecer a un dominio autenticado en Brevo. Las plantillas de Brevo usan {code1}: Magic Mail envía sus datos bajo params, por lo que la clave name pasa a ser {code2}. El seguimiento de aperturas y clics es un ajuste de la cuenta en Brevo.", + "accountModal.ses.securityTitle": "Seguridad de las credenciales", + "accountModal.ses.securityBody": "La clave de acceso secreta se cifra con AES-256-GCM antes de guardarse. Las solicitudes se firman (AWS Signature Version 4); la clave en sí nunca se envía.", + "accountModal.ses.title": "Configuración de Amazon SES", + "accountModal.ses.regionInvalid": "Introduzca un código de región de AWS como eu-west-1. Las regiones de China no son compatibles.", + "accountModal.ses.regionHint": "La región en la que está verificada su identidad de remitente, por ejemplo eu-west-1 o us-east-1.", + "accountModal.ses.region": "Región de AWS", + "accountModal.ses.source": "Credenciales", + "accountModal.ses.sourceKeys": "Clave de acceso de un usuario de IAM", + "accountModal.ses.sourceEnvironment": "Variables de entorno del servidor (por ejemplo, un rol de IAM)", + "accountModal.ses.environmentTitle": "Credenciales del servidor", + "accountModal.ses.environmentBody": "En cada solicitud, Magic Mail lee {a}, {b} y, para credenciales temporales de rol, {c} del entorno del proceso de Strapi. Use esta opción cuando su plataforma inyecte las credenciales del rol como variables de entorno. Magic Mail nunca consulta los metadatos de instancia de EC2 ni los endpoints de credenciales de ECS.", + "accountModal.ses.accessKeyIdInvalid": "Un ID de clave de acceso tiene entre 16 y 128 letras y dígitos, por ejemplo AKIA seguido de 16 caracteres.", + "accountModal.ses.accessKeyId": "ID de clave de acceso", + "accountModal.ses.secretAccessKey": "Clave de acceso secreta", + "accountModal.ses.secretHint": "Cree la clave en IAM para un usuario que solo pueda enviar correo: ses:SendEmail, ses:GetAccount, ses:ListEmailTemplates y ses:GetEmailTemplate.", + "accountModal.ses.configurationSetInvalid": "Use hasta 64 letras, dígitos, guiones y guiones bajos.", + "accountModal.ses.configurationSetHint": "Opcional. Necesario para los eventos de rebote, queja y entrega, y para el seguimiento de aperturas y clics de las plantillas de SES.", + "accountModal.ses.configurationSet": "Conjunto de configuración", + "accountModal.ses.topicArnPartition": "El tema debe estar en la misma partición de AWS que la región.", + "accountModal.ses.topicArnInvalid": "Introduzca el ARN de un tema de SNS estándar, como arn:aws:sns:eu-west-1:123456789012:ses-events.", + "accountModal.ses.topicArnHint": "Solo se aceptan notificaciones de este tema de SNS. Sin él, el webhook rechaza todas las solicitudes.", + "accountModal.ses.topicArn": "ARN del tema de SNS", + "accountModal.ses.guideTitle": "Configurar los eventos en AWS", + "accountModal.ses.step1": "Verifique la dirección del remitente o su dominio en esta región. En el sandbox de SES, también debe verificarse cada destinatario.", + "accountModal.ses.step2": "Cree un tema de SNS estándar en la misma región y permita que ses.amazonaws.com publique en él.", + "accountModal.ses.step3": "En el conjunto de configuración, añada un destino de eventos de SNS para Delivery, Bounce, Complaint, Reject, Rendering failure y Delivery delay (además de Open y Click para contarlos).", + "accountModal.ses.step4": "Pegue arriba el ARN del tema y guarde. Después cree una suscripción HTTPS para la URL del webhook; Magic Mail la confirma automáticamente.", + "accountModal.ses.resources": "Recursos de Amazon SES", + "accountModal.ses.resourcesBody": "Las plantillas de SES usan las mismas variables {code1} que Magic Mail, por lo que las claves de sus datos no cambian. Los envíos de prueba a success@simulator.amazonses.com funcionan en el sandbox.", + "accountModal.providers.brevoTagline": "API transaccional · plantillas con params · webhooks", + "accountModal.providers.sesTagline": "Regiones de AWS · plantillas de SES · eventos de SNS", + "templates.provider.locales.title": "Versiones de idioma", + "templates.provider.locales.isVersionOf": "Esta plantilla es una versión de idioma de {name}. Envíe {name}; Magic Mail elige esta versión para el idioma correspondiente.", + "templates.provider.locales.failure": "No se pudieron guardar las versiones de idioma.", + "templates.provider.locales.localeInvalid": "Introduzca un código de idioma como de, fr o pt-BR.", + "templates.provider.locales.duplicate": "Este idioma ya tiene una versión.", + "templates.provider.locales.added": "Versión de idioma añadida.", + "templates.provider.locales.hint": "Envíe esta plantilla y Magic Mail elige la versión para el idioma del destinatario: el locale pasado a send() o, si no, el locale guardado en el usuario. de-AT recurre a de y después a esta plantilla. Introduzca un idioma y elija su plantilla; se guarda al instante.", + "templates.provider.locales.remove": "Quitar la versión {locale}", + "templates.provider.locales.removed": "Versión de idioma eliminada.", + "templates.provider.locales.none": "No hay versiones de idioma. Todos los destinatarios reciben esta plantilla.", + "templates.provider.locales.locale": "Idioma", + "templates.provider.locales.template": "Plantilla", + "templates.provider.locales.pick": "Elija una plantilla", + "templates.provider.locales.noCandidates": "Cree la plantilla traducida en el proveedor y sincronice; después podrá añadirla aquí.", + "templates.provider.detail.brevoParams": "Brevo lee sus datos bajo params: la plantilla escribe params.name y usted pasa name. Magic Mail se encarga de la correspondencia.", + "settings.providerTracking.label": "Contar las aperturas y los clics del proveedor", + "settings.providerTracking.description": "Las plantillas del proveedor las genera SendGrid, Mailgun, Brevo o Amazon SES, por lo que Magic Mail no puede añadir su píxel ni reescribir sus enlaces. Cuando esta opción está activada, el proveedor hace el seguimiento de aperturas y clics, y sus eventos se cuentan en la analítica de correo. Requiere el webhook de entrega con eventos de apertura y clic (SES: un conjunto de configuración con Open y Click). Brevo hace el seguimiento a nivel de cuenta.", + "accounts.test.hint.brevoInvalidKey": "Brevo ha rechazado la clave de API. Cree una clave de API en SMTP & API > API keys (no una clave SMTP) y péguela completa.", + "accounts.test.hint.brevoIpNotAuthorized": "Brevo ha bloqueado la solicitud porque la dirección IP del servidor no está autorizada. Añada la dirección IP de este servidor de Strapi en Security > Authorised IPs en Brevo o desactive el bloqueo de direcciones IP desconocidas.", + "accounts.test.hint.brevoForbidden": "Brevo ha rechazado la solicitud. Compruebe que la clave de API pueda enviar correo transaccional y que la cuenta de Brevo esté totalmente activada.", + "accounts.test.hint.brevoAccountUnderValidation": "La cuenta de Brevo aún se está validando. El envío funcionará cuando Brevo haya activado la cuenta.", + "accounts.test.hint.brevoSenderNotVerified": "Brevo ha rechazado el remitente. Añada y verifique la dirección del remitente en Senders, Domains & Dedicated IPs en Brevo o autentique su dominio.", + "accounts.test.hint.brevoNoCredits": "La cuenta de Brevo no tiene créditos de correo disponibles. Compruebe el plan y los créditos en Brevo.", + "accounts.test.hint.brevoTemplateNotFound": "Brevo no conoce esta plantilla o está inactiva. Actívela en Brevo y vuelva a sincronizar las plantillas del proveedor.", + "accounts.test.hint.brevoTooLarge": "Brevo ha rechazado el mensaje por ser demasiado grande. Brevo acepta como máximo 20 MB, incluidos los archivos adjuntos.", + "accounts.test.hint.brevoRateLimited": "Brevo está limitando las solicitudes. Espere un momento y vuelva a intentarlo; la cola lo reintenta automáticamente.", + "accounts.test.hint.brevoUnavailable": "Brevo no está disponible en este momento. Vuelva a intentarlo más tarde.", + "accounts.test.hint.sesInvalidCredentials": "Amazon SES no conoce esta clave de acceso. Compruebe el ID de clave de acceso y que la clave esté activa en IAM.", + "accounts.test.hint.sesSignatureMismatch": "La clave de acceso secreta no corresponde a este ID de clave de acceso. Vuelva a introducir la clave de acceso secreta.", + "accounts.test.hint.sesClockSkew": "El reloj del servidor difiere de la hora de AWS en más de 5 minutos. Sincronice el reloj del servidor (NTP).", + "accounts.test.hint.sesAccessDenied": "Al usuario o rol de IAM le falta un permiso. Permita ses:SendEmail, ses:GetAccount, ses:ListEmailTemplates y ses:GetEmailTemplate en esta región.", + "accounts.test.hint.sesExpiredToken": "Las credenciales temporales de AWS (AWS_SESSION_TOKEN) han caducado. Renueve las credenciales del rol del servidor.", + "accounts.test.hint.sesCredentialsMissing": "No hay credenciales de AWS disponibles. Introduzca una clave de acceso o defina AWS_ACCESS_KEY_ID y AWS_SECRET_ACCESS_KEY en el servidor.", + "accounts.test.hint.sesUnverifiedIdentity": "Amazon SES ha rechazado una dirección que no está verificada en esta región. En el sandbox de SES, el remitente y cada destinatario deben estar verificados; fuera del sandbox, verifique la dirección del remitente o su dominio en la región de esta cuenta.", + "accounts.test.hint.sesMessageRejected": "Amazon SES ha rechazado el mensaje, por ejemplo por su contenido o por un tipo de archivo adjunto que no acepta.", + "accounts.test.hint.sesSendingPaused": "El envío está en pausa para esta cuenta de AWS o este conjunto de configuración. Vuelva a activar el envío en la consola de Amazon SES.", + "accounts.test.hint.sesAccountSuspended": "AWS ha restringido la capacidad de envío de correo de esta cuenta. Póngase en contacto con AWS Support.", + "accounts.test.hint.sesMailFromNotVerified": "El dominio MAIL FROM personalizado del remitente no está verificado. Compruebe sus registros MX y SPF en la consola de Amazon SES.", + "accounts.test.hint.sesLimitExceeded": "Se ha superado un límite de Amazon SES, por ejemplo la cuota de envío diaria. Compruebe las cuotas en la consola de Amazon SES.", + "accounts.test.hint.sesNotFound": "Amazon SES no ha encontrado la plantilla o el conjunto de configuración en esta región. Compruebe los nombres y la región.", + "accounts.test.hint.sesMessageTooLarge": "Amazon SES ha rechazado el mensaje por ser demasiado grande (40 MB, incluidos los archivos adjuntos).", + "accounts.test.hint.sesSandbox": "La cuenta de AWS está en el sandbox de SES: solo puede enviar a direcciones verificadas y al simulador de buzón. Solicite acceso de producción en la consola de Amazon SES.", + "accounts.test.hint.sesSendingDisabled": "El envío de correo está desactivado para esta cuenta de AWS en esta región. Compruebe el estado de la cuenta en la consola de Amazon SES.", + "accounts.test.hint.credentials": "No se pueden leer las credenciales guardadas. Abra la cuenta, vuelva a introducir las credenciales y guarde.", + "accounts.test.hint.auth": "El proveedor ha rechazado las credenciales. Compruebe la clave y sus permisos.", + "accounts.test.hint.unavailable": "No se pudo contactar con el proveedor. Compruebe la conexión de red del servidor y vuelva a intentarlo.", + "accountModal.providers.beta": "Beta" } diff --git a/admin/src/translations/fr.json b/admin/src/translations/fr.json index f24fad5..30a487a 100644 --- a/admin/src/translations/fr.json +++ b/admin/src/translations/fr.json @@ -1023,9 +1023,9 @@ "templates.provider.sync": "Synchroniser", "templates.provider.empty.syncingTitle": "Lecture de vos modèles du fournisseur...", "templates.provider.empty.title": "Aucun modèle du fournisseur trouvé", - "templates.provider.empty.description": "Créez un modèle dynamique chez SendGrid ou un modèle chez Mailgun, puis sélectionnez Synchroniser. Magic Mail l'affiche ici et peut l'envoyer avec votre routage, votre basculement et vos journaux.", + "templates.provider.empty.description": "Créez un modèle chez votre fournisseur (SendGrid, Mailgun, Brevo ou Amazon SES), puis sélectionnez Synchroniser. Magic Mail l’affiche ici et peut l’envoyer avec votre routage, votre basculement et vos journaux.", "templates.provider.open": "Ouvrir {name}", - "templates.provider.description": "Modèles en lecture seule issus de vos comptes SendGrid et Mailgun.", + "templates.provider.description": "Modèles en lecture seule issus de vos comptes SendGrid, Mailgun, Brevo et Amazon SES.", "templates.provider.accountError.title": "{account} ({provider}) n'a pas pu être lu", "templates.provider.accountError.keep": "Ses modèles conservent leur dernier état synchronisé.", "templates.provider.accountError.auth": "La clé API a été refusée ou n'est pas autorisée à lire les modèles.", @@ -1037,7 +1037,7 @@ "templates.coreDesign.savedProvider": "{name} utilise désormais \"{template}\".", "templates.coreDesign.failure": "Le design n'a pas pu être enregistré.", "templates.coreDesign.title": "Design de {name}", - "templates.coreDesign.hint": "Avec un modèle du fournisseur, SendGrid ou Mailgun génère cet e-mail. Le routage, le basculement et les journaux restent dans Magic Mail.", + "templates.coreDesign.hint": "Avec un modèle du fournisseur, le fournisseur génère cet e-mail. Le routage, le basculement et les journaux restent dans Magic Mail.", "templates.coreDesign.label": "Design", "templates.coreDesign.designer": "Éditeur Magic Mail (par défaut)", "templates.coreDesign.option": "{name} ({provider})", @@ -1047,5 +1047,109 @@ "templates.coreDesign.missingTitle": "Le modèle utilise des variables que Magic Mail n'envoie pas", "templates.coreDesign.missingBody": "Celles-ci restent vides : {names}", "templates.coreDesign.fallback": "Si le modèle du fournisseur échoue, envoyer à la place la version de l'éditeur Magic Mail", - "templates.coreDesign.fallbackHint": "Désactivé : l'e-mail échoue avec une erreur explicite et rien d'autre n'est envoyé." + "templates.coreDesign.fallbackHint": "Désactivé : l'e-mail échoue avec une erreur explicite et rien d'autre n'est envoyé.", + "accountModal.check.afterSave": "Après l’enregistrement, vous pouvez vérifier la connexion ici sans envoyer d’e-mail.", + "accountModal.check.button": "Vérifier la connexion", + "accountModal.check.note": "Utilise les identifiants enregistrés. Aucun e-mail n’est envoyé.", + "accountModal.check.okSandbox": "Connecté. Le compte AWS est dans la sandbox SES : il ne peut envoyer qu’à des adresses vérifiées.", + "accountModal.check.ok": "Connecté. Les identifiants fonctionnent.", + "accountModal.check.failed": "La vérification de la connexion a échoué.", + "accountModal.brevo.tokenAfterSave": "Magic Mail crée un jeton de webhook aléatoire lors de l’enregistrement du compte. Il s’affiche ensuite ici.", + "accountModal.brevo.tokenRotated": "Nouveau jeton de webhook créé. Mettez-le à jour dans Brevo dès maintenant.", + "accountModal.brevo.tokenFailed": "Le jeton de webhook n’a pas pu être chargé. Connectez-vous au panneau d’administration avec un compte autorisé à gérer les comptes e-mail.", + "accountModal.brevo.token": "Jeton de webhook", + "accountModal.brevo.copyToken": "Copier le jeton de webhook", + "accountModal.brevo.tokenCopied": "Jeton de webhook copié", + "accountModal.brevo.showToken": "Afficher le jeton de webhook", + "accountModal.brevo.rotateToken": "Remplacer le jeton", + "accountModal.brevo.rotateTitle": "Remplacer le jeton de webhook ?", + "accountModal.brevo.rotateBody": "Les webhooks Brevo qui envoient encore l’ancien jeton sont refusés jusqu’à ce que vous colliez le nouveau jeton dans Brevo. Cette action est irréversible.", + "accountModal.brevo.rotateConfirm": "Remplacer le jeton", + "accountModal.brevo.title": "Configuration de l’API Brevo", + "accountModal.brevo.apiKey": "Clé API Brevo", + "accountModal.brevo.apiKeyHint": "Dans Brevo : SMTP & API, API keys, Generate a new API key. Utilisez une clé API, et non une clé SMTP. Si Brevo bloque les adresses IP inconnues, autorisez l’adresse IP de ce serveur.", + "accountModal.brevo.webhookGuideTitle": "Configurer le webhook dans Brevo", + "accountModal.brevo.webhookStep1": "Dans Brevo : Transactional, Settings, Webhooks, Add a new webhook. Collez l’URL du webhook.", + "accountModal.brevo.webhookStep2": "Sélectionnez Delivered, Hard bounce, Soft bounce, Invalid email, Deferred, Blocked, Spam et Unsubscribed. Ajoutez Opened et Clicked uniquement si Magic Mail doit compter les ouvertures et les clics des modèles Brevo.", + "accountModal.brevo.webhookStep3": "Choisissez l’authentification par jeton (Bearer) et collez le jeton de webhook. Les requêtes sans ce jeton sont refusées.", + "accountModal.brevo.resources": "Ressources Brevo", + "accountModal.brevo.resourcesBody": "L’adresse d’expéditeur doit être un expéditeur vérifié ou appartenir à un domaine authentifié dans Brevo. Les modèles Brevo utilisent {code1} : Magic Mail envoie vos données sous params, la clé name devient donc {code2}. Le suivi des ouvertures et des clics est un paramètre du compte Brevo.", + "accountModal.ses.securityTitle": "Sécurité des identifiants", + "accountModal.ses.securityBody": "La clé d’accès secrète est chiffrée avec AES-256-GCM avant d’être enregistrée. Les requêtes sont signées (AWS Signature Version 4) ; la clé elle-même n’est jamais envoyée.", + "accountModal.ses.title": "Configuration d’Amazon SES", + "accountModal.ses.regionInvalid": "Saisissez un code de région AWS tel que eu-west-1. Les régions de Chine ne sont pas prises en charge.", + "accountModal.ses.regionHint": "La région dans laquelle votre identité d’expéditeur est vérifiée, par exemple eu-west-1 ou us-east-1.", + "accountModal.ses.region": "Région AWS", + "accountModal.ses.source": "Identifiants", + "accountModal.ses.sourceKeys": "Clé d’accès d’un utilisateur IAM", + "accountModal.ses.sourceEnvironment": "Variables d’environnement du serveur (par exemple un rôle IAM)", + "accountModal.ses.environmentTitle": "Identifiants fournis par le serveur", + "accountModal.ses.environmentBody": "À chaque requête, Magic Mail lit {a}, {b} et, pour les identifiants temporaires d’un rôle, {c} dans l’environnement du processus Strapi. Utilisez cette option lorsque votre plateforme injecte les identifiants du rôle sous forme de variables d’environnement. Magic Mail n’interroge jamais les métadonnées d’instance EC2 ni les points de terminaison d’identifiants ECS.", + "accountModal.ses.accessKeyIdInvalid": "Un ID de clé d’accès comporte de 16 à 128 lettres et chiffres, par exemple AKIA suivi de 16 caractères.", + "accountModal.ses.accessKeyId": "ID de clé d’accès", + "accountModal.ses.secretAccessKey": "Clé d’accès secrète", + "accountModal.ses.secretHint": "Créez la clé dans IAM pour un utilisateur autorisé uniquement à envoyer des e-mails : ses:SendEmail, ses:GetAccount, ses:ListEmailTemplates et ses:GetEmailTemplate.", + "accountModal.ses.configurationSetInvalid": "Utilisez jusqu’à 64 lettres, chiffres, traits d’union et traits de soulignement.", + "accountModal.ses.configurationSetHint": "Facultatif. Nécessaire pour les événements de rebond, de plainte et de distribution, ainsi que pour le suivi des ouvertures et des clics des modèles SES.", + "accountModal.ses.configurationSet": "Jeu de configuration", + "accountModal.ses.topicArnPartition": "La rubrique doit se trouver dans la même partition AWS que la région.", + "accountModal.ses.topicArnInvalid": "Saisissez l’ARN d’une rubrique SNS standard, par exemple arn:aws:sns:eu-west-1:123456789012:ses-events.", + "accountModal.ses.topicArnHint": "Seules les notifications de cette rubrique SNS sont acceptées. Sans elle, le webhook refuse toutes les requêtes.", + "accountModal.ses.topicArn": "ARN de la rubrique SNS", + "accountModal.ses.guideTitle": "Configurer les événements dans AWS", + "accountModal.ses.step1": "Vérifiez l’adresse d’expéditeur ou son domaine dans cette région. Dans la sandbox SES, chaque destinataire doit aussi être vérifié.", + "accountModal.ses.step2": "Créez une rubrique SNS standard dans la même région et autorisez ses.amazonaws.com à y publier.", + "accountModal.ses.step3": "Dans le jeu de configuration, ajoutez une destination d’événements SNS pour Delivery, Bounce, Complaint, Reject, Rendering failure et Delivery delay (ainsi que Open et Click pour les compter).", + "accountModal.ses.step4": "Collez l’ARN de la rubrique ci-dessus et enregistrez. Créez ensuite un abonnement HTTPS pour l’URL du webhook ; Magic Mail le confirme automatiquement.", + "accountModal.ses.resources": "Ressources Amazon SES", + "accountModal.ses.resourcesBody": "Les modèles SES utilisent les mêmes variables {code1} que Magic Mail : vos clés de données restent donc identiques. Les envois de test à success@simulator.amazonses.com fonctionnent dans la sandbox.", + "accountModal.providers.brevoTagline": "API transactionnelle · modèles avec params · webhooks", + "accountModal.providers.sesTagline": "Régions AWS · modèles SES · événements SNS", + "templates.provider.locales.title": "Versions linguistiques", + "templates.provider.locales.isVersionOf": "Ce modèle est une version linguistique de {name}. Envoyez {name} ; Magic Mail choisit cette version pour la langue correspondante.", + "templates.provider.locales.failure": "Les versions linguistiques n’ont pas pu être enregistrées.", + "templates.provider.locales.localeInvalid": "Saisissez un code de langue tel que de, fr ou pt-BR.", + "templates.provider.locales.duplicate": "Cette langue a déjà une version.", + "templates.provider.locales.added": "Version linguistique ajoutée.", + "templates.provider.locales.hint": "Envoyez ce modèle et Magic Mail choisit la version correspondant à la langue du destinataire : la locale transmise à send(), sinon la locale enregistrée sur l’utilisateur. de-AT se replie sur de, puis sur ce modèle. Saisissez une langue et choisissez son modèle ; l’enregistrement est immédiat.", + "templates.provider.locales.remove": "Supprimer la version {locale}", + "templates.provider.locales.removed": "Version linguistique supprimée.", + "templates.provider.locales.none": "Aucune version linguistique. Tous les destinataires reçoivent ce modèle.", + "templates.provider.locales.locale": "Langue", + "templates.provider.locales.template": "Modèle", + "templates.provider.locales.pick": "Choisir un modèle", + "templates.provider.locales.noCandidates": "Créez le modèle traduit chez le fournisseur et synchronisez ; vous pourrez ensuite l’ajouter ici.", + "templates.provider.detail.brevoParams": "Brevo lit vos données sous params : le modèle écrit params.name, vous transmettez name. Magic Mail se charge de la correspondance.", + "settings.providerTracking.label": "Compter les ouvertures et les clics du fournisseur", + "settings.providerTracking.description": "Les modèles du fournisseur sont générés par SendGrid, Mailgun, Brevo ou Amazon SES : Magic Mail ne peut donc pas ajouter son pixel ni réécrire leurs liens. Lorsque cette option est activée, le fournisseur suit les ouvertures et les clics, et ses événements sont comptés dans l’analyse des e-mails. Nécessite le webhook de distribution avec les événements d’ouverture et de clic (SES : un jeu de configuration avec Open et Click). Brevo effectue le suivi au niveau du compte.", + "accounts.test.hint.brevoInvalidKey": "Brevo a refusé la clé API. Créez une clé API sous SMTP & API > API keys (et non une clé SMTP) et collez-la entièrement.", + "accounts.test.hint.brevoIpNotAuthorized": "Brevo a bloqué la requête, car l’adresse IP du serveur n’est pas autorisée. Ajoutez l’adresse IP de ce serveur Strapi sous Security > Authorised IPs dans Brevo, ou désactivez le blocage des adresses IP inconnues.", + "accounts.test.hint.brevoForbidden": "Brevo a refusé la requête. Vérifiez que la clé API est autorisée à envoyer des e-mails transactionnels et que le compte Brevo est entièrement activé.", + "accounts.test.hint.brevoAccountUnderValidation": "Le compte Brevo est encore en cours de validation. L’envoi fonctionnera dès que Brevo aura activé le compte.", + "accounts.test.hint.brevoSenderNotVerified": "Brevo a refusé l’expéditeur. Ajoutez et vérifiez l’adresse d’expéditeur sous Senders, Domains & Dedicated IPs dans Brevo, ou authentifiez son domaine.", + "accounts.test.hint.brevoNoCredits": "Le compte Brevo n’a plus de crédits d’e-mail. Vérifiez le forfait et les crédits dans Brevo.", + "accounts.test.hint.brevoTemplateNotFound": "Brevo ne connaît pas ce modèle ou il est inactif. Activez-le dans Brevo et synchronisez de nouveau les modèles du fournisseur.", + "accounts.test.hint.brevoTooLarge": "Brevo a refusé le message, car il est trop volumineux. Brevo accepte au maximum 20 Mo pièces jointes comprises.", + "accounts.test.hint.brevoRateLimited": "Brevo limite les requêtes. Patientez un instant, puis réessayez ; la file d’attente réessaie automatiquement.", + "accounts.test.hint.brevoUnavailable": "Brevo est actuellement injoignable. Réessayez plus tard.", + "accounts.test.hint.sesInvalidCredentials": "Amazon SES ne connaît pas cette clé d’accès. Vérifiez l’ID de clé d’accès et que la clé est active dans IAM.", + "accounts.test.hint.sesSignatureMismatch": "La clé d’accès secrète ne correspond pas à cet ID de clé d’accès. Saisissez de nouveau la clé d’accès secrète.", + "accounts.test.hint.sesClockSkew": "L’horloge du serveur diffère de l’heure AWS de plus de 5 minutes. Synchronisez l’horloge du serveur (NTP).", + "accounts.test.hint.sesAccessDenied": "Il manque une autorisation à l’utilisateur ou au rôle IAM. Autorisez ses:SendEmail, ses:GetAccount, ses:ListEmailTemplates et ses:GetEmailTemplate dans cette région.", + "accounts.test.hint.sesExpiredToken": "Les identifiants AWS temporaires (AWS_SESSION_TOKEN) ont expiré. Renouvelez les identifiants du rôle du serveur.", + "accounts.test.hint.sesCredentialsMissing": "Aucun identifiant AWS n’est disponible. Saisissez une clé d’accès ou définissez AWS_ACCESS_KEY_ID et AWS_SECRET_ACCESS_KEY sur le serveur.", + "accounts.test.hint.sesUnverifiedIdentity": "Amazon SES a refusé une adresse qui n’est pas vérifiée dans cette région. Dans la sandbox SES, l’expéditeur et chaque destinataire doivent être vérifiés ; hors de la sandbox, vérifiez l’adresse d’expéditeur ou son domaine dans la région de ce compte.", + "accounts.test.hint.sesMessageRejected": "Amazon SES a refusé le message, par exemple en raison de son contenu ou d’un type de pièce jointe qu’il n’accepte pas.", + "accounts.test.hint.sesSendingPaused": "L’envoi est suspendu pour ce compte AWS ou ce jeu de configuration. Réactivez l’envoi dans la console Amazon SES.", + "accounts.test.hint.sesAccountSuspended": "AWS a restreint la capacité d’envoi d’e-mails de ce compte. Contactez AWS Support.", + "accounts.test.hint.sesMailFromNotVerified": "Le domaine MAIL FROM personnalisé de l’expéditeur n’est pas vérifié. Vérifiez ses enregistrements MX et SPF dans la console Amazon SES.", + "accounts.test.hint.sesLimitExceeded": "Une limite d’Amazon SES a été dépassée, par exemple le quota d’envoi quotidien. Vérifiez les quotas dans la console Amazon SES.", + "accounts.test.hint.sesNotFound": "Amazon SES n’a pas trouvé le modèle ou le jeu de configuration dans cette région. Vérifiez les noms et la région.", + "accounts.test.hint.sesMessageTooLarge": "Amazon SES a refusé le message, car il est trop volumineux (40 Mo pièces jointes comprises).", + "accounts.test.hint.sesSandbox": "Le compte AWS est dans la sandbox SES : il ne peut envoyer qu’à des adresses vérifiées et au simulateur de boîte aux lettres. Demandez l’accès en production dans la console Amazon SES.", + "accounts.test.hint.sesSendingDisabled": "L’envoi d’e-mails est désactivé pour ce compte AWS dans cette région. Vérifiez le statut du compte dans la console Amazon SES.", + "accounts.test.hint.credentials": "Les identifiants enregistrés ne peuvent pas être lus. Ouvrez le compte, saisissez de nouveau les identifiants et enregistrez.", + "accounts.test.hint.auth": "Le fournisseur a refusé les identifiants. Vérifiez la clé et ses autorisations.", + "accounts.test.hint.unavailable": "Le fournisseur n’a pas pu être joint. Vérifiez la connexion réseau du serveur, puis réessayez.", + "accountModal.providers.beta": "Bêta" } diff --git a/admin/src/translations/pt.json b/admin/src/translations/pt.json index b28d4b9..3128571 100644 --- a/admin/src/translations/pt.json +++ b/admin/src/translations/pt.json @@ -1023,9 +1023,9 @@ "templates.provider.sync": "Sincronizar", "templates.provider.empty.syncingTitle": "Lendo seus modelos do provedor...", "templates.provider.empty.title": "Nenhum modelo do provedor encontrado", - "templates.provider.empty.description": "Crie um modelo dinâmico no SendGrid ou um modelo no Mailgun e depois selecione Sincronizar. O Magic Mail o lista aqui e pode enviá-lo com seu roteamento, failover e logs.", + "templates.provider.empty.description": "Crie um modelo no seu provedor (SendGrid, Mailgun, Brevo ou Amazon SES) e depois selecione Sincronizar. O Magic Mail o lista aqui e pode enviá-lo com seu roteamento, failover e logs.", "templates.provider.open": "Abrir {name}", - "templates.provider.description": "Modelos somente leitura das suas contas do SendGrid e do Mailgun.", + "templates.provider.description": "Modelos somente leitura das suas contas do SendGrid, do Mailgun, do Brevo e do Amazon SES.", "templates.provider.accountError.title": "Não foi possível ler {account} ({provider})", "templates.provider.accountError.keep": "Seus modelos mantêm o último estado sincronizado.", "templates.provider.accountError.auth": "A chave de API foi recusada ou não tem permissão para ler modelos.", @@ -1037,7 +1037,7 @@ "templates.coreDesign.savedProvider": "{name} agora usa \"{template}\".", "templates.coreDesign.failure": "Não foi possível salvar o design.", "templates.coreDesign.title": "Design de {name}", - "templates.coreDesign.hint": "Com um modelo do provedor, o SendGrid ou o Mailgun gera este e-mail. Roteamento, failover e logs permanecem no Magic Mail.", + "templates.coreDesign.hint": "Com um modelo do provedor, o provedor gera este e-mail. Roteamento, failover e logs permanecem no Magic Mail.", "templates.coreDesign.label": "Design", "templates.coreDesign.designer": "Designer do Magic Mail (padrão)", "templates.coreDesign.option": "{name} ({provider})", @@ -1047,5 +1047,109 @@ "templates.coreDesign.missingTitle": "O modelo usa variáveis que o Magic Mail não envia", "templates.coreDesign.missingBody": "Estas ficam vazias: {names}", "templates.coreDesign.fallback": "Se o modelo do provedor falhar, enviar em vez disso a versão do designer do Magic Mail", - "templates.coreDesign.fallbackHint": "Desativado: o e-mail falha com um erro claro e nada mais é enviado." + "templates.coreDesign.fallbackHint": "Desativado: o e-mail falha com um erro claro e nada mais é enviado.", + "accountModal.check.afterSave": "Depois de salvar, você pode verificar a conexão aqui sem enviar um e-mail.", + "accountModal.check.button": "Verificar conexão", + "accountModal.check.note": "Usa as credenciais salvas. Nenhum e-mail é enviado.", + "accountModal.check.okSandbox": "Conectado. A conta da AWS está no sandbox do SES: ela só pode enviar para endereços verificados.", + "accountModal.check.ok": "Conectado. As credenciais funcionam.", + "accountModal.check.failed": "A verificação da conexão falhou.", + "accountModal.brevo.tokenAfterSave": "O Magic Mail cria um token de webhook aleatório quando a conta é salva. Ele é exibido aqui em seguida.", + "accountModal.brevo.tokenRotated": "Novo token de webhook criado. Atualize-o agora no Brevo.", + "accountModal.brevo.tokenFailed": "Não foi possível carregar o token de webhook. Entre no painel de administração com uma conta que possa gerenciar contas de e-mail.", + "accountModal.brevo.token": "Token de webhook", + "accountModal.brevo.copyToken": "Copiar token de webhook", + "accountModal.brevo.tokenCopied": "Token de webhook copiado", + "accountModal.brevo.showToken": "Mostrar token de webhook", + "accountModal.brevo.rotateToken": "Substituir token", + "accountModal.brevo.rotateTitle": "Substituir o token de webhook?", + "accountModal.brevo.rotateBody": "Webhooks do Brevo que ainda enviam o token antigo são rejeitados até você colar o novo token no Brevo. Esta ação não pode ser desfeita.", + "accountModal.brevo.rotateConfirm": "Substituir token", + "accountModal.brevo.title": "Configuração da API do Brevo", + "accountModal.brevo.apiKey": "Chave de API do Brevo", + "accountModal.brevo.apiKeyHint": "No Brevo: SMTP & API, API keys, Generate a new API key. Use uma chave de API, não uma chave SMTP. Se o Brevo bloquear endereços IP desconhecidos, autorize o endereço IP deste servidor.", + "accountModal.brevo.webhookGuideTitle": "Configurar o webhook no Brevo", + "accountModal.brevo.webhookStep1": "No Brevo: Transactional, Settings, Webhooks, Add a new webhook. Cole a URL do webhook.", + "accountModal.brevo.webhookStep2": "Selecione Delivered, Hard bounce, Soft bounce, Invalid email, Deferred, Blocked, Spam e Unsubscribed. Adicione Opened e Clicked apenas se o Magic Mail precisar contar aberturas e cliques dos modelos do Brevo.", + "accountModal.brevo.webhookStep3": "Escolha a autenticação por token (Bearer) e cole o token de webhook. Solicitações sem esse token são rejeitadas.", + "accountModal.brevo.resources": "Recursos do Brevo", + "accountModal.brevo.resourcesBody": "O endereço do remetente deve ser um remetente verificado ou pertencer a um domínio autenticado no Brevo. Os modelos do Brevo usam {code1}: o Magic Mail envia seus dados em params, então a chave name se torna {code2}. O rastreamento de aberturas e cliques é uma configuração da conta no Brevo.", + "accountModal.ses.securityTitle": "Segurança das credenciais", + "accountModal.ses.securityBody": "A chave de acesso secreta é criptografada com AES-256-GCM antes de ser armazenada. As solicitações são assinadas (AWS Signature Version 4); a chave em si nunca é enviada.", + "accountModal.ses.title": "Configuração do Amazon SES", + "accountModal.ses.regionInvalid": "Informe um código de região da AWS, como eu-west-1. Regiões da China não são suportadas.", + "accountModal.ses.regionHint": "A região em que sua identidade de remetente está verificada, por exemplo eu-west-1 ou us-east-1.", + "accountModal.ses.region": "Região da AWS", + "accountModal.ses.source": "Credenciais", + "accountModal.ses.sourceKeys": "Chave de acesso de um usuário do IAM", + "accountModal.ses.sourceEnvironment": "Variáveis de ambiente do servidor (por exemplo, uma função do IAM)", + "accountModal.ses.environmentTitle": "Credenciais do servidor", + "accountModal.ses.environmentBody": "A cada solicitação, o Magic Mail lê {a}, {b} e, para credenciais temporárias de função, {c} do ambiente do processo do Strapi. Use esta opção quando sua plataforma injetar as credenciais da função como variáveis de ambiente. O Magic Mail nunca consulta os metadados da instância EC2 nem os endpoints de credenciais do ECS.", + "accountModal.ses.accessKeyIdInvalid": "Um ID de chave de acesso tem de 16 a 128 letras e dígitos, por exemplo AKIA seguido de 16 caracteres.", + "accountModal.ses.accessKeyId": "ID da chave de acesso", + "accountModal.ses.secretAccessKey": "Chave de acesso secreta", + "accountModal.ses.secretHint": "Crie a chave no IAM para um usuário que só possa enviar e-mails: ses:SendEmail, ses:GetAccount, ses:ListEmailTemplates e ses:GetEmailTemplate.", + "accountModal.ses.configurationSetInvalid": "Use até 64 letras, dígitos, hífens e sublinhados.", + "accountModal.ses.configurationSetHint": "Opcional. Necessário para eventos de devolução, reclamação e entrega e para o rastreamento de aberturas e cliques dos modelos do SES.", + "accountModal.ses.configurationSet": "Conjunto de configurações", + "accountModal.ses.topicArnPartition": "O tópico deve estar na mesma partição da AWS que a região.", + "accountModal.ses.topicArnInvalid": "Informe o ARN de um tópico padrão do SNS, como arn:aws:sns:eu-west-1:123456789012:ses-events.", + "accountModal.ses.topicArnHint": "Somente notificações deste tópico do SNS são aceitas. Sem ele, o webhook rejeita todas as solicitações.", + "accountModal.ses.topicArn": "ARN do tópico do SNS", + "accountModal.ses.guideTitle": "Configurar os eventos na AWS", + "accountModal.ses.step1": "Verifique o endereço do remetente ou o domínio dele nesta região. No sandbox do SES, cada destinatário também precisa ser verificado.", + "accountModal.ses.step2": "Crie um tópico padrão do SNS na mesma região e permita que ses.amazonaws.com publique nele.", + "accountModal.ses.step3": "No conjunto de configurações, adicione um destino de eventos do SNS para Delivery, Bounce, Complaint, Reject, Rendering failure e Delivery delay (além de Open e Click para contá-los).", + "accountModal.ses.step4": "Cole o ARN do tópico acima e salve. Depois crie uma assinatura HTTPS para a URL do webhook; o Magic Mail a confirma automaticamente.", + "accountModal.ses.resources": "Recursos do Amazon SES", + "accountModal.ses.resourcesBody": "Os modelos do SES usam as mesmas variáveis {code1} do Magic Mail, então as chaves dos seus dados continuam as mesmas. Envios de teste para success@simulator.amazonses.com funcionam no sandbox.", + "accountModal.providers.brevoTagline": "API transacional · modelos com params · webhooks", + "accountModal.providers.sesTagline": "Regiões da AWS · modelos do SES · eventos do SNS", + "templates.provider.locales.title": "Versões de idioma", + "templates.provider.locales.isVersionOf": "Este modelo é uma versão de idioma de {name}. Envie {name}; o Magic Mail escolhe esta versão para o idioma correspondente.", + "templates.provider.locales.failure": "Não foi possível salvar as versões de idioma.", + "templates.provider.locales.localeInvalid": "Informe um código de idioma como de, fr ou pt-BR.", + "templates.provider.locales.duplicate": "Este idioma já tem uma versão.", + "templates.provider.locales.added": "Versão de idioma adicionada.", + "templates.provider.locales.hint": "Envie este modelo e o Magic Mail escolhe a versão para o idioma do destinatário: o locale passado para send() ou, caso contrário, o locale salvo no usuário. de-AT recorre a de e depois a este modelo. Informe um idioma e escolha o modelo; ele é salvo na hora.", + "templates.provider.locales.remove": "Remover a versão {locale}", + "templates.provider.locales.removed": "Versão de idioma removida.", + "templates.provider.locales.none": "Nenhuma versão de idioma. Todos os destinatários recebem este modelo.", + "templates.provider.locales.locale": "Idioma", + "templates.provider.locales.template": "Modelo", + "templates.provider.locales.pick": "Escolha um modelo", + "templates.provider.locales.noCandidates": "Crie o modelo traduzido no provedor e sincronize; depois ele poderá ser adicionado aqui.", + "templates.provider.detail.brevoParams": "O Brevo lê seus dados em params: o modelo escreve params.name, e você passa name. O Magic Mail faz o mapeamento.", + "settings.providerTracking.label": "Contar aberturas e cliques do provedor", + "settings.providerTracking.description": "Os modelos do provedor são gerados pelo SendGrid, Mailgun, Brevo ou Amazon SES, portanto o Magic Mail não pode adicionar o próprio pixel nem reescrever os links desses modelos. Quando esta opção está ativada, o provedor rastreia aberturas e cliques, e os eventos dele são contados na análise de e-mails. Requer o webhook de entrega com eventos de abertura e clique (SES: um conjunto de configurações com Open e Click). O Brevo faz o rastreamento no nível da conta.", + "accounts.test.hint.brevoInvalidKey": "O Brevo recusou a chave de API. Crie uma chave de API em SMTP & API > API keys (não uma chave SMTP) e cole-a por completo.", + "accounts.test.hint.brevoIpNotAuthorized": "O Brevo bloqueou a solicitação porque o endereço IP do servidor não está autorizado. Adicione o endereço IP deste servidor Strapi em Security > Authorised IPs no Brevo ou desative o bloqueio de endereços IP desconhecidos.", + "accounts.test.hint.brevoForbidden": "O Brevo recusou a solicitação. Verifique se a chave de API pode enviar e-mails transacionais e se a conta do Brevo está totalmente ativada.", + "accounts.test.hint.brevoAccountUnderValidation": "A conta do Brevo ainda está em validação. O envio funcionará assim que o Brevo ativar a conta.", + "accounts.test.hint.brevoSenderNotVerified": "O Brevo recusou o remetente. Adicione e verifique o endereço do remetente em Senders, Domains & Dedicated IPs no Brevo ou autentique o domínio dele.", + "accounts.test.hint.brevoNoCredits": "A conta do Brevo não tem mais créditos de e-mail. Verifique o plano e os créditos no Brevo.", + "accounts.test.hint.brevoTemplateNotFound": "O Brevo não conhece este modelo ou ele está inativo. Ative-o no Brevo e sincronize novamente os modelos do provedor.", + "accounts.test.hint.brevoTooLarge": "O Brevo recusou a mensagem por ser grande demais. O Brevo aceita no máximo 20 MB, incluindo anexos.", + "accounts.test.hint.brevoRateLimited": "O Brevo está limitando as solicitações. Aguarde um momento e tente novamente; a fila tenta de novo automaticamente.", + "accounts.test.hint.brevoUnavailable": "O Brevo não está acessível no momento. Tente novamente mais tarde.", + "accounts.test.hint.sesInvalidCredentials": "O Amazon SES não conhece esta chave de acesso. Verifique o ID da chave de acesso e se a chave está ativa no IAM.", + "accounts.test.hint.sesSignatureMismatch": "A chave de acesso secreta não pertence a este ID de chave de acesso. Informe novamente a chave de acesso secreta.", + "accounts.test.hint.sesClockSkew": "O relógio do servidor difere do horário da AWS em mais de 5 minutos. Sincronize o relógio do servidor (NTP).", + "accounts.test.hint.sesAccessDenied": "Falta uma permissão ao usuário ou à função do IAM. Permita ses:SendEmail, ses:GetAccount, ses:ListEmailTemplates e ses:GetEmailTemplate nesta região.", + "accounts.test.hint.sesExpiredToken": "As credenciais temporárias da AWS (AWS_SESSION_TOKEN) expiraram. Renove as credenciais da função do servidor.", + "accounts.test.hint.sesCredentialsMissing": "Nenhuma credencial da AWS está disponível. Informe uma chave de acesso ou defina AWS_ACCESS_KEY_ID e AWS_SECRET_ACCESS_KEY no servidor.", + "accounts.test.hint.sesUnverifiedIdentity": "O Amazon SES recusou um endereço que não está verificado nesta região. No sandbox do SES, o remetente e cada destinatário precisam estar verificados; fora do sandbox, verifique o endereço do remetente ou o domínio dele na região desta conta.", + "accounts.test.hint.sesMessageRejected": "O Amazon SES recusou a mensagem, por exemplo por causa do conteúdo ou de um tipo de anexo que ele não aceita.", + "accounts.test.hint.sesSendingPaused": "O envio está pausado para esta conta da AWS ou este conjunto de configurações. Reative o envio no console do Amazon SES.", + "accounts.test.hint.sesAccountSuspended": "A AWS restringiu a capacidade de envio de e-mails desta conta. Entre em contato com o AWS Support.", + "accounts.test.hint.sesMailFromNotVerified": "O domínio MAIL FROM personalizado do remetente não está verificado. Verifique os registros MX e SPF dele no console do Amazon SES.", + "accounts.test.hint.sesLimitExceeded": "Um limite do Amazon SES foi excedido, por exemplo a cota diária de envio. Verifique as cotas no console do Amazon SES.", + "accounts.test.hint.sesNotFound": "O Amazon SES não encontrou o modelo ou o conjunto de configurações nesta região. Verifique os nomes e a região.", + "accounts.test.hint.sesMessageTooLarge": "O Amazon SES recusou a mensagem por ser grande demais (40 MB, incluindo anexos).", + "accounts.test.hint.sesSandbox": "A conta da AWS está no sandbox do SES: ela só pode enviar para endereços verificados e para o simulador de caixa de correio. Solicite acesso de produção no console do Amazon SES.", + "accounts.test.hint.sesSendingDisabled": "O envio de e-mails está desativado para esta conta da AWS nesta região. Verifique o status da conta no console do Amazon SES.", + "accounts.test.hint.credentials": "Não é possível ler as credenciais armazenadas. Abra a conta, informe as credenciais novamente e salve.", + "accounts.test.hint.auth": "O provedor recusou as credenciais. Verifique a chave e as permissões dela.", + "accounts.test.hint.unavailable": "Não foi possível acessar o provedor. Verifique a conexão de rede do servidor e tente novamente.", + "accountModal.providers.beta": "Beta" } diff --git a/admin/src/utils/providerHints.js b/admin/src/utils/providerHints.js index f345a9a..be15f94 100644 --- a/admin/src/utils/providerHints.js +++ b/admin/src/utils/providerHints.js @@ -1,6 +1,7 @@ /** * Translated text for the provider hint codes returned by the account test - * (`hintCode`, see server/src/utils/client-errors.js PROVIDER_HINTS). + * and the connection check (`hintCode`, see server/src/utils/client-errors.js + * PROVIDER_HINTS and the HINTS of server/src/providers/brevo.js and ses.js). * * @param {(key: string, defaultMessage: string, values?: object) => string} t - useMagicMailIntl().t * @param {unknown} code - `hintCode` from the server @@ -44,6 +45,153 @@ export const providerHintMessage = (t, code, fallback) => { 'accounts.test.hint.mailgunSandboxRecipient', 'Sandbox domains only deliver to authorized recipients. Add the recipient in Mailgun first.' ); + case 'BREVO_INVALID_KEY': + return t( + 'accounts.test.hint.brevoInvalidKey', + 'Brevo rejected the API key. Create an API key under SMTP & API > API keys (not an SMTP key) and paste it completely.' + ); + case 'BREVO_IP_NOT_AUTHORIZED': + return t( + 'accounts.test.hint.brevoIpNotAuthorized', + 'Brevo blocked the request because the server IP address is not authorised. Add the IP address of this Strapi server under Security > Authorised IPs in Brevo, or turn off blocking of unknown IP addresses.' + ); + case 'BREVO_FORBIDDEN': + return t( + 'accounts.test.hint.brevoForbidden', + 'Brevo refused the request. Check that the API key may send transactional email and that the Brevo account is fully activated.' + ); + case 'BREVO_ACCOUNT_UNDER_VALIDATION': + return t( + 'accounts.test.hint.brevoAccountUnderValidation', + 'The Brevo account is still being validated. Sending works once Brevo has activated the account.' + ); + case 'BREVO_SENDER_NOT_VERIFIED': + return t( + 'accounts.test.hint.brevoSenderNotVerified', + 'Brevo rejected the sender. Add and verify the From address under Senders, Domains & Dedicated IPs in Brevo, or authenticate its domain.' + ); + case 'BREVO_NO_CREDITS': + return t( + 'accounts.test.hint.brevoNoCredits', + 'The Brevo account has no email credits left. Check the plan and credits in Brevo.' + ); + case 'BREVO_TEMPLATE_NOT_FOUND': + return t( + 'accounts.test.hint.brevoTemplateNotFound', + 'Brevo does not know this template or it is inactive. Activate it in Brevo and sync the provider templates again.' + ); + case 'BREVO_TOO_LARGE': + return t( + 'accounts.test.hint.brevoTooLarge', + 'Brevo rejected the message as too large. Brevo accepts at most 20 MB including attachments.' + ); + case 'BREVO_RATE_LIMITED': + return t( + 'accounts.test.hint.brevoRateLimited', + 'Brevo is rate limiting requests. Wait a moment and try again; the queue retries automatically.' + ); + case 'BREVO_UNAVAILABLE': + return t( + 'accounts.test.hint.brevoUnavailable', + 'Brevo is not reachable right now. Try again later.' + ); + case 'SES_INVALID_CREDENTIALS': + return t( + 'accounts.test.hint.sesInvalidCredentials', + 'Amazon SES does not know this access key. Check the access key ID and that the key is active in IAM.' + ); + case 'SES_SIGNATURE_MISMATCH': + return t( + 'accounts.test.hint.sesSignatureMismatch', + 'The secret access key does not belong to this access key ID. Enter the secret access key again.' + ); + case 'SES_CLOCK_SKEW': + return t( + 'accounts.test.hint.sesClockSkew', + 'The server clock differs from AWS time by more than 5 minutes. Synchronise the server clock (NTP).' + ); + case 'SES_ACCESS_DENIED': + return t( + 'accounts.test.hint.sesAccessDenied', + 'The IAM user or role is missing a permission. Allow ses:SendEmail, ses:GetAccount, ses:ListEmailTemplates and ses:GetEmailTemplate in this region.' + ); + case 'SES_EXPIRED_TOKEN': + return t( + 'accounts.test.hint.sesExpiredToken', + 'The temporary AWS credentials (AWS_SESSION_TOKEN) have expired. Renew the role credentials of the server.' + ); + case 'SES_CREDENTIALS_MISSING': + return t( + 'accounts.test.hint.sesCredentialsMissing', + 'No AWS credentials are available. Enter an access key, or set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY on the server.' + ); + case 'SES_UNVERIFIED_IDENTITY': + return t( + 'accounts.test.hint.sesUnverifiedIdentity', + 'Amazon SES rejected an address that is not verified in this region. In the SES sandbox the sender and every recipient must be verified; outside the sandbox, verify the From address or its domain in the region of this account.' + ); + case 'SES_MESSAGE_REJECTED': + return t( + 'accounts.test.hint.sesMessageRejected', + 'Amazon SES rejected the message, for example because of its content or an attachment type it does not accept.' + ); + case 'SES_SENDING_PAUSED': + return t( + 'accounts.test.hint.sesSendingPaused', + 'Sending is paused for this AWS account or configuration set. Re-enable sending in the Amazon SES console.' + ); + case 'SES_ACCOUNT_SUSPENDED': + return t( + 'accounts.test.hint.sesAccountSuspended', + "AWS has restricted this account's ability to send email. Contact AWS Support." + ); + case 'SES_MAIL_FROM_NOT_VERIFIED': + return t( + 'accounts.test.hint.sesMailFromNotVerified', + 'The custom MAIL FROM domain of the sender is not verified. Check its MX and SPF records in the Amazon SES console.' + ); + case 'SES_LIMIT_EXCEEDED': + return t( + 'accounts.test.hint.sesLimitExceeded', + 'An Amazon SES limit was exceeded, for example the daily sending quota. Check the quotas in the Amazon SES console.' + ); + case 'SES_NOT_FOUND': + return t( + 'accounts.test.hint.sesNotFound', + 'Amazon SES did not find the template or the configuration set in this region. Check the names and the region.' + ); + case 'SES_MESSAGE_TOO_LARGE': + return t( + 'accounts.test.hint.sesMessageTooLarge', + 'Amazon SES rejected the message as too large (40 MB including attachments).' + ); + case 'SES_SANDBOX': + return t( + 'accounts.test.hint.sesSandbox', + 'The AWS account is in the SES sandbox: it can only send to verified addresses and the mailbox simulator. Request production access in the Amazon SES console.' + ); + case 'SES_SENDING_DISABLED': + return t( + 'accounts.test.hint.sesSendingDisabled', + 'Email sending is disabled for this AWS account in this region. Check the account status in the Amazon SES console.' + ); + case 'CREDENTIALS': + return t( + 'accounts.test.hint.credentials', + 'The stored credentials can not be read. Open the account, enter the credentials again and save.' + ); + case 'AUTH': + return t( + 'accounts.test.hint.auth', + 'The provider rejected the credentials. Check the key and its permissions.' + ); + case 'NETWORK': + case 'UNAVAILABLE': + return t( + 'accounts.test.hint.unavailable', + 'The provider could not be reached. Check the network connection of the server and try again.' + ); + case 'RATE_LIMITED': case 'PROVIDER_RATE_LIMITED': return t( 'accounts.test.hint.rateLimited', diff --git a/admin/src/utils/settingsValidation.js b/admin/src/utils/settingsValidation.js index bdb1d22..623b6ed 100644 --- a/admin/src/utils/settingsValidation.js +++ b/admin/src/utils/settingsValidation.js @@ -9,6 +9,8 @@ import { isValidEmailAddress } from './emailValidation.mjs'; export const SETTINGS_DEFAULTS = Object.freeze({ enableLinkTracking: true, enableOpenTracking: true, + // Provider templates: count the provider's own opens and clicks. + providerTracking: false, trackingBaseUrl: '', defaultFromName: '', defaultFromEmail: '', diff --git a/docs/acceptance/2026-11-18-brevo-ses.md b/docs/acceptance/2026-11-18-brevo-ses.md new file mode 100644 index 0000000..2ee7b04 --- /dev/null +++ b/docs/acceptance/2026-11-18-brevo-ses.md @@ -0,0 +1,104 @@ +# Acceptance: Brevo, Amazon SES, language versions, provider opens and clicks + +Branch `feat/providers-brevo-ses`, stacked on `feat/provider-templates` (#20), which is stacked on `fix/provider-send-paths` (#23). The PR targets #20's branch and retargets automatically when #20 is merged. + +**Status: NOT ACCEPTED.** No live run against the real Brevo and Amazon SES APIs has been recorded. `~/.config/magic-mail-live/.env` exists but has no `BREVO_*` or `SES_*` variables (checked 2026-11-18, names only). Everything else below passed. This PR must not be merged before a passing live run is recorded in [Live suite](#live-suite), like #20 and #23. + +## Scope + +The "later ideas" of the P1 plan (workbench `docs/plans/2026-11-16-strapi-rfc-opportunities.md`, "Not in scope"): + +1. Brevo account type: send, wizard, connection check, webhooks, provider templates. +2. Amazon SES (v2, SigV4): send, wizard, connection check, SES templates, SNS event destination with signature verification. +3. Per-locale provider-template mapping (language versions). +4. Open and click counts for provider-rendered bodies from the providers' own events. + +## Evidence + +### 1. Old features unchanged + +| Check | Result | +| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Golden payloads | `tests/golden-send-payloads.test.js` (9) and `tests/provider-send-golden.test.js` (8) pass unchanged: SendGrid, Mailgun and SMTP requests are byte-identical. The new `providerTracking` log flag is only passed when true, so the recorded log inputs are unchanged too. | +| Full suite | `npm test` (Node 22.23.1, after the rebase onto #20 at `882a86a`): 915 tests, 912 pass, 0 fail, 3 skipped (PostgreSQL multi-process tests without `MAGIC_MAIL_TEST_PG_URL`, as before). Before the rebase this branch had 869 / 866 / 3 on top of 693 / 690 / 3. | +| Gates | `npm run lint`, `npm run format:check`, `npm run build`, `npm run verify`, `npm run verify:runtime`: clean. `npm audit --omit=dev`: 0 vulnerabilities. No dependency added (no AWS SDK). | + +### 2. Unit, contract and integration tests (new) + +| Suite | Tests | Covers | +| --------------------------- | ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `brevo-adapter` | 26 | config, send bodies, reply-to, attachments (no cid, extension list), header filtering incl. `X-Sib-*`/`X-Mailin-*`, correlation, error mapping without body leakage, webhook token (Bearer and custom header, constant time), event mapping from the official examples | +| `brevo-contract` | 11 | requests and fake responses validated against Brevo's official OpenAPI (`email-api.json` sha256 `d56adf66…`, `accounts-and-settings.json` sha256 `e9f90329…`; vendored subsets `bed15d6f…`, `c295294b…`); 7 documented spec deviations | +| `brevo-integration` | 19 | through the real router and provider-template service against a fake Brevo server: send, template sync (paging, inactive), template send with `params`, connection check without personal data, 401/403/429/5xx | +| `aws-sigv4` | 41 | all 38 cases of the official AWS SigV4 test suite (`awslabs/aws-c-auth` at `cf69fb7e…`, sha256 per vendored file), plus SES request signing | +| `ses-adapter` | 22 | config (region, keys or environment, configuration set, topic ARN), send (Simple and Template content, headers, attachments, tags, tracking overrides, 50-recipient and 40 MB limits), error mapping, event mapping | +| `ses-contract` | 6 | requests and fake responses validated against the official Smithy model of SES v2 (`aws/api-models-aws` at `9f371492…`, file sha256 `f34aeda9…`, vendored subset `c31527f0…`) | +| `ses-integration` | 12 | fake SES server that verifies the SigV4 signature: send, template sync and send, connection check, errors | +| `sns-verify` | 13 | SNS signature v1 and v2, wrong topic, foreign certificate hosts (`…amazonaws.com.evil.test`, `http:`), tampered messages, replay, subscription confirmation host rule | +| `provider-locales-tracking` | 20 | language tags (ReDoS time budget), version validation, exact → language → default selection, skipped unusable versions, recipient locale lookup only with a `locale` attribute, core mails with `meta.locale`, test-send `language`, provider tracking switches (SendGrid, Mailgun), engagement counting only for provider-tracked logs, clicked-URL reduction, webhook token reveal/rotate (403 for admin API tokens, no token in logs), provider switch to Brevo creates a token, connection check | +| `admin-brevo-ses-ui` | 6 | wizard state for Brevo and SES, version candidates, every Brevo/SES hint code translated, style guards for the new admin files | + +### 3. Browser acceptance + +Host: + +- 2026-11-18, isolated Strapi 5.62.0 host on 127.0.0.1:1398, Node 22.23.1. Plugin installed from the packed tarball of this branch; the installed `dist/server/index.{js,mjs}` and `dist/admin/index.{js,mjs}` are byte-identical to a fresh build of the final commit. React 18.3.1, react-dom 18.3.1, styled-components 6.6.0 and react-router-dom 6.30.6 once each. +- Random secrets (`.env` mode 600, never printed), admin created through `register-admin` with a generated password (mode 600 file). +- Egress blocked by a preload. The provider hosts (`api.brevo.com`, `email..amazonaws.com`, SendGrid, Mailgun) are redirected to local fake servers built from the test helpers, which validate every request against the pinned OpenAPI/Smithy documents and verify the SigV4 signature: 0 contract violations, every SES signature valid. 0 server-side egress attempts. The browser's only blocked request was core's `api.github.com` release check. +- Synthetic data only: `example.test` addresses, fake AWS key pair from the tests, synthetic Brevo and SES templates. +- SQLite and PostgreSQL 16 (own `initdb`, TCP on 127.0.0.1 only). + +HTTP checks on both databases (admin API with an admin session): Brevo and SES connection check 200 (SES reports the sandbox), SMTP check 400; Brevo edit DTO shows `apiKey` and `webhookToken` as `********`; token reveal 200 (43 characters); sync 200 with 6 templates (an inactive Brevo template as unpublished); Brevo variables reported as `name`, `vip` (without `params.`); language versions saved; a version from another provider 400; Brevo test send with `language: de-AT` sent the `Welcome DE` template (id 12); SES template test send 200; Brevo copy 400; Brevo webhook without token 401, wrong token 401, right token 200; unsigned SNS message 400; provider-tracking setting saved and read back. + +Found and fixed on the host: the test-send body field `locale` was stripped by `validate()` (Strapi system field), so the default template was sent. It is now `language`, with a controller-level regression test. + +Matrix (light and dark): SQLite at 1440, 768, 390 and 320 (12 states each: provider step, new Brevo credentials, Brevo edit with connection result and token, Replace-token dialog, SES edit with connection result, SES inline errors, SES environment credentials, template list, Brevo template dialog with language versions, a language version's dialog, SES template dialog, settings with the provider-tracking switch; 96 measured states); PostgreSQL at 1440 and 390 (48 states). Every state loaded. + +- Document overflow 0, nothing outside the viewport, no clipped text, no off-scale gaps and no row-height mismatches in every state. +- `lowContrast`: only white text on the existing brand gradients (Continue, Send test, dialog headers, the empty-state banner), the known measurement artifact of the earlier acceptance runs. +- `smallTargets`: the SES credential radios (DS `Radio`, 20 × 20 px; the label is part of the control and clickable, the WCAG 2.5.8 equivalent-target exception) and the existing NumberInput steppers of the queue and bounce sections on the settings page (not changed here). +- Inner horizontal scroll: the existing wizard body/stepper (also on SMTP accounts) and the existing tab strip at 390 and 320; nothing new. +- Locales de, fr, es, pt at 1440 and 320 (Brevo and SES credentials, Brevo template dialog, settings): no ICU placeholders or message ids, no English leftovers of the new strings, no "du" forms in German, no overflow or clipping. The only `{name}` match is the literal `{{name}}` code example in the SES resources box. +- Without a SendGrid, Mailgun, Brevo or SES account (PostgreSQL, after deleting them): no provider-template section and no provider-tracking switch. +- Console: 0 plugin messages. Remaining messages also appear on native pages (React Router future flag, `useRBAC`, `adminApi` reducerPath) or are the blocked `api.github.com` request. + +### Click paths (from the plugin entry page) + +| # | Task | Interactions | Steps | Result | +| --- | ------------------------------- | ------------------- | -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| 1 | Check a Brevo connection | 3 | Edit, Continue, Check connection | pass | +| 2 | Show the Brevo webhook token | 3 | Edit, Continue, Show webhook token | pass | +| 3 | Replace the token | 2 (+1 confirmation) | Replace token, confirm | pass: Escape cancels without a request and focus returns to Replace token; confirm sends exactly one rotate request | +| 4 | Check an Amazon SES connection | 3 | Edit, Continue, Check connection | pass (sandbox shown) | +| 5 | Add a language version | 4 | Email Templates tab, Open template, type language, pick template (saved on pick) | pass; an invalid language shows an inline error and sends nothing | +| 6 | Remove a language version | 3 | Email Templates tab, Open template, Remove | pass | +| 7 | Count provider opens and clicks | 4 | Settings, MagicMail Plugin Settings, switch, Save | pass (counted from the Settings menu) | +| 8 | Add a Brevo account | 9 | Add account, Brevo, Continue, name, from, Continue, API key, Continue, Create | form fields counted; the same wizard (and exception) as SendGrid and Mailgun | + +Keyboard: Escape closes the template dialog and focus returns to its Open button; Escape closes the Replace-token dialog and focus returns to its trigger. + +## Rebased onto #20 (2026-11-19) + +#20 was updated meanwhile (main 4.6.2, the SendGrid key check, display names, live suites per provider with `LIVE_PROVIDERS`). This branch was rebased onto `882a86a`. Conflicts: `client-errors.js` (both hint paths kept: the adapter hint first, then the SendGrid key check), `README.md` (live-suite paragraph merged), the test harness (same as before). `LIVE_PROVIDERS` now also accepts `brevo` and `ses`; the Brevo and SES suites honour it, and the SendGrid/Mailgun suites skip instead of failing when only Brevo or SES is selected (`tests/live-env-providers.test.js`). + +Smoke on the rebased build (fresh SQLite host with new random secrets, tarball 4.6.2, installed dist identical to the build): the HTTP checks above all gave the same results (Brevo test send with `language: de-AT` sent template 12; 0 contract violations; all SigV4 signatures valid); all 11 click-path checks pass; 48 measured states at 1440 and 390, light and dark, with document overflow 0, no clipping, nothing outside the viewport and the same pre-existing `lowContrast`/`smallTargets` hits; 0 plugin console messages. The full matrix, locales and PostgreSQL results above are from the pre-rebase commit `adfd98c`, whose plugin code is unchanged by the rebase apart from the `client-errors.js` merge. + +## Live suite + +`npm run test:live` now also runs `tests/live/brevo.live.test.js` (Brevo with `X-Sib-Sandbox: drop`, nothing delivered) and `tests/live/ses.live.test.js` (SES mailbox simulator only). Variables in `~/.config/magic-mail-live/.env` (never printed): + +- Brevo: `BREVO_API_KEY`, `BREVO_FROM`, `BREVO_TO`, optional `BREVO_TEMPLATE_ID`. +- Amazon SES: `SES_REGION`, `SES_ACCESS_KEY_ID`, `SES_SECRET_ACCESS_KEY`, `SES_FROM`, optional `SES_CONFIGURATION_SET`, `SES_TEMPLATE_NAME`. + +| Date | Provider | Tests | Result | +| ---------- | ----------------- | ----- | ----------------------------------------------------------------------------- | +| 2026-11-18 | Brevo, Amazon SES | 15 | **not run**: the variables are missing; all 15 skipped with the missing names | + +Things only the live run can confirm (unverified until then): the header Brevo sends for bearer webhook auth (`Authorization: Bearer` is assumed), the Brevo error texts used for specific hints, whether Brevo rejects duplicate recipients or standard headers, the batched-webhook body shape; that SES accepts `ConfigurationOverrides`, the 404 for an unknown template on SendEmail, and a real SNS signing certificate (tests use self-signed certificates; trust rests on HTTPS to the fixed AWS host). + +## Not covered + +- Queueing provider-template mails in the outbox (unchanged from #20). +- Brevo per-message tracking (Brevo has none; account setting). +- Copying Brevo templates as Magic Mail templates (Brevo's template language does not map to Mustache). +- China and ISO AWS regions (rejected), instance-metadata or ECS credentials (never fetched). diff --git a/docs/api.md b/docs/api.md index 07a8fc2..3ff8cd1 100644 --- a/docs/api.md +++ b/docs/api.md @@ -98,7 +98,8 @@ All admin routes live under `/magic-mail` on the Strapi server (not `/api`), req | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | | Accounts | `GET /accounts`, `GET /accounts/:accountId` | `read` | | | `POST /accounts`, `PUT /accounts/:accountId`, `DELETE /accounts/:accountId` | `manage` | -| | `POST /accounts/:accountId/test`, `POST /test-strapi-service` | `test-send` | +| | `POST /accounts/:accountId/test`, `POST /test-strapi-service`, `POST /accounts/:accountId/check` (read-only connection check of a Brevo or Amazon SES account, no email is sent) | `test-send` | +| | `POST /accounts/:accountId/webhook-token` with `{ "action": "reveal" \| "rotate" }` (Brevo webhook token; admin browser sessions only, admin API tokens get 403; 10 per minute; audit log line) | `manage` | | Routing rules | `GET /routing-rules`, `GET /routing-rules/:ruleId` | `read` | | | `POST /routing-rules`, `PUT /routing-rules/:ruleId`, `DELETE /routing-rules/:ruleId` | `manage` | | OAuth | `GET /oauth//auth`, `POST /oauth/create-account`, `POST /oauth/reconnect/:accountId` | `manage` | @@ -121,7 +122,11 @@ All admin routes live under `/magic-mail` on the Strapi server (not `/api`), req | Bounces | `GET /accounts/:accountId/bounce-monitor`, `GET /suppressions` | `read` | | | `POST /accounts/:accountId/bounce-monitor/test`, `POST /accounts/:accountId/bounce-monitor/check` (10 per minute), `DELETE /suppressions/:documentId`, `POST /suppressions/remove-address` | `manage` | -Test sends (`/accounts/:accountId/test`, `/test-strapi-service`, `/designer/templates/:id/test-send`, `/provider-templates/:key/test-send`) are limited to 10 per minute per admin. `:key` is a provider template key such as `sendgrid:welcome-email` (URL-encode the colon as `%3A` if your client requires it). The provider-template routes are described in the [sending guide](./sending.md#provider-templates-sendgrid-mailgun). +Test sends and connection checks (`/accounts/:accountId/test`, `/accounts/:accountId/check`, `/test-strapi-service`, `/designer/templates/:id/test-send`, `/provider-templates/:key/test-send`) share a limit of 10 per minute per admin. `PUT /provider-templates/:key/settings` takes `{ "fallbackTemplateReferenceId": number | null }`, `{ "locales": { "de": "brevo:welcome-de" } }` (replaces the language versions, `{}` clears them) or both. `POST /provider-templates/:key/test-send` also accepts an optional `language` (for example `de-AT`) to test a language version; without it the admin's interface language is used. + +The connection check answers `{ "ok": true, "provider": "ses", "details": { "region": "eu-west-1", "sandbox": true, "sendingEnabled": true, "sendQuota": { … } } }` or `{ "ok": false, "provider": "brevo", "code": "BREVO_IP_NOT_AUTHORIZED", "hintCode": "BREVO_IP_NOT_AUTHORIZED", "hint": "…" }`. The details never contain personal data (no account owner, address or company). + +Delivery webhooks on the Content API (public, verified per provider, 600 requests per minute): `POST /api/magic-mail/webhooks/sendgrid/:accountId`, `/mailgun/:accountId`, `/brevo/:accountId` (webhook token), `/ses/:accountId` (SNS signature and topic ARN). They answer `200 { "received": true }`, `401` for an unknown account, a missing secret or a bad signature or token, `400` for a malformed body. `:key` is a provider template key such as `sendgrid:welcome-email` (URL-encode the colon as `%3A` if your client requires it). The provider-template routes are described in the [sending guide](./sending.md#provider-templates-sendgrid-mailgun-brevo-amazon-ses). ### Example: create a routing rule diff --git a/docs/configuration.md b/docs/configuration.md index f22ccb5..da0e268 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -97,27 +97,35 @@ module.exports = () => ({ **Settings → MagicMail → Plugin Settings**, stored in the database (`GET`/`PUT /magic-mail/settings`): -| Setting | Default | Effect | -| ----------------------------- | --------- | ------------------------------------------------------------------------------------------------------- | -| Link tracking / Open tracking | on | Rewrite links / add the open pixel | -| Tracking base URL | empty | Public base for tracking URLs (else `server.url`) | -| Default from name | empty | Display name when neither the account nor the caller sets one | -| Default from email | empty | Reference only; emails always go out from the selected account's address | -| Unsubscribe header | on | Send `List-Unsubscribe` for every email type and use the plugin-wide URL | -| Unsubscribe URL | empty | Plugin-wide unsubscribe URL; `{{email}}` is replaced per recipient | -| `trackingFallbackUrl` (API) | empty | Where expired or unknown tracking links redirect; empty shows a static page | -| Queue failed sends | off | Store sends that failed after failover and retry them ([details](./delivery.md#retries-and-the-outbox)) | -| Retries per mail | 3 | Retries after the first try, 1 to 10 | -| Check recipient domains | on | Reject typo and reserved test domains ([details](./delivery.md#recipient-checks-before-sending)) | -| Test domains | automatic | Automatic: allowed outside production, rejected in production; or always allow / reject | -| Look up mail servers (MX) | off | Reject domains without a mail server | -| Block hard-bounced recipients | off | Reject sends to addresses on the suppression list | -| Bounce check interval | 5 | Minutes between mailbox checks, 1 to 60 ([details](./delivery.md#bounce-monitoring-mailbox)) | +| Setting | Default | Effect | +| ------------------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------- | +| Link tracking / Open tracking | on | Rewrite links / add the open pixel | +| Count provider opens and clicks | off | Provider templates: the provider tracks opens and clicks and its events are counted ([details](./delivery.md#provider-opens-and-clicks)) | +| Tracking base URL | empty | Public base for tracking URLs (else `server.url`) | +| Default from name | empty | Display name when neither the account nor the caller sets one | +| Default from email | empty | Reference only; emails always go out from the selected account's address | +| Unsubscribe header | on | Send `List-Unsubscribe` for every email type and use the plugin-wide URL | +| Unsubscribe URL | empty | Plugin-wide unsubscribe URL; `{{email}}` is replaced per recipient | +| `trackingFallbackUrl` (API) | empty | Where expired or unknown tracking links redirect; empty shows a static page | +| Queue failed sends | off | Store sends that failed after failover and retry them ([details](./delivery.md#retries-and-the-outbox)) | +| Retries per mail | 3 | Retries after the first try, 1 to 10 | +| Check recipient domains | on | Reject typo and reserved test domains ([details](./delivery.md#recipient-checks-before-sending)) | +| Test domains | automatic | Automatic: allowed outside production, rejected in production; or always allow / reject | +| Look up mail servers (MX) | off | Reject domains without a mail server | +| Block hard-bounced recipients | off | Reject sends to addresses on the suppression list | +| Bounce check interval | 5 | Minutes between mailbox checks, 1 to 60 ([details](./delivery.md#bounce-monitoring-mailbox)) | ### Account fields Name (unique), description, provider, from email and name, reply-to, encrypted credentials (SMTP password, API key, OAuth tokens, optional DKIM key), daily and hourly limit (0 = unlimited), priority (1 to 10, higher preferred), active and primary flags. +Provider config keys (`config`, encrypted; secrets come back as `********`): + +| Provider | Keys | +| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Brevo | `apiKey` (secret), `webhookToken` (secret, created by MagicMail; shown only through `POST /accounts/:accountId/webhook-token`) | +| Amazon SES | `region` (for example `eu-west-1`), `credentialSource` (`keys` or `environment`), `accessKeyId`, `secretAccessKey` (secret; both empty with `environment`), `configurationSetName` (optional), `snsTopicArn` (optional, required for the webhook). Changing `accessKeyId` or `credentialSource` requires the secret again. | + ### Service API ```javascript diff --git a/docs/delivery.md b/docs/delivery.md index 1362efb..e8873ce 100644 --- a/docs/delivery.md +++ b/docs/delivery.md @@ -28,7 +28,7 @@ Mention open and click tracking in your privacy notice. ## Bounces and complaints -SendGrid and Mailgun can tell MagicMail what happened to a message after they accepted it: a bounce, a spam complaint, a temporary failure, the final delivery or an unsubscribe. The webhooks are off until you save a verification key on the account. +SendGrid, Mailgun, Brevo and Amazon SES can tell MagicMail what happened to a message after they accepted it: a bounce, a spam complaint, a temporary failure, the final delivery or an unsubscribe. The webhooks are off until the account has its verification secret (SendGrid, Mailgun: a key you paste; Brevo: a token MagicMail creates; Amazon SES: the SNS topic ARN). **SendGrid** @@ -42,6 +42,22 @@ SendGrid and Mailgun can tell MagicMail what happened to a message after they ac 2. Edit the Mailgun account in MagicMail, paste it into **HTTP webhook signing key** and save. 3. Add the **Webhook URL** (`https:///api/magic-mail/webhooks/mailgun/`) in Mailgun for **Permanent Failure** and **Spam Complaints**. Optional: **Temporary Failure**, **Delivered** and **Unsubscribes** (only sent when unsubscribe tracking is on for the domain). +**Brevo** + +Brevo webhooks carry no signature, so MagicMail creates a random 256-bit webhook token for every Brevo account and accepts only requests that present it. + +1. Edit the Brevo account in MagicMail, copy the **Webhook URL** (`https:///api/magic-mail/webhooks/brevo/`) and select **Show webhook token** (only for admins signed in to the browser with the `manage` permission; every reveal is written to the server log as an audit line without the token). **Replace token** creates a new one after a confirmation; Brevo must then get the new token. +2. In Brevo open **Transactional → Settings → Webhooks → Add a new webhook**, paste the URL and select Delivered, Hard bounce, Soft bounce, Invalid email, Deferred, Blocked, Spam and Unsubscribed (plus Opened and Clicked for [provider opens and clicks](#provider-opens-and-clicks)). Do not select "First opening": unique and proxy opens are ignored. +3. Choose token authentication and paste the token. Through the API the same webhook is `POST https://api.brevo.com/v3/webhooks` with `{"type":"transactional","channel":"email","url":"","events":["delivered","hardBounce","softBounce","invalid","deferred","blocked","spam","unsubscribed","opened","click"],"auth":{"type":"bearer","token":""},"batched":true}`. MagicMail accepts the token as `Authorization: Bearer ` or in the custom header `X-Magic-Mail-Webhook-Token` (Brevo's `headers` option), compared in constant time. + +**Amazon SES** (event destination through SNS) + +1. In the SES configuration set of the account, add an **SNS** event destination for Delivery, Bounce, Complaint, Reject, Rendering failure and Delivery delay (plus Open and Click for provider opens and clicks). Use a **standard** SNS topic in the same region; SES needs permission to publish to it (`sns:Publish` for `ses.amazonaws.com`, restricted with `AWS:SourceAccount` and `AWS:SourceArn`). +2. Paste the topic ARN into **SNS topic ARN** on the account and save. Without it the webhook rejects every request. +3. In SNS create an **HTTPS** subscription to `https:///api/magic-mail/webhooks/ses/`. MagicMail verifies the subscription confirmation and confirms it itself. + +Every SNS message is verified before anything is read: the `TopicArn` must equal the saved ARN, the signing certificate must come from `https://sns..amazonaws.com/SimpleNotificationService-….pem` of the topic's region (no other host, no redirects, at most 16 KB, cached for an hour), and the signature (SignatureVersion 1 or 2) must match the canonical string AWS documents. Replayed SNS messages are ignored by their `MessageId`. + **What happens.** Every request is verified with the provider signature (SendGrid ECDSA over the raw body, Mailgun HMAC-SHA256) and a one-hour timestamp window; replays are ignored. Request bodies up to 1 MiB are accepted (SendGrid posts batches of up to 768 KB; change it with [`webhooks.maxBodyBytes`](./configuration.md#plugin-config)); larger ones get `413`. Every event of a batch is processed in the order of the provider timestamps. | Provider event | Email log | Event (`strapi.eventHub`) | @@ -54,6 +70,13 @@ SendGrid and Mailgun can tell MagicMail what happened to a message after they ac | SendGrid `group_resubscribe` | `unsubscribed: false` (only when newer than the unsubscribe) | `magic-mail.delivery.resubscribed` | | SendGrid `deferred`, Mailgun `failed` + `temporary` | **Deferred**, code such as `MAILGUN_DEFERRED_421` | `magic-mail.delivery.deferred` | | SendGrid `delivered`, Mailgun `delivered` | `deliveryConfirmedAt` set; a **Deferred** mail returns to **Sent** | `magic-mail.delivery.delivered` | +| Brevo `hard_bounce` and `invalid_email`, SES `Bounce` with type `Permanent` | **Bounced** (suppressible), code such as `BREVO_HARD_BOUNCE`, `SES_BOUNCE_GENERAL` (SES bounce subtype) | `magic-mail.delivery.bounced` | +| Brevo `soft_bounce` and `deferred`, SES `DeliveryDelay` | **Deferred** | `magic-mail.delivery.deferred` | +| Brevo `blocked`, SES `Bounce` with type `Transient` or `Undetermined` (SES publishes these only after it stopped retrying) | final status `blocked`, not suppressed | `magic-mail.delivery.blocked` | +| Brevo `error`, SES `Reject` and `Rendering Failure` | **Failed** | `magic-mail.delivery.dropped` | +| Brevo `spam`, SES `Complaint` | `complained: true` | `magic-mail.delivery.complained` | +| Brevo `unsubscribed`, SES `Subscription` (unsubscribe) | `unsubscribed: true` | `magic-mail.delivery.unsubscribed` | +| Brevo `delivered`, SES `Delivery` | `deliveryConfirmedAt` set | `magic-mail.delivery.delivered` | Rules: @@ -73,10 +96,20 @@ const events = await strapi .getDeliveryEvents([messageId]); // [{ messageId, bounced, complained, reasonCode }] ``` -The URL uses the default REST prefix `/api`; adjust it if you changed `api.rest.prefix`. Behind a reverse proxy, enable `server.proxy` so the rate limit (600 requests per minute and IP) sees the real client address. SMTP, Gmail, Microsoft 365 and Yahoo accounts have no bounce webhook; use [bounce monitoring](#bounce-monitoring-mailbox) for them. +The URL uses the default REST prefix `/api`; adjust it if you changed `api.rest.prefix`. Behind a reverse proxy, enable `server.proxy` so the rate limit (600 requests per minute and IP) sees the real client address. Brevo and Amazon SES use the same URL pattern (`/webhooks/brevo/`, `/webhooks/ses/`) and the same rate limit. SMTP, Gmail, Microsoft 365 and Yahoo accounts have no bounce webhook; use [bounce monitoring](#bounce-monitoring-mailbox) for them. **Checking the webhooks against your real accounts.** [Live webhook checks](./live-webhook-checks.md) lists the steps: the providers' test buttons, a real bounce to a mailbox that does not exist, and what MagicMail should show afterwards. +### Provider opens and clicks + +Provider templates are rendered by the provider, so MagicMail can not add its pixel or rewrite their links. **Plugin Settings → Open Tracking → Count provider opens and clicks** (off by default; visible once a SendGrid, Mailgun, Brevo or Amazon SES account exists) lets the provider track them instead: + +- On a provider-template send, MagicMail asks the provider to track: SendGrid `tracking_settings` open and click on (not in the text part), Mailgun `o:tracking-opens=yes` and `o:tracking-clicks=htmlonly`, SES `ConfigurationOverrides.Tracking` on (needs a configuration set with Open and Click events). Brevo tracks at account level. The email log is marked as provider-tracked. +- The provider's webhook events (SendGrid `open`/`click`, Mailgun `opened`/`clicked`, Brevo `opened`/`click`, SES `Open`/`Click`) then increase the open and click counts of that log and appear as open and click events in Email Analytics, de-duplicated by provider event id. +- Only provider-tracked logs count these events. For every other mail MagicMail's own pixel and links are the source, and provider events are ignored, so nothing is counted twice. +- A clicked link is stored as origin and path only (no query string, no fragment); password-reset, confirmation and other sensitive links are not stored. No IP address or user agent from the provider is stored. +- A caller's `enableTracking: false` keeps tracking off for that mail; normal (non-template) sends never change. + ### Bounce monitoring (mailbox) SMTP, Gmail, Microsoft 365 and Yahoo accounts have no webhook. Their bounces arrive later as a report in the sending mailbox ("Address not found", "Undeliverable", "Mail delivery failed"). MagicMail can read those reports and mark the matching email as **Bounced** or **Deferred**. It is off by default and turned on per account in the account wizard (step **Settings → Bounce monitoring**). diff --git a/docs/sending.md b/docs/sending.md index d0133fa..869a1c4 100644 --- a/docs/sending.md +++ b/docs/sending.md @@ -8,7 +8,7 @@ Part of the [MagicMail documentation](https://schero94.github.io/Magic-Mail/). S - [Provider setup](#provider-setup) - [Routing rules and quotas](#routing-rules-and-quotas) - [Templates and the visual editor](#templates-and-the-visual-editor) -- [Provider templates (SendGrid, Mailgun)](#provider-templates-sendgrid-mailgun) +- [Provider templates (SendGrid, Mailgun, Brevo, Amazon SES)](#provider-templates-sendgrid-mailgun-brevo-amazon-ses) ## Sending email @@ -177,7 +177,7 @@ The provider value `nodemailer` is an alias of `smtp`. ### SendGrid -1. In SendGrid go to **Settings → API Keys → Create API Key**, choose **Custom Access** and grant only **Mail Send**. A Full Access key is not needed. Add **Template Engine → Read Access** only if you want to use [provider templates](#provider-templates-sendgrid-mailgun). +1. In SendGrid go to **Settings → API Keys → Create API Key**, choose **Custom Access** and grant only **Mail Send**. A Full Access key is not needed. Add **Template Engine → Read Access** only if you want to use [provider templates](#provider-templates-sendgrid-mailgun-brevo-amazon-ses). 2. In MagicMail choose **SendGrid** and paste the key. The From address must be a verified Sender Identity in SendGrid (single sender or authenticated domain). 3. Choose the region. **Global** fits every account except EU regional subusers, which need **EU**. @@ -216,18 +216,80 @@ What MagicMail adds to each Mailgun message: - The variables `v:magicmail_email_type`, `v:magicmail_priority` and `v:magicmail_id` (the email log id), and `o:tag` with the email type. Mailgun shows variables to the recipient in the `X-Mailgun-Variables` header; they contain no personal data. - Messages are refused before the request when headers and options exceed Mailgun's 16 KB limit or the estimated message size is 25 MB or more. +### Brevo + +1. In Brevo go to **SMTP & API → API keys → Generate a new API key**. Use an API key (`xkeysib-…`), not an SMTP key. If **Security → Authorised IPs** blocks unknown addresses, authorise the IP address of your Strapi server. +2. In MagicMail choose **Brevo** and paste the key. The From address must be a verified sender or belong to an authenticated domain in Brevo. Brevo has one API host for every account (`https://api.brevo.com/v3`); there is no region to choose. +3. Save, then use **Check connection**: it reads `GET /v3/account` with the stored key (no email is sent) and names the cause when it fails (invalid key, IP not authorised, account still under validation, no credits). + +What MagicMail sends to Brevo (`POST /v3/smtp/email`, header `api-key`): + +- `sender`, `to`, `cc`, `bcc` (every address once), one `replyTo` (several reply-to addresses are refused with a 400), `subject`, `htmlContent` and `textContent`. +- Attachments as base64 `content` with a `name`. Brevo does not support inline (`cid`) images and accepts only certain file extensions; both are refused before the request with a clear error. Brevo accepts at most 20 MB per message including attachments. +- The filtered custom headers, plus `X-Mailin-custom: magicmail_id=` (Brevo echoes it in webhooks) and the email type as a tag. Caller headers named `X-Sib-*` or `X-Mailin-*` are dropped. +- Open and click tracking is an account-wide Brevo setting; there is no per-message switch. + +### Amazon SES + +1. Verify the From address or its domain in Amazon SES **in the region you will use**. While the AWS account is in the SES sandbox, every recipient must be verified too (the [mailbox simulator](https://docs.aws.amazon.com/ses/latest/dg/send-an-email-from-console.html) addresses such as `success@simulator.amazonses.com` always work). +2. Create an IAM user with only these permissions and an access key for it: + + ```json + { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": "ses:SendEmail", + "Resource": [ + "arn:aws:ses:::identity/", + "arn:aws:ses:::configuration-set/", + "arn:aws:ses:::template/*" + ] + }, + { + "Effect": "Allow", + "Action": ["ses:GetAccount", "ses:ListEmailTemplates"], + "Resource": "*" + }, + { + "Effect": "Allow", + "Action": "ses:GetEmailTemplate", + "Resource": "arn:aws:ses:::template/*" + } + ] + } + ``` + +3. In MagicMail choose **Amazon SES**, enter the region (for example `eu-west-1`) and the access key ID and secret access key. Instead of a key you can choose **Server environment variables**: MagicMail then reads `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` and, for temporary role credentials, `AWS_SESSION_TOKEN` from the Strapi process at every request. Use this when your platform injects role credentials as environment variables. MagicMail never calls the EC2 instance-metadata or ECS credential endpoints. +4. Optional: a **configuration set** (needed for bounce, complaint and delivery events and for open and click tracking) and the **SNS topic ARN** for the [webhook](./delivery.md#bounces-and-complaints). + ![Account wizard, Amazon SES credentials step: region, IAM access key or server environment credentials, configuration set and Check connection](https://raw.githubusercontent.com/Schero94/Magic-Mail/main/docs/site/img/readme/ses-account.webp) + +5. Save, then **Check connection**: it reads `GET /v2/email/account` (no email is sent) and shows whether the account is still in the sandbox and whether sending is enabled. + +MagicMail calls the SES v2 API (`https://email..amazonaws.com`) with requests signed by AWS Signature Version 4, implemented with Node's `crypto` and tested against the official AWS SigV4 test suite (no AWS SDK is installed). China (`cn-*`) and ISO regions are rejected; GovCloud works. + +What MagicMail sends to Amazon SES (`SendEmail`): + +- `FromEmailAddress`, `Destination` (to, cc, bcc; at most 50 recipients in total, an SES limit), `ReplyToAddresses`, and `Content.Simple` with subject, text, HTML, the filtered headers (at most 15) and attachments. +- `EmailTags` `magicmail_id` and `magicmail_email_type`, and the configuration set when one is saved. +- `ConfigurationOverrides.Tracking` switches SES open/click tracking off for the parts MagicMail tracks itself. +- Messages are refused before the request at 40 MB (the SES v2 limit including attachments). + ### Provider comparison -| Provider | Authentication | Transport | DKIM | -| ------------- | --------------------- | --------------------------- | -------------------- | -| Gmail | OAuth 2.0 | Gmail API | by Google | -| Microsoft 365 | OAuth 2.0 (Entra ID) | Microsoft Graph `sendMail` | by Microsoft | -| Yahoo Mail | OAuth 2.0 | SMTP with XOAUTH2 | by Yahoo | -| SMTP | Username and password | Nodemailer, any SMTP server | optional (see above) | -| SendGrid | API key | HTTPS API (v3) | by SendGrid | -| Mailgun | API key + domain | HTTPS API (US or EU region) | by Mailgun | +| Provider | Authentication | Transport | DKIM | +| ------------- | ----------------------------------------- | -------------------------------------------------------- | ------------------------- | +| Gmail | OAuth 2.0 | Gmail API | by Google | +| Microsoft 365 | OAuth 2.0 (Entra ID) | Microsoft Graph `sendMail` | by Microsoft | +| Yahoo Mail | OAuth 2.0 | SMTP with XOAUTH2 | by Yahoo | +| SMTP | Username and password | Nodemailer, any SMTP server | optional (see above) | +| SendGrid | API key | HTTPS API (v3) | by SendGrid | +| Mailgun | API key + domain | HTTPS API (US or EU region) | by Mailgun | +| Brevo | API key | HTTPS API (v3) | by Brevo | +| Amazon SES | IAM access key or environment credentials | HTTPS API (v2, SigV4, any commercial or GovCloud region) | by Amazon SES (Easy DKIM) | -All providers support attachments, inline images (`cid`) and custom headers. +All providers support attachments and custom headers. Inline images (`cid`) work everywhere except Brevo. ## Routing rules and quotas @@ -387,15 +449,15 @@ module.exports = [ With `designer.scriptUrl` (self-hosted `embed.js`) put that origin into `script-src` instead; the editor iframe still loads from `editor.unlayer.com`, so keep it in `frame-src`. The Unlayer script runs in the admin origin. Only allow it if you accept that trust. -## Provider templates (SendGrid, Mailgun) +## Provider templates (SendGrid, Mailgun, Brevo, Amazon SES) -If your team designs emails in SendGrid or Mailgun, MagicMail can send those templates while routing, failover, quotas and the delivery log stay in MagicMail. Nothing changes until a SendGrid or Mailgun account exists; then a **Provider templates** section appears under your templates. +If your team designs emails in SendGrid, Mailgun, Brevo or Amazon SES, MagicMail can send those templates while routing, failover, quotas and the delivery log stay in MagicMail. Nothing changes until such an account exists; then a **Provider templates** section appears under your templates. ![Provider templates under the local templates: a SendGrid and a Mailgun template with provider badge, change date at the provider, the accounts that have it and the status](https://raw.githubusercontent.com/Schero94/Magic-Mail/main/docs/site/img/provider-templates.webp) **How it works** -1. MagicMail reads the templates of every SendGrid and Mailgun account with the stored, encrypted API key: SendGrid dynamic templates, Mailgun templates of the account's sending domain and account-level Mailgun templates. It never writes to the provider. The list refreshes itself when it is older than 10 minutes; **Sync** refreshes it at once. +1. MagicMail reads the templates of every SendGrid, Mailgun, Brevo and Amazon SES account with the stored, encrypted credentials: SendGrid dynamic templates, Mailgun templates of the account's sending domain and account-level Mailgun templates, Brevo transactional templates (inactive ones are shown as **No active version**) and SES email templates of the account's region. It never writes to the provider. The list refreshes itself when it is older than 10 minutes; **Sync** refreshes it at once. 2. Each template gets a key from its provider and name, for example `sendgrid:welcome-email` or `mailgun:newsletter-digest`. The key is the same in every environment, so code and settings do not change between staging and production. If the provider id of a template changes (for example after a database copy to another environment) but a template with the same name exists, MagicMail matches it by name and shows **Matched by name**. 3. **Open** shows a sandboxed preview, the variables the template uses, a code example, **Send test** (to your own admin address unless you enter another one; it uses the same sample values as local template tests) and **Copy as Magic Mail template**. @@ -416,19 +478,20 @@ await strapi }); ``` -The `data` object is the one a local template gets: MagicMail sends it as SendGrid `dynamic_template_data` or Mailgun `t:variables`. Both providers use Handlebars with top-level keys, so `{{name}}`, `{{user.email}}` and `{{{html}}}` keep their names. Before sending, the data is converted to plain JSON: dates become ISO strings, functions and `undefined` are dropped, cycles and values such as `Map` or `BigInt` are rejected with a 400 that names the field, never the value. - -| Rule | Behaviour | -| ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| Which accounts send | Only accounts where the sync found the template. Routing rules, the primary account and failover work as usual among those accounts. An explicit `accountName` without the template is an error. | -| Subject | The template's subject. SendGrid always uses the template subject (use `{{subject}}` in it and pass `subject` in `data` for a per-mail subject). Mailgun uses `subject` when you pass one and the template's Subject header otherwise; a Mailgun template without a Subject header needs `subject`. | -| Sender | The MagicMail account's verified From, as for every other mail. | -| Missing or unpublished template | A clear error naming the template (`MAGIC_MAIL_PROVIDER_TEMPLATE_UNAVAILABLE`, `MAGIC_MAIL_PROVIDER_TEMPLATE_UNKNOWN`). No other body is sent. | -| Fallback | Optional, per template: **Fallback template** in the dialog sends a local MagicMail template with the same `data` instead, but only when no provider accepted the message (missing template, provider refusal, no account available). An ambiguous error (for example a timeout after sending) never triggers it. | -| Size limits | Mailgun accepts 16 KB for all send options (`t:variables` plus headers); SendGrid accepts messages under 30 MB. MagicMail also bounds template data to 1 MB. Larger mails fail before anything is sent with `MAGIC_MAIL_PROVIDER_TEMPLATE_TOO_LARGE`. For Mailgun the 16 KB also include the `v:magicmail_*` variables and `o:tag` that MagicMail adds to every send. | -| Tracking | The provider renders the body, so MagicMail adds no open pixel or link tracking. Use the provider's tracking settings. | -| Log | The delivery log stores the template key and the variable names, never the values. | -| Not available | The public Content API (`/api/magic-mail/send`) does not accept `providerTemplate`; the outbox does not queue provider-template mails in this release. Brevo, Amazon SES and SMTP/OAuth accounts have no provider templates. | +The `data` object is the one a local template gets: MagicMail sends it as SendGrid `dynamic_template_data`, Mailgun `t:variables`, Brevo `params` or SES `TemplateData`. SendGrid, Mailgun and SES use Handlebars with top-level keys, so `{{name}}`, `{{user.email}}` and `{{{html}}}` keep their names. Brevo templates read the same data under `params`: a Brevo template writes `{{ params.name }}` and you still pass `name`; the dialog lists the variables without the `params.` prefix. Before sending, the data is converted to plain JSON: dates become ISO strings, functions and `undefined` are dropped, cycles and values such as `Map` or `BigInt` are rejected with a 400 that names the field, never the value. + +| Rule | Behaviour | +| ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Which accounts send | Only accounts where the sync found the template. Routing rules, the primary account and failover work as usual among those accounts. An explicit `accountName` without the template is an error. | +| Subject | The template's subject. SendGrid always uses the template subject (use `{{subject}}` in it and pass `subject` in `data` for a per-mail subject). Mailgun uses `subject` when you pass one and the template's Subject header otherwise; a Mailgun template without a Subject header needs `subject`. | +| Sender | The MagicMail account's verified From, as for every other mail. | +| Missing or unpublished template | A clear error naming the template (`MAGIC_MAIL_PROVIDER_TEMPLATE_UNAVAILABLE`, `MAGIC_MAIL_PROVIDER_TEMPLATE_UNKNOWN`). No other body is sent. | +| Fallback | Optional, per template: **Fallback template** in the dialog sends a local MagicMail template with the same `data` instead, but only when no provider accepted the message (missing template, provider refusal, no account available). An ambiguous error (for example a timeout after sending) never triggers it. | +| Size limits | Mailgun accepts 16 KB for all send options (`t:variables` plus headers); SendGrid accepts messages under 30 MB. MagicMail also bounds template data to 1 MB. Larger mails fail before anything is sent with `MAGIC_MAIL_PROVIDER_TEMPLATE_TOO_LARGE`. For Mailgun the 16 KB also include the `v:magicmail_*` variables and `o:tag` that MagicMail adds to every send. | +| Tracking | The provider renders the body, so MagicMail adds no open pixel or link tracking. With **Count provider opens and clicks** (Plugin Settings, off by default) MagicMail asks SendGrid, Mailgun and SES to track the template mail and counts their open and click webhook events in Email Analytics; Brevo tracks at account level and its `opened`/`click` events are counted the same way. See [provider opens and clicks](./delivery.md#provider-opens-and-clicks). | +| Language versions | Optional, per template: see [Language versions](#language-versions) below. | +| Log | The delivery log stores the template key and the variable names, never the values. | +| Not available | The public Content API (`/api/magic-mail/send`) does not accept `providerTemplate`; the outbox does not queue provider-template mails in this release. SMTP and OAuth accounts have no provider templates. Brevo templates can not be copied as Magic Mail templates (Brevo's own template language does not map to Mustache). SES ignores a caller `subject` for templates (SES does not allow one). | **Password reset and email confirmation** @@ -440,10 +503,32 @@ The `data` object is the one a local template gets: MagicMail sends it as SendGr | `USER` and `user` | `id`, `email`, `username` and, when present, `firstname` and `lastname`. Never the whole user. | | `url` | The finished link: `URL` with `code=TOKEN` (reset) or `confirmation=CODE` (confirmation), built with `URL`/`searchParams` | | `baseUrl`, `serverUrl`, `adminUrl`, `token` or `code` | camelCase copies | -| `meta` | `templateKey`, `payloadVersion: 1`, `coreEmailType` | +| `meta` | `templateKey`, `payloadVersion: 1`, `coreEmailType` and, when the user has a stored locale, `locale` | The dialog lists these names and warns about variables the template uses that MagicMail does not send. By default a failing provider template is reported as an error; tick **send the Magic Mail designer version instead** to fall back. When the chosen template is deleted or unpublished at the provider, the Core emails tab and the MagicMail dashboard show a red notice. +### Language versions + +![Provider template dialog for a Brevo template with the language versions de and fr, a language field and a template picker](https://raw.githubusercontent.com/Schero94/Magic-Mail/main/docs/site/img/readme/language-versions.webp) + +A provider template can have one version per language. Create the translated templates at the provider (for example `Welcome`, `Welcome DE`, `Welcome FR`), sync, open the default template and add **Language versions**: type a language code (`de`, `fr`, `pt-BR`) and pick the template from the list. Changes are saved at once. You keep sending the default key; MagicMail picks the version: + +```javascript +await strapi + .plugin('magic-mail') + .service('email-router') + .send({ + to: 'user@example.com', + providerTemplate: 'brevo:welcome', + locale: 'de-AT', + data: { name: 'Ada' }, + }); +``` + +1. The language: `locale` passed to `send()`; otherwise the recipient's stored locale, when the Users & Permissions user content type has a `locale` attribute (string or enumeration) and the mail has exactly one recipient. Core emails (password reset, email confirmation) use the user's stored locale the same way and send it as `meta.locale`. **Send test** uses your admin interface language. +2. The version: the exact language tag (`de-AT`), then its language (`de`), then the default template. A version that is deleted or unpublished at the provider is skipped, and the next candidate is used, so a broken translation never blocks the mail. +3. Rules: versions must come from the same provider and are picked from the synced list (no ids are typed); a version can not have versions of its own. The delivery log records the requested key, the sent version and the language. An invalid `locale` is a 400. + **Convert for provider** The code snippets dialog of a local template has **Convert for SendGrid or Mailgun**: it shows the HTML and subject with Mustache logic translated to Handlebars (`{{#list}}` becomes `{{#if list}}` with a comment to use `{{#each}}` for lists, `{{^flag}}` becomes `{{#unless flag}}`, `{{.}}` becomes `{{this}}`) for you to paste into a provider template. **Copy as Magic Mail template** does the reverse for a provider template and lists everything that does not carry over (for example `{{#equal}}` or `{{else if}}`). @@ -451,4 +536,5 @@ The code snippets dialog of a local template has **Convert for SendGrid or Mailg **How this is verified** - Every request MagicMail builds for these features (template list with pagination, template detail, send with `template_id` and `dynamic_template_data`, Mailgun domain and account templates, send with `template` and `t:variables`, EU hosts) is validated in CI against the providers' official OpenAPI documents ([twilio/sendgrid-oai](https://github.com/twilio/sendgrid-oai), pinned by commit, and the [Mailgun API reference](https://documentation.mailgun.com/docs/mailgun/api-reference/send/mailgun/templates)), together with the responses of the fake SendGrid and Mailgun servers the integration tests use. -- `npm run test:live` runs the same flows against the real SendGrid (sandbox mode, nothing delivered) and Mailgun (test mode, nothing delivered) APIs with your own test accounts; see [Contributing](https://github.com/Schero94/Magic-Mail#contributing). Live verification status: **pending** (no live run recorded yet). +- Brevo requests and fake responses are validated against Brevo's official OpenAPI documents (`email-api.json`, `accounts-and-settings.json` from developers.brevo.com, pinned by SHA-256). Amazon SES requests are validated against the official Smithy model of SES v2 ([aws/api-models-aws](https://github.com/aws/api-models-aws), pinned by commit), and the request signing against all 38 cases of the official AWS SigV4 test suite. +- `npm run test:live` runs the same flows against the real SendGrid (sandbox mode, nothing delivered) and Mailgun (test mode, nothing delivered) APIs with your own test accounts; see [Contributing](https://github.com/Schero94/Magic-Mail#contributing). Brevo runs with the sandbox header `X-Sib-Sandbox: drop` (nothing delivered) and SES only to the mailbox simulator. Live verification status: **pending** (no live run recorded yet). diff --git a/docs/site/img/readme/brevo-account.webp b/docs/site/img/readme/brevo-account.webp new file mode 100644 index 0000000000000000000000000000000000000000..5c7b2f841021e1a4d91dd12e6b5b7135bd967427 GIT binary patch literal 71600 zcmbq)bzEFawl(hVF2P-bCb+v>a0ng<4#C~sCAho0yGw8l?(Po#K{9vdzIk(J=KVhY zIo(uspE^}r)>?bFg1CrC0VXhzs<42ZiW~<~%Ij+@Qpi+bYAdJ)2%b2J3~90)60%HY zvH1#=Ak(i;1WjIrW%<_qFtxier6 zFylV;1mvLrU;v~qZUS^_RPRn7+X2r#fLxDK0N|JokZ_y5UjE4b9I*`WMqES$0L}sT zub%+iOuPUC0Hy6Ege&b$?jx=U_YsF4JMB$?NPyOh;IzjePu!E^?fB*DsYknuJfQl; zqu)3mzz^_w%72tK0K~cVJ_p=-TzT9B`ds&(cb^k($5$-R+#{dDU*?|LPucI&BO`_Y zX&%`xhcA*hvNQF^I`*>w0P2m;JmwOh5by(l_@Z$OxjMeZd*%^$EqIN1sdMi!_5=jr zdszU)%n{!4*1ah5#sDH7z0RPYDV}zZb(#}y0nhCVfV$_ITf*!7fC49$5JwgC(#!k?3-u&sitVzh}SxBf_pCg&uU| z2^Ys!UOcHulEEasGxHXkXhYYtn95fia(8BL+9$I@E$yjhLzbx(iN9LKhJT?R$4*$sjVuU z_&?4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*_(Hr{8?F<3%pH z#mM2yKqytF)+v;pk|IkcedG|@1!;~?>kCzkJJt1oBo+}!^Ok_Uy@8{h@_2v%GJk4w zQj(`C(U@X-T$zhf4UR^qab+o3j5?G_^i#e9DKiY}mX{bb&^ z0ZPQqYmczrbCH#P{$25PgJTSP3FsmKbGcJ#p#TaHIp__ox!_P+JsiTX&tI@m%YCnP ztlTPNcD22v4jELpFRO~;g5}k zE{L*xMlT9#kCbPkzhlnS!YB|H+^IoSj$3QWYm-f!CD8gfmjs+rL0s;yWL?LS-2?U; zpbT%GF?-GwS;2v}q|~}P#rOK(DN%;wmK`M(dH>C-b|cfTNI3HGPhk*}H(T;WW09Lh z74XVfPr=a@AZZi>-LA$vD;Nnv`l&YP>FljE{f&D^k%+?RrjDgP#2AN&xWicL3it&| zd>@-iM51KnDU(SLjWhUZ2+tp6e}{t=cdMV;IK`d)pUvL;$K_avkSTbo^D zP_sJMPYTs5C?9Xk%=F*eCp?u$?$6fB$TsuExr&)ljnHJeX+kNAFaQMzAM5OPF6?Tv!EC?Eu`}5H P>z5K}S%)%WfB*mhF#zU0 literal 0 HcmV?d00001 diff --git a/docs/upgrading.md b/docs/upgrading.md index c652822..b41f7a9 100644 --- a/docs/upgrading.md +++ b/docs/upgrading.md @@ -10,6 +10,10 @@ Part of the [MagicMail documentation](https://schero94.github.io/Magic-Mail/). S The full list is in [CHANGELOG.md](../CHANGELOG.md). Upgrade one minor or major at a time and read each step. +### Upgrading to the release with Brevo and Amazon SES + +Nothing to do. Two account types (`brevo`, `ses`) and two webhook routes are added; the email log gets an optional `providerTracking` flag and the settings an optional `providerTracking` switch (off). Existing SendGrid, Mailgun and SMTP sends are byte-identical (golden tests). Provider-template keys may now start with `brevo:` or `ses:`. `PUT /magic-mail/provider-templates/:key/settings` now also accepts `locales`; `fallbackTemplateReferenceId` became optional (at least one of them is required). + ### Upgrading to the release with provider templates Nothing to do. A new collection `magic_mail_provider_templates` is created on start, and nothing changes for projects without a SendGrid or Mailgun account. Sends without a provider template produce the same provider requests as in the release with the SendGrid EU region and the safer SendGrid/Mailgun send paths. To sync SendGrid templates, the API key needs **Template Engine → Read Access** in addition to **Mail Send**. diff --git a/server/src/bootstrap.js b/server/src/bootstrap.js index 8aba8b0..2ef6c10 100644 --- a/server/src/bootstrap.js +++ b/server/src/bootstrap.js @@ -331,11 +331,24 @@ async function routeCoreMailToProviderTemplate(strapi, log, coreMail, payload, c const router = strapi.plugin('magic-mail').service('email-router'); // The designer body and subject are replaced by the provider template. const { html, text, subject, data, templateData, ...rest } = payload; + // The user's stored locale (when the user content type has a `locale` + // attribute) picks the language version and is sent as meta.locale. + let locale; + try { + locale = + typeof router.recipientLocale === 'function' + ? await router.recipientLocale(payload.to) + : null; + } catch { + locale = null; + } const providerPayload = { ...rest, providerTemplate: design.providerTemplate, + ...(locale ? { locale } : {}), templateData: buildCoreMailPayload(coreMail.coreEmailType, coreMail.data, { templateKey: design.providerTemplate, + ...(locale ? { locale } : {}), }), }; log.debug('[EMAIL] Routing a core email through its provider template'); diff --git a/server/src/content-types/email-account/schema.json b/server/src/content-types/email-account/schema.json index 764ecf1..34482f3 100644 --- a/server/src/content-types/email-account/schema.json +++ b/server/src/content-types/email-account/schema.json @@ -36,7 +36,9 @@ "yahoo-oauth", "sendgrid", "mailgun", - "nodemailer" + "nodemailer", + "brevo", + "ses" ], "required": true, "default": "smtp" diff --git a/server/src/content-types/email-log/schema.json b/server/src/content-types/email-log/schema.json index ce4728b..584a75d 100644 --- a/server/src/content-types/email-log/schema.json +++ b/server/src/content-types/email-log/schema.json @@ -93,6 +93,10 @@ "type": "integer", "default": 0 }, + "providerTracking": { + "type": "boolean", + "default": false + }, "bounced": { "type": "boolean", "default": false diff --git a/server/src/content-types/plugin-settings/schema.json b/server/src/content-types/plugin-settings/schema.json index 743e36b..532aca4 100644 --- a/server/src/content-types/plugin-settings/schema.json +++ b/server/src/content-types/plugin-settings/schema.json @@ -29,6 +29,11 @@ "default": true, "configurable": false }, + "providerTracking": { + "type": "boolean", + "default": false, + "configurable": false + }, "trackingBaseUrl": { "type": "string", "configurable": false diff --git a/server/src/content-types/provider-template/schema.json b/server/src/content-types/provider-template/schema.json index 85e1318..bc59701 100644 --- a/server/src/content-types/provider-template/schema.json +++ b/server/src/content-types/provider-template/schema.json @@ -5,7 +5,7 @@ "singularName": "provider-template", "pluralName": "provider-templates", "displayName": "Provider Template", - "description": "Read-only copy of a SendGrid or Mailgun template, one row per account that has it" + "description": "Read-only copy of a SendGrid, Mailgun, Brevo or Amazon SES template, one row per account that has it" }, "options": { "draftAndPublish": false @@ -26,7 +26,7 @@ }, "provider": { "type": "enumeration", - "enum": ["sendgrid", "mailgun"], + "enum": ["sendgrid", "mailgun", "brevo", "ses"], "required": true }, "accountDocumentId": { diff --git a/server/src/controllers/accounts.js b/server/src/controllers/accounts.js index f99480b..30ec818 100644 --- a/server/src/controllers/accounts.js +++ b/server/src/controllers/accounts.js @@ -1,5 +1,6 @@ 'use strict'; +const { errors } = require('@strapi/utils'); const { validate, handleControllerError } = require('../validation'); const { toAccountListDTO } = require('../utils/account-dto'); const { toClientSendMessage, describeErrorForLog } = require('../utils/client-errors'); @@ -154,6 +155,70 @@ module.exports = { } }, + /** + * Shows or rotates the Brevo webhook token (needed once, when the webhook + * is set up in Brevo). Only an admin signed in to the browser may do this; + * admin API tokens are refused. + * + * @route POST /magic-mail/accounts/:accountId/webhook-token + * @auth admin session only (strategy `admin`); permission plugin::magic-mail.manage + * @param {import('koa').Context} ctx - body `{ action: 'reveal'|'rotate' }` + * @returns {Promise} 200 `{ data: { token, rotated } }`; 400 other + * provider or invalid body; 403 admin API token; 404 unknown account + * @sideeffect rotate stores a new token; every call writes an audit log line. + */ + async webhookToken(ctx) { + try { + if (ctx.state?.auth?.strategy?.name !== 'admin') { + throw new errors.ForbiddenError('Sign in to the admin panel to view webhook tokens'); + } + const { action } = validate('accounts.webhookToken', ctx.request.body || {}); + const accountManager = strapi.plugin('magic-mail').service('account-manager'); + const result = await accountManager.webhookToken( + ctx.params.accountId, + action, + ctx.state.user + ); + ctx.set('Cache-Control', 'no-store'); + ctx.body = { data: { token: result.token, rotated: result.rotated } }; + } catch (err) { + handleControllerError( + ctx, + err, + '[magic-mail] Error reading the webhook token', + 'Error reading the webhook token' + ); + } + }, + + /** + * Read-only connection check of a saved Brevo or Amazon SES account: the + * stored credentials are used for one read request (Brevo account, SES + * account details); no email is sent. + * + * @route POST /magic-mail/accounts/:accountId/check + * @auth admin session or admin API token; permission plugin::magic-mail.test-send + * @param {import('koa').Context} ctx - Admin request context + * @returns {Promise} 200 `{ ok: true, details }` or + * `{ ok: false, code, hintCode?, hint? }`; 404 unknown account; 400 for + * providers without a connection check + * @sideeffect One read-only HTTPS request to the provider. + */ + async check(ctx) { + try { + const { accountId } = ctx.params; + const accountManager = strapi.plugin('magic-mail').service('account-manager'); + ctx.body = await accountManager.checkConnection(accountId); + } catch (err) { + handleControllerError( + ctx, + err, + '[magic-mail] Error checking account', + 'Error checking email account' + ); + } + }, + /** * Sends a test through Strapi's native email service to verify Magic-Mail interception. * diff --git a/server/src/controllers/delivery-webhooks.js b/server/src/controllers/delivery-webhooks.js index 2a88298..f654d28 100644 --- a/server/src/controllers/delivery-webhooks.js +++ b/server/src/controllers/delivery-webhooks.js @@ -4,6 +4,8 @@ * Public, signed delivery webhooks (bounces and complaints). * POST /api/magic-mail/webhooks/sendgrid/:accountId * POST /api/magic-mail/webhooks/mailgun/:accountId + * POST /api/magic-mail/webhooks/brevo/:accountId + * POST /api/magic-mail/webhooks/ses/:accountId (SNS HTTPS subscription) * * Responses carry no detail: 200 for processed or ignored events, 401 for an * unknown account, a missing secret or a bad signature, 400 for a malformed @@ -44,4 +46,6 @@ const handle = (provider) => async (ctx) => { module.exports = { sendgrid: handle('sendgrid'), mailgun: handle('mailgun'), + brevo: handle('brevo'), + ses: handle('ses'), }; diff --git a/server/src/controllers/provider-templates.js b/server/src/controllers/provider-templates.js index 6773e37..558c792 100644 --- a/server/src/controllers/provider-templates.js +++ b/server/src/controllers/provider-templates.js @@ -1,5 +1,7 @@ 'use strict'; +const { canonicalLocale } = require('../utils/locale'); + /** * Admin API for provider templates (SendGrid dynamic templates, Mailgun * templates): list and sync, preview, test send, local fallback, copy as a @@ -119,6 +121,12 @@ module.exports = ({ strapi }) => { to, providerTemplate: key, templateData: service().sampleData(detail, to), + // A chosen language version, else the admin's interface language. + ...(body.language + ? { locale: body.language } + : canonicalLocale(ctx.state?.user?.preferedLanguage) + ? { locale: canonicalLocale(ctx.state.user.preferedLanguage) } + : {}), ...(body.accountName ? { accountName: body.accountName } : {}), }, { queue: false, providerTemplateFallback: false } @@ -142,18 +150,26 @@ module.exports = ({ strapi }) => { * * @route PUT /magic-mail/provider-templates/:key/settings * @auth Admin JWT + plugin::magic-mail.manage - * @param {import('koa').Context} ctx - body `{ fallbackTemplateReferenceId: number|null }` - * @returns {Promise} 200 `{ data: { fallbackTemplateReferenceId } }`; - * 400 invalid or unknown template; 404 unknown key + * @param {import('koa').Context} ctx - body `{ fallbackTemplateReferenceId?: number|null, + * locales?: Record }` (at least one; `locales` maps a + * language tag to another synced template key of the same provider and + * replaces the whole map, `{}` clears it) + * @returns {Promise} 200 `{ data: { fallbackTemplateReferenceId?, locales? } }`; + * 400 invalid or unknown template or locale; 404 unknown key * @sideeffect Writes the plugin store. */ async updateSettings(ctx) { try { const key = keyParam(ctx); const body = validate('providerTemplates.settings', ctx.request.body || {}); - ctx.body = { - data: await service().setFallback(key, body.fallbackTemplateReferenceId), - }; + const data = {}; + if (body.fallbackTemplateReferenceId !== undefined) { + Object.assign(data, await service().setFallback(key, body.fallbackTemplateReferenceId)); + } + if (body.locales !== undefined) { + Object.assign(data, await service().setLocales(key, body.locales)); + } + ctx.body = { data }; } catch (error) { handleControllerError(ctx, error, '[magic-mail] Provider template settings failed'); } diff --git a/server/src/providers/brevo.js b/server/src/providers/brevo.js new file mode 100644 index 0000000..42e3963 --- /dev/null +++ b/server/src/providers/brevo.js @@ -0,0 +1,925 @@ +'use strict'; + +/** + * Brevo adapter (transactional email API v3). See ./index.js for the + * interface. + * + * Docs (checked 2026-11-18, the `.md` variants of every page): + * - Send: POST https://api.brevo.com/v3/smtp/email, `api-key` header + * https://developers.brevo.com/reference/send-transac-email + * https://developers.brevo.com/docs/send-a-transactional-email + * - Templates: GET /v3/smtp/templates (limit 0..1000, offset, sort asc|desc, + * templateStatus) and GET /v3/smtp/templates/{templateId} + * https://developers.brevo.com/reference/get-smtp-templates + * https://developers.brevo.com/reference/get-smtp-template + * - Account: GET /v3/account + * https://developers.brevo.com/reference/get-account + * - Webhooks: https://developers.brevo.com/docs/transactional-webhooks, + * https://developers.brevo.com/docs/secured-webhooks, + * https://developers.brevo.com/docs/batch-webhooks, + * https://developers.brevo.com/reference/create-webhook + * - Rate limits: https://developers.brevo.com/docs/api-limits, + * https://developers.brevo.com/docs/limit-headers + * - Authorised IPs: https://developers.brevo.com/docs/ip-security + * - Sandbox: https://developers.brevo.com/docs/using-sandbox-mode + * - OpenAPI: https://developers.brevo.com/openapi/email-api.json and + * .../openapi/accounts-and-settings.json (pinned in tests/fixtures/openapi) + * + * Host: Brevo documents one API host, https://api.brevo.com (both OpenAPI + * documents list only `https://api.brevo.com/v3`); there is no regional or + * EU host, so the account has no region setting. The host is fixed, so a + * stored setting can never send the API key to another server. + * + * Config: `apiKey` (secret, `api-key` header) and `webhookToken` (secret, + * generated on create). Both are encrypted with the rest of the config. + */ + +const crypto = require('node:crypto'); +const { errors } = require('@strapi/utils'); +const { + MAX_RESPONSE_BYTES, + ProviderApiError, + codeForStatus, + readBounded, + toIso, +} = require('../utils/provider-api'); +const { normalizeMessageId } = require('../utils/message-id'); + +const API_BASE = 'https://api.brevo.com'; +const SEND_PATH = '/v3/smtp/email'; +const TEMPLATES_PATH = '/v3/smtp/templates'; +const ACCOUNT_PATH = '/v3/account'; + +/** account-manager SECRET_MASK: the "keep the stored secret" placeholder on update. */ +const SECRET_MASK = '********'; + +const REQUEST_TIMEOUT_MS = 15_000; +const ERROR_BODY_MAX_BYTES = 4 * 1024; +const SEND_RESPONSE_MAX_BYTES = 64 * 1024; +const MAX_RATE_LIMIT_RESET_MS = 24 * 60 * 60 * 1000; + +/** + * Brevo's total size limit for a transactional email, content and + * attachments included (Brevo help center "Add an attachment to a + * transactional email": 20 MB). Compared with the JSON request body, in which + * attachments are base64, so the check is on the safe side. + */ +const BREVO_MAX_MESSAGE_BYTES = 20 * 1024 * 1024; + +/** Display names: "Maximum length is 70 characters" (sender, to, cc, bcc, replyTo). */ +const MAX_NAME_LENGTH = 70; + +/** + * Attachment file extensions Brevo accepts ("Supported file extensions" of + * the `attachment` field, send-transac-email reference). + */ +const ATTACHMENT_EXTENSIONS = new Set( + ( + 'xlsx xls ods docx docm doc csv pdf txt gif jpg jpeg png tif tiff rtf bmp cgm css shtml ' + + 'html htm zip xml ppt pptx tar ez ics mobi msg pub eps odt mp3 m4a m4v wma ogg flac wav ' + + 'aif aifc aiff mp4 mov avi mkv mpeg mpg wmv pkpass xlsm' + ).split(' ') +); + +/** + * Caller headers Brevo interprets itself. `X-Mailin-custom` carries Magic + * Mail's correlation id, `X-Sib-Sandbox: drop` discards the message (sandbox + * mode); a caller must not be able to set either. + */ +const RESERVED_HEADER_PREFIXES = ['x-mailin-', 'x-sib-']; + +/** Correlation value in `X-Mailin-custom` (echoed in every webhook event). */ +const CORRELATION_PREFIX = 'magicmail_id='; +const CORRELATION_PATTERN = /^magicmail_id=([A-Za-z0-9]{1,64})$/; + +const LIST_PAGE_SIZE = 50; +const MAX_LIST_PAGES = 10; + +const API_KEY_PATTERN = /^[\x21-\x7e]{16,512}$/; +const WEBHOOK_TOKEN_PATTERN = /^[A-Za-z0-9_-]{32,256}$/; +const BEARER_PATTERN = /^bearer[ \t]+([\x21-\x7e]{1,512})$/i; +/** Custom header for Brevo's webhook `headers` option (alternative to bearer auth). */ +const WEBHOOK_TOKEN_HEADER = 'x-magic-mail-webhook-token'; + +/** Upper bound of events taken from one webhook request (a batch holds up to 500). */ +const MAX_WEBHOOK_EVENTS = 1000; +const MIN_EVENT_TIME_MS = Date.UTC(2000, 0, 1); +const MAX_EVENT_SKEW_MS = 24 * 3600_000; + +const PLAN_TYPES = new Set(['payAsYouGo', 'free', 'subscription', 'sms']); + +/** + * Brevo transactional event name -> Magic Mail delivery outcome. + * + * Event names as posted (transactional-webhooks page): request, click, + * deferred, delivered, soft_bounce, hard_bounce, spam, unique_opened, opened, + * invalid_email, blocked, error, unsubscribed, proxy_open, unique_proxy_open. + * The camelCase names of the webhook configuration (hardBounce, softBounce, + * invalid) are accepted as aliases. + * + * - hard_bounce, invalid_email: permanent; may feed the suppression list. + * - soft_bounce, deferred: temporary (Brevo retries). + * - blocked: Brevo did not send (recipient on Brevo's blocklist); no suppression. + * - error: Brevo could not send; never delivered. + * - opened -> opened (every open), click -> clicked with `link`. + * - unique_opened is ignored: Brevo posts it next to `opened` for the first + * open, so counting both would count the first open twice. + * - proxy_open and unique_proxy_open are ignored: opens by a privacy proxy + * (for example Apple Mail Privacy Protection), not by the reader. + * - request (sent) is ignored: Magic Mail records the send itself. + */ +const EVENT_MAP = Object.freeze({ + delivered: { kind: 'delivered' }, + hard_bounce: { kind: 'bounced', suppress: 'bounce' }, + hardBounce: { kind: 'bounced', suppress: 'bounce', code: 'hard_bounce' }, + invalid_email: { kind: 'bounced', suppress: 'bounce', notDelivered: true }, + invalid: { kind: 'bounced', suppress: 'bounce', notDelivered: true, code: 'invalid_email' }, + soft_bounce: { kind: 'deferred' }, + softBounce: { kind: 'deferred', code: 'soft_bounce' }, + deferred: { kind: 'deferred' }, + blocked: { kind: 'blocked', notDelivered: true }, + spam: { kind: 'complained', suppress: 'complaint' }, + unsubscribed: { kind: 'unsubscribed' }, + error: { kind: 'dropped', notDelivered: true }, + opened: { kind: 'opened' }, + click: { kind: 'clicked' }, +}); + +/** + * Stable hint codes (client-errors / connection check). The texts are + * English; the admin UI translates by code. + */ +const HINTS = Object.freeze({ + BREVO_INVALID_KEY: + 'Brevo rejected the API key. Create an API key under SMTP & API > API keys (not an SMTP key) and paste it completely.', + BREVO_IP_NOT_AUTHORIZED: + 'Brevo blocked the request because the server IP address is not authorised. Add the IP address of this Strapi server under Security > Authorised IPs in Brevo, or turn off blocking of unknown IP addresses.', + BREVO_FORBIDDEN: + 'Brevo refused the request. Check that the API key may send transactional email and that the Brevo account is fully activated.', + BREVO_ACCOUNT_UNDER_VALIDATION: + 'The Brevo account is still being validated. Sending works once Brevo has activated the account.', + BREVO_SENDER_NOT_VERIFIED: + 'Brevo rejected the sender. Add and verify the From address under Senders, Domains & Dedicated IPs in Brevo, or authenticate its domain.', + BREVO_NO_CREDITS: + 'The Brevo account has no email credits left. Check the plan and credits in Brevo.', + BREVO_TEMPLATE_NOT_FOUND: + 'Brevo does not know this template or it is inactive. Activate it in Brevo and sync the provider templates again.', + BREVO_TOO_LARGE: + 'Brevo rejected the message as too large. Brevo accepts at most 20 MB including attachments.', + BREVO_RATE_LIMITED: + 'Brevo is rate limiting requests. Wait a moment and try again; the queue retries automatically.', + BREVO_UNAVAILABLE: 'Brevo is not reachable right now. Try again later.', +}); + +/** Brevo error `code` values (send-transac-email 400 enum) with their hint. */ +const BODY_CODE_HINTS = Object.freeze({ + not_enough_credits: 'BREVO_NO_CREDITS', + 'Insufficient credits': 'BREVO_NO_CREDITS', + account_under_validation: 'BREVO_ACCOUNT_UNDER_VALIDATION', + permission_denied: 'BREVO_FORBIDDEN', +}); + +/** + * Message fragments Brevo uses for an unauthorised IP, an unverified sender + * and an unknown template. Not documented in the API reference; matched + * only against at most 1000 characters of the body message, never stored or + * logged. One bounded quantifier per pattern, so matching is linear. + */ +const IP_MESSAGE = /unrecogni[sz]ed ip|authori[sz]ed[ _]ips?\b/i; +const SENDER_MESSAGE = /sender[^.]{0,120}(?:not valid|invalid|not verified)|validate your sender/i; +const TEMPLATE_MESSAGE = /template[^.]{0,60}(?:not found|does not exist|not active|inactive)/i; + +/** + * Throws the config ValidationError (never echoes a value). + * + * @param {string} message + * @param {string[]} details + * @returns {never} + * @throws {errors.ValidationError} + */ +function configError(message, details) { + throw new errors.ValidationError(message, { config: details }); +} + +/** + * Validated, normalised copy of a Brevo account config. Only `apiKey` and + * `webhookToken` are kept (unknown keys are dropped). + * + * On create (`creating`), `apiKey` is required. On update, `apiKey` and + * `webhookToken` may be SECRET_MASK or left out: the stored values are kept + * (account-manager _mergeConfig). An empty `webhookToken` is treated as left + * out, so an edit can never clear the token by accident. + * + * @param {unknown} config + * @param {{creating?: boolean}} [options] + * @returns {{apiKey?: string, webhookToken?: string}} + * @throws {errors.ValidationError} With `details.config` naming the field + */ +function normalizeConfig(config, { creating = false } = {}) { + if (!config || typeof config !== 'object' || Array.isArray(config)) { + configError('Invalid configuration', ['Required']); + } + const out = {}; + const apiKey = typeof config.apiKey === 'string' ? config.apiKey.trim() : config.apiKey; + if (apiKey === undefined || apiKey === null || apiKey === '' || apiKey === SECRET_MASK) { + if (creating) configError('The Brevo API key is required', ['apiKey: Required']); + if (apiKey === SECRET_MASK) out.apiKey = apiKey; + } else if (typeof apiKey !== 'string' || !API_KEY_PATTERN.test(apiKey)) { + configError('The Brevo API key has an invalid format', [ + 'apiKey: must be the API key from Brevo (SMTP & API > API keys), without spaces', + ]); + } else { + out.apiKey = apiKey; + } + + const token = + typeof config.webhookToken === 'string' ? config.webhookToken.trim() : config.webhookToken; + if (token === undefined || token === null || token === '') { + // Generated on create (prepareConfigForCreate); kept on update. + } else if (token === SECRET_MASK) { + if (!creating) out.webhookToken = token; + } else if (typeof token !== 'string' || !WEBHOOK_TOKEN_PATTERN.test(token)) { + configError('The webhook token has an invalid format', [ + 'webhookToken: 32 to 256 characters A-Z, a-z, 0-9, "-" or "_"', + ]); + } else { + out.webhookToken = token; + } + return out; +} + +/** + * Adds a random webhook token on create when none was given. + * + * @param {{apiKey?: string, webhookToken?: string}} config - Normalised config + * @returns {{apiKey?: string, webhookToken: string}} + */ +function prepareConfigForCreate(config) { + const out = { ...config }; + if (typeof out.webhookToken !== 'string' || !WEBHOOK_TOKEN_PATTERN.test(out.webhookToken)) { + out.webhookToken = crypto.randomBytes(32).toString('base64url'); + } + return out; +} + +/** @param {unknown} value @returns {boolean} a usable (non-mask) secret */ +const usableSecret = (value) => + typeof value === 'string' && value.length > 0 && value !== SECRET_MASK; + +/** + * @param {unknown} name + * @returns {string} Display name cut to Brevo's 70 characters ('' for none) + */ +const displayName = (name) => (typeof name === 'string' ? name.slice(0, MAX_NAME_LENGTH) : ''); + +/** + * @param {{email: string, name?: string}} entry + * @returns {{email: string, name?: string}} + */ +const recipient = (entry) => { + const name = displayName(entry.name); + return name ? { email: entry.email, name } : { email: entry.email }; +}; + +/** + * Outbound headers without the ones Brevo interprets itself (X-Mailin-*, + * X-Sib-*), plus the correlation header. + * + * @param {Record} headers - From h.buildOutboundHeaders + * @param {string|null} magicmailId + * @returns {Record} + */ +function brevoHeaders(headers, magicmailId) { + const out = {}; + for (const [name, value] of Object.entries(headers || {})) { + const lower = name.toLowerCase(); + if (RESERVED_HEADER_PREFIXES.some((prefix) => lower.startsWith(prefix))) continue; + out[name] = value; + } + if (magicmailId) out['X-Mailin-custom'] = `${CORRELATION_PREFIX}${magicmailId}`; + return out; +} + +/** + * Lower-case file extension of an attachment name, or ''. + * + * @param {unknown} name + * @returns {string} + */ +function extensionOf(name) { + if (typeof name !== 'string') return ''; + const dot = name.lastIndexOf('.'); + return dot > 0 && dot < name.length - 1 ? name.slice(dot + 1).toLowerCase() : ''; +} + +/** + * Builds the JSON body of POST /v3/smtp/email. No network. + * + * - Recipients: every address once across to, cc, bcc (h.uniqueRecipients), + * display names cut to 70 characters. + * - Reply-To: Brevo accepts exactly one `replyTo` object. Several reply-to + * addresses are refused with a ValidationError rather than silently + * dropping all but one. + * - Attachments: base64 `content` + `name`. Brevo API v3 has no inline (cid) + * images ("API V3 doesn't support it directly", Brevo FAQ) and accepts only + * the listed file extensions: both are refused with a ValidationError. + * - Headers: h.buildOutboundHeaders without X-Mailin-* / X-Sib-*, plus + * `X-Mailin-custom: magicmail_id=` (Brevo echoes it as + * `X-Mailin-custom` in every webhook event). + * - Tags: 'magic-mail' and the allowlisted email type. + * - Template: numeric `templateId` and `params` = the template data (Brevo + * templates read `{{ params.key }}`). The template's own subject applies + * unless the caller set one. Body fields are not sent ("Ignored when + * templateId is provided"). + * - Tracking: Brevo's open/click tracking is an account setting; the API has + * no per-message switch (only `removeTrackingPixel`, Enterprise plans with + * the consent feature), so h.providerTrackingOf can not turn it on or off + * per message. Brevo open/click events are counted only for logs sent with + * provider tracking (delivery-webhooks recordEngagement). + * + * @param {{account: object, emailData: object, template: object|null, h: object}} input + * @returns {object} Request body + * @throws {Error} ValidationError for input Brevo can not send + */ +function buildSendRequest({ account, emailData, template, h }) { + const recipients = h.uniqueRecipients(emailData); + if (recipients.to.length === 0) { + throw h.validationError('Brevo send requires at least one valid recipient'); + } + const sender = h.senderFor(account, emailData); + const senderName = displayName(sender.name); + const type = h.EMAIL_TYPES.includes(emailData.type) ? emailData.type : 'transactional'; + const magicmailId = h.magicmailIdOf(emailData); + + const body = { + sender: { email: sender.address, ...(senderName ? { name: senderName } : {}) }, + to: recipients.to.map(recipient), + ...(recipients.cc.length > 0 ? { cc: recipients.cc.map(recipient) } : {}), + ...(recipients.bcc.length > 0 ? { bcc: recipients.bcc.map(recipient) } : {}), + }; + + if (template) { + if (!/^[1-9]\d{0,15}$/.test(String(template.remoteId))) { + throw h.accountConfigError('The Brevo template id is not a number; sync the templates again'); + } + body.templateId = Number(template.remoteId); + const variables = template.variables; + body.params = + variables && typeof variables === 'object' && !Array.isArray(variables) ? variables : {}; + if (emailData.subject) body.subject = h.stripHeaderInjection(emailData.subject); + } else { + body.subject = h.stripHeaderInjection(emailData.subject); + if (emailData.html) body.htmlContent = emailData.html; + if (emailData.text) body.textContent = emailData.text; + } + + const replyTo = h.resolveReplyTo(emailData.replyTo || account.replyTo); + if (replyTo && replyTo.length > 1) { + throw h.validationError('Brevo accepts one reply-to address only'); + } + if (replyTo && replyTo.length === 1) { + const name = displayName(replyTo[0].name); + body.replyTo = { email: replyTo[0].address, ...(name ? { name } : {}) }; + } + + const attachments = h.normalizeAttachments(emailData.attachments); + if (attachments.length > 0) { + body.attachment = attachments.map((attachment) => { + if (attachment.cid) { + throw h.validationError( + 'Brevo does not support inline (cid) images; link the image or attach it normally' + ); + } + if (!ATTACHMENT_EXTENSIONS.has(extensionOf(attachment.filename))) { + throw h.validationError('Brevo does not accept this attachment file type'); + } + return { content: attachment.content.toString('base64'), name: attachment.filename }; + }); + } + + body.headers = brevoHeaders(h.buildOutboundHeaders(emailData), magicmailId); + body.tags = ['magic-mail', type]; + return body; +} + +/** + * Milliseconds until Brevo's rate limit resets: `x-sib-ratelimit-reset` is + * the time remaining "in the granularity unit (typically seconds)" + * (limit-headers page). 0 when missing, not an integer or over 24 h. + * + * @param {Response|object} response + * @returns {number} + */ +function rateLimitResetMs(response) { + const raw = response?.headers?.get?.('x-sib-ratelimit-reset'); + if (typeof raw !== 'string' || !/^\d{1,9}$/.test(raw.trim())) return 0; + const ms = Number(raw.trim()) * 1000; + return ms > 0 && ms <= MAX_RATE_LIMIT_RESET_MS ? ms : 0; +} + +/** + * Hint code for a Brevo error body (`{ code, message }`), or null. The body + * is only compared, never kept, logged or returned. + * + * @param {string|null} text - At most 4 KB of the body + * @param {number} status + * @returns {string|null} A HINTS key + */ +function errorBodyHint(text, status) { + if (typeof text !== 'string' || text.length === 0) return null; + let parsed; + try { + parsed = JSON.parse(text.slice(0, ERROR_BODY_MAX_BYTES)); + } catch { + return null; + } + const code = typeof parsed?.code === 'string' ? parsed.code.slice(0, 100) : ''; + const message = typeof parsed?.message === 'string' ? parsed.message.slice(0, 1000) : ''; + if ((status === 401 || status === 403) && IP_MESSAGE.test(message)) { + return 'BREVO_IP_NOT_AUTHORIZED'; + } + if (Object.hasOwn(BODY_CODE_HINTS, code)) return BODY_CODE_HINTS[code]; + if (status === 400 || status === 403) { + if (SENDER_MESSAGE.test(message)) return 'BREVO_SENDER_NOT_VERIFIED'; + if (TEMPLATE_MESSAGE.test(message)) return 'BREVO_TEMPLATE_NOT_FOUND'; + } + return null; +} + +/** + * Hint code for a failure: a specific BREVO_* `code` wins, then the HTTP + * status or the ProviderApiError code. + * + * @param {number|undefined} status + * @param {string|undefined} [code] + * @returns {string|null} A HINTS key or null + */ +function hintFor(status, code) { + if (typeof code === 'string' && Object.hasOwn(HINTS, code)) return code; + if (status === 401 || (code === 'AUTH' && status !== 403)) return 'BREVO_INVALID_KEY'; + if (status === 403) return 'BREVO_FORBIDDEN'; + if (status === 413 || code === 'MAGIC_MAIL_MESSAGE_TOO_LARGE') return 'BREVO_TOO_LARGE'; + if (status === 429 || code === 'RATE_LIMITED') return 'BREVO_RATE_LIMITED'; + if ((Number.isInteger(status) && status >= 500) || code === 'UNAVAILABLE') { + return 'BREVO_UNAVAILABLE'; + } + return null; +} + +/** + * Sends one message (POST /v3/smtp/email). + * + * @param {{account: object, config: object, emailData: object, h: object}} input + * @returns {Promise<{messageId: string|null, response: string}>} Brevo `messageId` + * without angle brackets (the first of `messageIds` for a batch) + * @throws {Error} Account configuration error (no key), ValidationError, + * size error (h.tooLargeError) or "Brevo API request failed: " + * with `status`, `provider`, `retryAfterMs` (429) and a BREVO_* `code` + * when the body names the cause + * @sideeffect One HTTPS request to api.brevo.com with recipients and content. + */ +async function send({ account, config, emailData, h }) { + if (!usableSecret(config?.apiKey)) throw h.accountConfigError('Brevo API key not configured'); + const template = h.providerTemplateFor(account, emailData); + h.validateEmailSecurity(emailData); + + const body = JSON.stringify(buildSendRequest({ account, emailData, template, h })); + if (Buffer.byteLength(body) >= BREVO_MAX_MESSAGE_BYTES) { + throw h.tooLargeError( + template, + 'The message is larger than Brevo accepts (20 MB including attachments)' + ); + } + + const response = await fetch(`${API_BASE}${SEND_PATH}`, { + ...h.fetchBounds(emailData), + method: 'POST', + redirect: 'error', + headers: { + 'api-key': config.apiKey, + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + body, + }); + + if (!response.ok) { + const hint = errorBodyHint(await h.readProviderErrorBody(response), response.status); + const error = h.providerHttpError('Brevo', response.status, { + retryAfterMs: response.status === 429 ? rateLimitResetMs(response) : 0, + }); + if (hint && !error.code) error.code = hint; + throw error; + } + + let parsed; + try { + parsed = JSON.parse(await readBounded(response, SEND_RESPONSE_MAX_BYTES)); + } catch { + parsed = null; + } + const id = + typeof parsed?.messageId === 'string' + ? parsed.messageId + : Array.isArray(parsed?.messageIds) + ? parsed.messageIds.find((entry) => typeof entry === 'string') + : null; + return { messageId: normalizeMessageId(id), response: 'Accepted' }; +} + +/** + * GETs a JSON document from the Brevo API. Failures become ProviderApiError + * with the status and, when the body names the cause, a BREVO_* code. + * + * @param {string} pathAndQuery - Path under https://api.brevo.com + * @param {string} apiKey + * @returns {Promise} + * @throws {ProviderApiError} + */ +async function getJson(pathAndQuery, apiKey) { + let response; + try { + response = await fetch(`${API_BASE}${pathAndQuery}`, { + method: 'GET', + redirect: 'error', + headers: { Accept: 'application/json', 'api-key': apiKey }, + signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS), + }); + } catch { + throw new ProviderApiError('NETWORK'); + } + if (!response.ok) { + let text; + try { + text = await readBounded(response, ERROR_BODY_MAX_BYTES); + } catch { + text = null; + } + const error = new ProviderApiError(codeForStatus(response.status), response.status); + const hint = errorBodyHint(text, response.status); + if (hint) error.code = hint; + throw error; + } + const text = await readBounded(response, MAX_RESPONSE_BYTES); + try { + return JSON.parse(text); + } catch { + throw new ProviderApiError('BAD_RESPONSE'); + } +} + +/** + * Read-only credential check (GET /v3/account). Returns only non-personal + * details: whether transactional email is enabled, the enterprise flag and + * the plan types with their remaining credits. Never the login email, names, + * company, address, SMTP relay login or ids. + * + * @param {{apiKey?: string}} config - Normalised, decrypted config + * @returns {Promise<{ok: true, details: {transactionalEnabled: boolean, enterprise: boolean, plans: object[]}}>} + * @throws {ProviderApiError} CREDENTIALS (no key), AUTH, RATE_LIMITED, + * UNAVAILABLE, NETWORK, BAD_RESPONSE, or BREVO_IP_NOT_AUTHORIZED + * @sideeffect One HTTPS GET to api.brevo.com. + */ +async function checkConnection(config) { + if (!usableSecret(config?.apiKey)) throw new ProviderApiError('CREDENTIALS'); + const body = await getJson(ACCOUNT_PATH, config.apiKey); + if (!body || typeof body !== 'object') throw new ProviderApiError('BAD_RESPONSE'); + const plans = (Array.isArray(body.plan) ? body.plan : []) + .slice(0, 10) + .filter((plan) => plan && PLAN_TYPES.has(plan.type)) + .map((plan) => { + const credits = + typeof plan.credits === 'number' || typeof plan.credits === 'string' + ? Number(plan.credits) + : NaN; + return { + type: plan.type, + ...(plan.creditsType === 'sendLimit' ? { creditsType: 'sendLimit' } : {}), + ...(Number.isFinite(credits) ? { credits } : {}), + }; + }); + return { + ok: true, + details: { + transactionalEnabled: body.relay?.enabled === true, + enterprise: body.enterprise === true, + plans, + }, + }; +} + +const asString = (value, max) => (typeof value === 'string' ? value.slice(0, max) : ''); + +/** + * Lists the account's transactional templates (GET /v3/smtp/templates, + * offset paging in creation order, at most MAX_LIST_PAGES pages). The list + * response already carries `htmlContent` and `subject`, so no detail call is + * needed. Inactive templates get `activeVersion: null` (shown as unpublished; + * Brevo can not send them). Brevo templates have no plain-text part. + * + * @param {{apiKey?: string}} config + * @param {{pageSize?: number}} [options] - 1..1000 (default 50; tests force paging) + * @returns {Promise<{templates: object[], warning: string|null}>} RemoteTemplate + * list (utils/provider-api.js); `warning` 'TRUNCATED' when the account has + * more templates than were read + * @throws {ProviderApiError} + * @sideeffect HTTPS GETs to api.brevo.com (they count against Brevo's hourly + * limit for /v3/smtp/* endpoints). + */ +async function listTemplates(config, { pageSize = LIST_PAGE_SIZE } = {}) { + if (!usableSecret(config?.apiKey)) throw new ProviderApiError('CREDENTIALS'); + const limit = Math.min(1000, Math.max(1, Math.trunc(pageSize) || LIST_PAGE_SIZE)); + const items = []; + let truncated = false; + for (let page = 0; ; page += 1) { + if (page >= MAX_LIST_PAGES) { + truncated = true; + break; + } + const query = new URLSearchParams({ + limit: String(limit), + offset: String(page * limit), + sort: 'asc', + }); + const body = await getJson(`${TEMPLATES_PATH}?${query}`, config.apiKey); + const list = Array.isArray(body?.templates) ? body.templates : []; + items.push(...list); + if (list.length < limit) break; + if (Number.isSafeInteger(body?.count) && (page + 1) * limit >= body.count) break; + } + + const seen = new Set(); + const templates = []; + for (const item of items) { + if (!item || !Number.isSafeInteger(item.id) || item.id <= 0) continue; + const remoteId = String(item.id); + if (seen.has(remoteId)) continue; + seen.add(remoteId); + const updatedAt = toIso(item.modifiedAt) || toIso(item.createdAt); + templates.push({ + remoteId, + name: asString(item.name, 200) || `Template ${remoteId}`, + scope: 'default', + activeVersion: item.isActive === true ? updatedAt || 'active' : null, + subject: asString(item.subject, 998), + html: asString(item.htmlContent, 1_000_000), + text: '', + updatedAt, + }); + } + return { templates, warning: truncated ? 'TRUNCATED' : null }; +} + +const PATH_CHAR = /[A-Za-z0-9_.]/; + +/** + * Variables a Brevo template reads from `params` (Brevo template language: + * `{{ params.name }}`, `{{ params.order.id | default: "-" }}`, + * `{% if params.vip %}`, `{% for item in params.items %}`). Each detected + * `params.` maps to the Magic Mail data key ``: the template data + * is sent as Brevo `params` unchanged, so `data.name` is `{{ params.name }}`. + * Contact attributes (`{{ contact.FIRSTNAME }}`) are not Magic Mail data and + * are not reported. + * + * Linear: `indexOf` scanning over the source; tags longer than 1000 + * characters are skipped. Same result shape as detectTemplateVariables + * (utils/template-variables.js); `blocks` lists the statement keywords + * (`if`, `for`, ...) that use the path. + * + * @param {unknown} source - Template subject and HTML + * @param {{maxVariables?: number}} [options] + * @returns {{variables: {path: string, root: string, raw: boolean, scoped: boolean, blocks: string[]}[], truncated: boolean}} + */ +function templateVariables(source, { maxVariables = 200 } = {}) { + const text = typeof source === 'string' ? source.slice(0, 1_000_000) : ''; + const limit = Number.isInteger(maxVariables) && maxVariables > 0 ? maxVariables : 200; + const found = new Map(); + let at = 0; + while (at < text.length) { + const expr = text.indexOf('{{', at); + const stmt = text.indexOf('{%', at); + if (expr === -1 && stmt === -1) break; + const isStatement = expr === -1 || (stmt !== -1 && stmt < expr); + const start = isStatement ? stmt : expr; + const end = text.indexOf(isStatement ? '%}' : '}}', start + 2); + if (end === -1) break; + at = end + 2; + if (end - start > 1000) continue; + const inner = text.slice(start + 2, end); + const keyword = isStatement ? /^\s*-?\s*([a-z]{1,20})/.exec(inner)?.[1] || null : null; + let from = 0; + for (;;) { + const hit = inner.indexOf('params.', from); + if (hit === -1) break; + let cursor = hit + 7; + while (cursor < inner.length && PATH_CHAR.test(inner[cursor])) cursor += 1; + from = cursor; + if (hit > 0 && PATH_CHAR.test(inner[hit - 1])) continue; + const path = inner.slice(hit + 7, cursor).replace(/\.+$/, ''); + if (!path || path.length > 128 || path.includes('..') || !/^[A-Za-z_]/.test(path)) continue; + let entry = found.get(path); + if (!entry) { + entry = { path, root: path.split('.')[0], raw: false, scoped: false, blocks: new Set() }; + found.set(path, entry); + } + if (keyword) entry.blocks.add(keyword); + } + } + const variables = [...found.values()] + .map((entry) => ({ ...entry, blocks: [...entry.blocks] })) + .sort((a, b) => (a.path < b.path ? -1 : a.path > b.path ? 1 : 0)); + const truncated = variables.length > limit; + return { variables: truncated ? variables.slice(0, limit) : variables, truncated }; +} + +/** + * The token a webhook request presents: `Authorization: Bearer ` + * (Brevo webhook `auth: { type: 'bearer', token }`) or the custom header + * `X-Magic-Mail-Webhook-Token` (Brevo webhook `headers` option). An + * Authorization header with another scheme presents no token. + * + * @param {Record} headers - Lower-case names (Koa) + * @returns {string|null} + */ +function presentedToken(headers) { + const auth = headers?.authorization; + if (typeof auth === 'string' && auth.length > 0) { + const match = BEARER_PATTERN.exec(auth.trim()); + return match ? match[1] : null; + } + const custom = headers?.[WEBHOOK_TOKEN_HEADER]; + if (typeof custom === 'string' && custom.length > 0 && custom.length <= 512) { + return custom.trim(); + } + return null; +} + +/** + * Constant-time comparison of two tokens of any length: both are hashed + * first, so timingSafeEqual always compares equal-length buffers. + * + * @param {string} presented + * @param {string} expected + * @returns {boolean} + */ +function tokensMatch(presented, expected) { + const a = crypto.createHash('sha256').update(presented, 'utf8').digest(); + const b = crypto.createHash('sha256').update(expected, 'utf8').digest(); + return crypto.timingSafeEqual(a, b); +} + +/** + * Event time in ms: `ts_event` (seconds, "when the webhook event occurred"), + * else `ts` (seconds), else `ts_epoch` (documented as milliseconds; several + * official examples show seconds, so values below 1e11 are read as seconds). + * Null outside [2000-01-01, now + 1 day]. + * + * @param {Record} event + * @param {number} now + * @returns {number|null} + */ +function eventTimeMs(event, now) { + const seconds = [event.ts_event, event.ts].find( + (value) => typeof value === 'number' && Number.isFinite(value) && value > 0 + ); + let ms = null; + if (seconds !== undefined) ms = Math.round(seconds * 1000); + else if (typeof event.ts_epoch === 'number' && Number.isFinite(event.ts_epoch)) { + ms = event.ts_epoch < 1e11 ? Math.round(event.ts_epoch * 1000) : Math.round(event.ts_epoch); + } + if (ms === null || ms < MIN_EVENT_TIME_MS || ms > now + MAX_EVENT_SKEW_MS) return null; + return ms; +} + +/** + * @param {unknown} value + * @returns {string|null} Lower-cased plausible address (memory only) + */ +function normalizeRecipient(value) { + if (typeof value !== 'string') return null; + const address = value.trim().toLowerCase(); + if (address.length < 3 || address.length > 254) return null; + return /^[^\s@]+@[^\s@]+$/.test(address) ? address : null; +} + +/** + * Maps one Brevo transactional event to a delivery event (see EVENT_MAP). + * + * Brevo events carry no event id (`id` is the webhook id), so `eventId` is a + * SHA-256 over event name, message id, recipient and the event timestamps + * (and the link for clicks): a retried delivery of the same event gives the + * same id. Two opens in the same second share it and count once. + * + * @param {unknown} event + * @param {number} [now] + * @returns {object|null} DeliveryEvent (services/delivery-webhooks.js) or null when ignored + */ +function mapEvent(event, now = Date.now()) { + if (!event || typeof event !== 'object' || Array.isArray(event)) return null; + const name = typeof event.event === 'string' ? event.event : ''; + if (!Object.hasOwn(EVENT_MAP, name)) return null; + const mapping = EVENT_MAP[name]; + const canonical = mapping.code || name; + const messageId = normalizeMessageId(event['message-id']); + const custom = typeof event['X-Mailin-custom'] === 'string' ? event['X-Mailin-custom'] : ''; + const correlation = custom.length <= 200 ? CORRELATION_PATTERN.exec(custom.trim()) : null; + const recipientAddress = normalizeRecipient(event.email); + const url = mapping.kind === 'clicked' && typeof event.link === 'string' ? event.link : null; + const eventId = crypto + .createHash('sha256') + .update( + JSON.stringify([ + canonical, + messageId, + recipientAddress, + typeof event.ts_event === 'number' ? event.ts_event : null, + typeof event.ts === 'number' ? event.ts : null, + typeof event.ts_epoch === 'number' ? event.ts_epoch : null, + url ? url.slice(0, 2048) : null, + ]) + ) + .digest('hex'); + return { + eventId, + messageId, + magicmailId: correlation ? correlation[1] : null, + kind: mapping.kind, + reasonCode: `BREVO_${canonical.toUpperCase()}`, + recipient: recipientAddress, + occurredAt: eventTimeMs(event, now), + suppress: mapping.suppress || null, + notDelivered: mapping.notDelivered === true, + ...(mapping.kind === 'clicked' ? { url } : {}), + }; +} + +/** + * Authenticates and parses one Brevo webhook request. + * + * Brevo transactional webhooks are not signed (secured-webhooks page: IP + * allowlist, basic auth in the URL, bearer token or custom headers). The + * account's random `webhookToken` must be presented as bearer token or in + * X-Magic-Mail-Webhook-Token; no token in the config means 401. The body is + * one event object or, for batched webhooks, an array of events; at most + * MAX_WEBHOOK_EVENTS are read. `replayKey` is the SHA-256 of the raw body, so + * a retried delivery of the same request is acknowledged without work. + * + * @param {{config: object, rawBody: Buffer, headers: Record, now?: number}} input + * @returns {Promise<{status: 200|400|401, events: object[], replayKey?: string}>} + */ +async function webhook({ config, rawBody, headers, now = Date.now() }) { + const expected = config?.webhookToken; + if (!usableSecret(expected)) return { status: 401, events: [] }; + const presented = presentedToken(headers || {}); + if (!presented || !tokensMatch(presented, expected)) return { status: 401, events: [] }; + if (!Buffer.isBuffer(rawBody) || rawBody.length === 0) return { status: 400, events: [] }; + let payload; + try { + payload = JSON.parse(rawBody.toString('utf8')); + } catch { + return { status: 400, events: [] }; + } + if (!payload || typeof payload !== 'object') return { status: 400, events: [] }; + const list = Array.isArray(payload) ? payload.slice(0, MAX_WEBHOOK_EVENTS) : [payload]; + const events = list.map((event) => mapEvent(event, now)).filter(Boolean); + return { + status: 200, + events, + replayKey: crypto.createHash('sha256').update(rawBody).digest('hex'), + }; +} + +module.exports = { + id: 'brevo', + label: 'Brevo', + SECRET_FIELDS: Object.freeze(['apiKey', 'webhookToken']), + IDENTITY_FIELDS: Object.freeze([]), + HINTS, + hintFor, + normalizeConfig, + prepareConfigForCreate, + send, + templates: Object.freeze({ list: listTemplates }), + checkConnection, + webhook, + templateVariables, + WEBHOOK_TOKEN_HEADER, + __test__: { + API_BASE, + ATTACHMENT_EXTENSIONS, + BREVO_MAX_MESSAGE_BYTES, + EVENT_MAP, + IP_MESSAGE, + MAX_WEBHOOK_EVENTS, + SENDER_MESSAGE, + TEMPLATE_MESSAGE, + buildSendRequest, + errorBodyHint, + eventTimeMs, + listTemplates, + mapEvent, + presentedToken, + rateLimitResetMs, + tokensMatch, + }, +}; diff --git a/server/src/providers/index.js b/server/src/providers/index.js new file mode 100644 index 0000000..fdeb5b5 --- /dev/null +++ b/server/src/providers/index.js @@ -0,0 +1,70 @@ +'use strict'; + +/** + * Registry of the API provider adapters added after SendGrid and Mailgun + * (Brevo, Amazon SES). SendGrid, Mailgun, SMTP and the OAuth providers keep + * their own code paths in services/email-router.js; this registry only + * covers adapters that implement the interface below, so the existing send + * paths and their golden payloads are untouched. + * + * Adapter interface (every member is required unless marked optional): + * + * - `id`: account `provider` value ('brevo' | 'ses'). + * - `label`: product name used in errors ("

    Hi {{ params.name }}

    ', + previewText: '', + previewTooLarge: false, + variables: [{ path: 'name', root: 'name', raw: false, scoped: false, inSample: true }], + variablesTruncated: false, + sampleData: { name: 'Ada' }, + coreMailVariables: [], + copyWarnings: [], + usage: "send({ providerTemplate: 'brevo:welcome' })", + }, + }); + const result = await checkStrictEntry(, { + path: '/plugins/magic-mail/designer', + permissions: ALL, + async whileMounted() { + await clickLabel('Open Welcome'); + await wait(50); + assert.match(document.body.textContent, /Language versions/); + assert.match(document.body.textContent, /Welcome DE/); + assert.match(document.body.textContent, /Brevo reads your data under params/); + assert.equal(button('Copy as Magic Mail template'), undefined, 'no Mustache copy for Brevo'); + await clickLabel('Close'); + await wait(50); + }, + }); + assert.equal(mutations(result.calls).length, 0, 'no mutation'); +}); + +test('plugin settings page: the provider-tracking switch appears only with a template provider account', async () => { + network.on('GET', '/magic-mail/settings', { data: {} }); + network.on('GET', '/magic-mail/suppressions', { + data: [], + pagination: { page: 1, pageSize: 25, pageCount: 0, total: 0 }, + }); + network.on('GET', '/magic-mail/accounts', { data: [BREVO_ACCOUNT] }); + const result = await checkStrictEntry(, { + path: '/settings/magic-mail/plugin-settings', + permissions: ALL, + async whileMounted() { + await wait(50); + assert.match(document.body.textContent, /Count provider opens and clicks/); + }, + }); + assert.equal(live(result.mountCalls, '/magic-mail/settings').length, 1); + assert.equal(mutations(result.calls).length, 0, 'no mutation'); +}); diff --git a/tests/aws-sigv4.test.js b/tests/aws-sigv4.test.js new file mode 100644 index 0000000..ef58b95 --- /dev/null +++ b/tests/aws-sigv4.test.js @@ -0,0 +1,102 @@ +'use strict'; + +// SigV4 signer (server/src/utils/aws-sigv4.js) against every vendored case of +// the AWS SigV4 test suite (awslabs/aws-c-auth tests/aws-signing-test-suite/v4, +// see tests/fixtures/aws-sigv4/README.md): canonical request, string to sign, +// signature and Authorization header. The credentials in the vectors are the +// published AWS example keys (AKIDEXAMPLE), not secrets. + +const test = require('node:test'); +const assert = require('node:assert/strict'); +const crypto = require('node:crypto'); + +const vectors = require('./fixtures/aws-sigv4/v4-vectors.json'); +const { signRequest, uriEncode, canonicalQuery } = require('../server/src/utils/aws-sigv4'); + +/** + * Parses request.txt: request line, header lines (continuation lines start + * with whitespace and stay part of the value), blank line, body. + * + * @param {string} text + * @returns {{method: string, path: string, query: string, headers: Array<[string, string]>, body: string}} + */ +function parseRequest(text) { + const lines = text.split('\n'); + // The target may contain spaces (get-space-*): it ends before " HTTP/1.1". + const [, method, target] = /^(\S+) (.*) HTTP\/1\.1$/.exec(lines[0]); + const [path, query = ''] = target.split(/\?(.*)/s); + const headers = []; + let index = 1; + for (; index < lines.length; index += 1) { + const line = lines[index]; + if (line === '') break; + if (/^\s/.test(line) && headers.length > 0) { + headers[headers.length - 1][1] += `\n${line}`; + continue; + } + const colon = line.indexOf(':'); + headers.push([line.slice(0, colon), line.slice(colon + 1)]); + } + return { method, path, query, headers, body: lines.slice(index + 1).join('\n') }; +} + +test('vendored vectors are byte-identical to the pinned upstream files', () => { + assert.match(vectors.source.commit, /^[0-9a-f]{40}$/); + let files = 0; + for (const [name, entry] of Object.entries(vectors.cases)) { + for (const [file, { sha256, content }] of Object.entries(entry)) { + const actual = crypto.createHash('sha256').update(content, 'utf8').digest('hex'); + assert.equal(actual, sha256, `${name}/${file}`); + files += 1; + } + } + assert.ok(files >= 200, `expected the full suite, got ${files} files`); +}); + +for (const [name, files] of Object.entries(vectors.cases)) { + test(`SigV4 vector ${name}`, () => { + const context = JSON.parse(files['context.json'].content); + const request = parseRequest(files['request.txt'].content); + const result = signRequest(request, { + credentials: { + accessKeyId: context.credentials.access_key_id, + secretAccessKey: context.credentials.secret_access_key, + ...(context.credentials.token ? { sessionToken: context.credentials.token } : {}), + }, + region: context.region, + service: context.service, + date: new Date(context.timestamp), + normalize: context.normalize !== false, + signBody: context.sign_body === true, + signSessionToken: context.omit_session_token !== true, + }); + assert.equal(result.canonicalRequest, files['header-canonical-request.txt'].content); + assert.equal(result.stringToSign, files['header-string-to-sign.txt'].content); + assert.equal(result.signature, files['header-signature.txt'].content.trim()); + const expectedAuth = /^Authorization:(.*)$/m.exec(files['header-signed-request.txt'].content); + assert.equal(result.authorization, expectedAuth[1]); + const expectedDate = /^X-Amz-Date:(.*)$/m.exec(files['header-signed-request.txt'].content); + assert.equal(result.headers['x-amz-date'], expectedDate[1]); + if (context.credentials.token) { + assert.equal(result.headers['x-amz-security-token'], context.credentials.token); + } + }); +} + +test('UriEncode follows the AWS rules (unreserved kept, space as %20, slash encoded)', () => { + assert.equal(uriEncode('AZaz09-._~'), 'AZaz09-._~'); + assert.equal(uriEncode('a b+c/d'), 'a%20b%2Bc%2Fd'); + assert.equal(uriEncode('ሴ'), '%E1%88%B4'); + assert.equal(canonicalQuery('b=2&a=1&a=0'), 'a=0&a=1&b=2'); + assert.equal(canonicalQuery('NextToken=a%2Fb%3D&PageSize=10'), 'NextToken=a%2Fb%3D&PageSize=10'); +}); + +test('the signer refuses missing credentials, region or host', () => { + const credentials = { accessKeyId: 'AKIDEXAMPLE', secretAccessKey: 'x'.repeat(40) }; + const request = { method: 'GET', path: '/', headers: { host: 'example.test' } }; + assert.throws(() => signRequest(request, { credentials: {}, region: 'us-east-1', service: 's' })); + assert.throws(() => signRequest(request, { credentials, region: '', service: 's' })); + assert.throws(() => + signRequest({ ...request, headers: {} }, { credentials, region: 'us-east-1', service: 's' }) + ); +}); diff --git a/tests/brevo-adapter.test.js b/tests/brevo-adapter.test.js new file mode 100644 index 0000000..c1a1d8d --- /dev/null +++ b/tests/brevo-adapter.test.js @@ -0,0 +1,642 @@ +'use strict'; + +// Unit tests for the Brevo adapter (server/src/providers/brevo.js): config +// normalisation, the send body builder with the real router helpers, error +// hints, template variables, webhook authentication and the event mapping of +// the official Brevo example payloads (tests/fixtures/webhooks/brevo-events.json). +// Synthetic data only; no network. + +const test = require('node:test'); +const assert = require('node:assert/strict'); +const fs = require('node:fs'); +const path = require('node:path'); + +const brevo = require('../server/src/providers/brevo'); +const { getAdapter, TEMPLATE_PROVIDERS, WEBHOOK_PROVIDERS } = require('../server/src/providers'); +const { + BREVO_WEBHOOK_TOKEN, + PIXEL_PNG, + accountFor, + createHarness, + withEncryptionKey, +} = require('./helpers/provider-send-harness'); + +const internals = brevo.__test__; +const EVENTS = JSON.parse( + fs.readFileSync(path.join(__dirname, 'fixtures', 'webhooks', 'brevo-events.json'), 'utf8') +); +const NOW = Date.UTC(2026, 10, 18, 12, 0, 0); + +/** + * Real router helpers (providerSendHelpers) on a harness router. + * + * @returns {{h: object, account: object, restore: () => void}} + */ +function helpers() { + const restore = withEncryptionKey(); + const account = accountFor('brevo'); + const { router } = createHarness([account]); + const h = require('../server/src/services/email-router').__test__.providerSendHelpers(router); + return { h, account, restore }; +} + +/** + * Builds a request body the way send() does (validation first). + * + * @param {object} emailData + * @param {{template?: object|null, account?: object}} [options] + * @returns {object} + */ +function build(emailData, { template = null, account: override } = {}) { + const { h, account, restore } = helpers(); + try { + // Provider-template sends carry __providerTemplate (no subject/body check). + const data = template ? { ...emailData, __providerTemplate: { rowsByAccount: {} } } : emailData; + h.validateEmailSecurity(data); + const target = typeof override === 'function' ? override() : override || account; + return internals.buildSendRequest({ account: target, emailData: data, template, h }); + } finally { + restore(); + } +} + +// ── registry and config ───────────────────────────────────────────────────── + +test('the registry exposes the Brevo adapter for sends, templates and webhooks', () => { + assert.equal(getAdapter('brevo'), brevo); + assert.ok(TEMPLATE_PROVIDERS.includes('brevo')); + assert.ok(WEBHOOK_PROVIDERS.includes('brevo')); + assert.deepEqual([...brevo.SECRET_FIELDS], ['apiKey', 'webhookToken']); + assert.deepEqual([...brevo.IDENTITY_FIELDS], []); + assert.equal(brevo.label, 'Brevo'); +}); + +test('normalizeConfig trims, keeps only known fields and requires the key on create', () => { + assert.deepEqual( + brevo.normalizeConfig( + { apiKey: ' xkeysib-synthetic-0000000000 ', extra: 'dropped', host: 'evil.example.test' }, + { creating: true } + ), + { apiKey: 'xkeysib-synthetic-0000000000' } + ); + for (const apiKey of [undefined, '', ' ', '********']) { + assert.throws( + () => brevo.normalizeConfig({ apiKey }, { creating: true }), + (error) => + error.name === 'ValidationError' && + JSON.stringify(error.details) === JSON.stringify({ config: ['apiKey: Required'] }) + ); + } + assert.throws(() => brevo.normalizeConfig(null), /Invalid configuration/); + assert.throws(() => brevo.normalizeConfig([]), /Invalid configuration/); +}); + +test('normalizeConfig rejects malformed secrets without echoing them', () => { + const secret = 'xkeysib with spaces SECRET-VALUE'; + for (const config of [ + { apiKey: secret }, + { apiKey: 'short' }, + { apiKey: 1234567890123456 }, + { apiKey: 'xkeysib-synthetic-0000000000', webhookToken: 'too-short' }, + { apiKey: 'xkeysib-synthetic-0000000000', webhookToken: 'has space '.repeat(5) }, + ]) { + let caught; + try { + brevo.normalizeConfig(config, { creating: true }); + } catch (error) { + caught = error; + } + assert.equal(caught?.name, 'ValidationError'); + assert.ok(Array.isArray(caught.details.config)); + const text = JSON.stringify({ message: caught.message, details: caught.details }); + assert.ok(!text.includes('SECRET-VALUE') && !text.includes('has space'), 'no value echo'); + } +}); + +test('normalizeConfig on update keeps masks and treats an empty token as "unchanged"', () => { + assert.deepEqual(brevo.normalizeConfig({ apiKey: '********', webhookToken: '********' }), { + apiKey: '********', + webhookToken: '********', + }); + assert.deepEqual(brevo.normalizeConfig({ apiKey: '********', webhookToken: '' }), { + apiKey: '********', + }); + assert.deepEqual(brevo.normalizeConfig({}), {}); +}); + +test('prepareConfigForCreate generates a 256-bit base64url webhook token only when missing', () => { + const first = brevo.prepareConfigForCreate({ apiKey: 'xkeysib-synthetic-0000000000' }); + const second = brevo.prepareConfigForCreate({ apiKey: 'xkeysib-synthetic-0000000000' }); + assert.match(first.webhookToken, /^[A-Za-z0-9_-]{43}$/); + assert.notEqual(first.webhookToken, second.webhookToken); + const given = 'g'.repeat(40); + assert.equal(brevo.prepareConfigForCreate({ webhookToken: given }).webhookToken, given); + const created = brevo.normalizeConfig( + { apiKey: 'xkeysib-synthetic-0000000000', webhookToken: '********' }, + { creating: true } + ); + assert.equal(created.webhookToken, undefined, 'a mask is never stored on create'); +}); + +test('account create generates the token; the account DTO masks both secrets', async () => { + const restore = withEncryptionKey(); + try { + const { accountManager } = createHarness([]); + assert.equal(accountManager._isSecretKey('webhookToken'), true); + assert.equal(accountManager._isSecretKey('apiKey'), true); + const masked = accountManager._maskSecrets({ apiKey: 'xkeysib-a', webhookToken: 'b' }); + assert.deepEqual(masked, { apiKey: '********', webhookToken: '********' }); + } finally { + restore(); + } +}); + +// ── send body ─────────────────────────────────────────────────────────────── + +test('send body: sender, deduped recipients with names, html and text, tags, correlation', () => { + const body = build({ + to: ['Ada ', 'ADA@example.test'], + cc: 'Bob , ada@example.test', + bcc: ['carol@example.test', 'bob@example.test'], + subject: 'Order\r\nBcc: evil@example.test', + html: '

    Hi

    ', + text: 'Hi', + type: 'notification', + __logDocumentId: 'logdoc123', + }); + assert.deepEqual(body.sender, { email: 'noreply@brevo.example.test', name: 'Test Sender' }); + assert.deepEqual(body.to, [{ email: 'ada@example.test', name: 'Ada' }]); + assert.deepEqual(body.cc, [{ email: 'bob@example.test', name: 'Bob' }]); + assert.deepEqual(body.bcc, [{ email: 'carol@example.test' }]); + assert.equal(body.subject, 'OrderBcc: evil@example.test', 'CR/LF stripped'); + assert.equal(body.htmlContent, '

    Hi

    '); + assert.equal(body.textContent, 'Hi'); + assert.deepEqual(body.tags, ['magic-mail', 'notification']); + assert.equal(body.headers['X-Mailin-custom'], 'magicmail_id=logdoc123'); + assert.equal(body.headers['X-Email-Type'], 'notification'); + assert.equal(body.headers['Auto-Submitted'], 'auto-generated'); + assert.equal(body.templateId, undefined); + assert.equal(body.params, undefined); +}); + +test('send body: text-only mail sends textContent only; empty cc/bcc are left out', () => { + const body = build({ to: 'a@example.test', subject: 's', text: 'plain' }); + assert.equal(body.textContent, 'plain'); + assert.equal(body.htmlContent, undefined); + assert.equal(body.cc, undefined); + assert.equal(body.bcc, undefined); + assert.equal(body.headers['X-Mailin-custom'], undefined, 'no log id, no correlation'); + assert.deepEqual(body.tags, ['magic-mail', 'transactional']); +}); + +test('send body: display names are cut to 70 characters', () => { + const long = 'N'.repeat(90); + const body = build({ to: `${long} `, subject: 's', text: 't' }); + assert.equal(body.to[0].name.length, 70); +}); + +test('send body: Brevo-interpreted caller headers are dropped, X-Mailin-custom is ours', () => { + const body = build({ + to: 'a@example.test', + subject: 's', + text: 't', + __logDocumentId: 'logdoc9', + headers: { + 'X-Mailin-custom': 'magicmail_id=spoofed', + 'x-mailin-tag': 'x', + 'X-Sib-Sandbox': 'drop', + 'x-sib-anything': 'x', + 'X-Campaign': 'c1', + 'X-Mailer': 'spoof', + 'sender.ip': '192.0.2.1', + IdempotencyKey: 'abc', + Bcc: 'evil@example.test', + }, + }); + const names = Object.keys(body.headers).map((name) => name.toLowerCase()); + assert.ok(!names.includes('x-sib-sandbox') && !names.includes('x-sib-anything')); + assert.ok(!names.includes('x-mailin-tag')); + assert.ok(!names.includes('sender.ip') && !names.includes('idempotencykey')); + assert.ok(!names.includes('bcc')); + assert.equal(body.headers['X-Mailin-custom'], 'magicmail_id=logdoc9'); + assert.equal(body.headers['X-Campaign'], 'c1'); + assert.equal(body.headers['X-Mailer'], 'MagicMail/1.0'); +}); + +test('send body: one replyTo object; several reply-to addresses are refused', () => { + const one = build({ + to: 'a@example.test', + subject: 's', + text: 't', + replyTo: 'S ', + }); + assert.deepEqual(one.replyTo, { email: 's@example.test', name: 'S' }); + const fromAccount = build( + { to: 'a@example.test', subject: 's', text: 't' }, + { account: () => ({ ...accountFor('brevo'), replyTo: 'help@example.test' }) } + ); + assert.deepEqual(fromAccount.replyTo, { email: 'help@example.test' }); + assert.throws( + () => + build({ + to: 'a@example.test', + subject: 's', + text: 't', + replyTo: ['s@example.test', 'o@example.test'], + }), + (error) => error.name === 'ValidationError' && /one reply-to/.test(error.message) + ); +}); + +test('send body: attachments become base64 content + name; cid and unknown types are refused', () => { + const body = build({ + to: 'a@example.test', + subject: 's', + text: 't', + attachments: [ + { filename: 'receipt.pdf', content: 'PDF', contentType: 'application/pdf' }, + { filename: 'logo.PNG', content: PIXEL_PNG, encoding: 'base64' }, + ], + }); + assert.deepEqual(body.attachment, [ + { content: Buffer.from('PDF').toString('base64'), name: 'receipt.pdf' }, + { content: PIXEL_PNG, name: 'logo.PNG' }, + ]); + assert.throws( + () => + build({ + to: 'a@example.test', + subject: 's', + html: '', + attachments: [{ cid: 'logo', content: PIXEL_PNG, encoding: 'base64' }], + }), + (error) => error.name === 'ValidationError' && /inline \(cid\)/.test(error.message) + ); + for (const filename of ['script.exe', 'noextension', 'archive.7z']) { + assert.throws( + () => + build({ + to: 'a@example.test', + subject: 's', + text: 't', + attachments: [{ filename, content: 'x' }], + }), + (error) => error.name === 'ValidationError' && /file type/.test(error.message) + ); + } + assert.throws( + () => + build({ + to: 'a@example.test', + subject: 's', + text: 't', + attachments: [{ path: '/etc/passwd' }], + }), + /File-path and URL attachments are not supported/ + ); +}); + +test('send body: provider template uses templateId + params, keeps an explicit subject only', () => { + const variables = { name: 'Ada', order: { id: 7 } }; + const template = { remoteId: '42', name: 'Welcome', scope: 'default', subject: 'T', variables }; + const fromTemplate = build( + { to: 'a@example.test', html: '

    ignored

    ', text: 'ignored' }, + { template } + ); + assert.equal(fromTemplate.templateId, 42); + assert.deepEqual(fromTemplate.params, variables); + assert.equal(fromTemplate.subject, undefined, 'the template subject applies'); + assert.equal(fromTemplate.htmlContent, undefined); + assert.equal(fromTemplate.textContent, undefined); + const override = build({ to: 'a@example.test', subject: 'Mine' }, { template }); + assert.equal(override.subject, 'Mine'); + assert.deepEqual( + build({ to: 'a@example.test' }, { template: { ...template, variables: null } }).params, + {} + ); + assert.throws( + () => build({ to: 'a@example.test' }, { template: { ...template, remoteId: 'welcome' } }), + (error) => error.code === 'MAGIC_MAIL_ACCOUNT_CONFIG' + ); +}); + +// ── errors and hints ──────────────────────────────────────────────────────── + +test('hintFor maps statuses and specific codes to stable BREVO_* hints', () => { + assert.equal(brevo.hintFor(401), 'BREVO_INVALID_KEY'); + assert.equal(brevo.hintFor(401, 'AUTH'), 'BREVO_INVALID_KEY'); + assert.equal(brevo.hintFor(403, 'AUTH'), 'BREVO_FORBIDDEN'); + assert.equal(brevo.hintFor(429), 'BREVO_RATE_LIMITED'); + assert.equal(brevo.hintFor(undefined, 'RATE_LIMITED'), 'BREVO_RATE_LIMITED'); + assert.equal(brevo.hintFor(413, 'MAGIC_MAIL_MESSAGE_TOO_LARGE'), 'BREVO_TOO_LARGE'); + assert.equal(brevo.hintFor(503), 'BREVO_UNAVAILABLE'); + assert.equal(brevo.hintFor(undefined, 'UNAVAILABLE'), 'BREVO_UNAVAILABLE'); + assert.equal(brevo.hintFor(401, 'BREVO_IP_NOT_AUTHORIZED'), 'BREVO_IP_NOT_AUTHORIZED'); + assert.equal(brevo.hintFor(400, 'BREVO_SENDER_NOT_VERIFIED'), 'BREVO_SENDER_NOT_VERIFIED'); + assert.equal(brevo.hintFor(400), null); + assert.equal(brevo.hintFor(undefined, 'CREDENTIALS'), null); + for (const [code, text] of Object.entries(brevo.HINTS)) { + assert.match(code, /^BREVO_[A-Z_]+$/); + assert.ok(text.length > 20 && !/[<{}]/.test(text), code); + } +}); + +test('errorBodyHint reads documented codes and known messages, nothing else', () => { + const hint = (status, body) => internals.errorBodyHint(JSON.stringify(body), status); + assert.equal(hint(400, { code: 'not_enough_credits', message: 'x' }), 'BREVO_NO_CREDITS'); + assert.equal( + hint(400, { code: 'account_under_validation', message: 'x' }), + 'BREVO_ACCOUNT_UNDER_VALIDATION' + ); + assert.equal(hint(403, { code: 'permission_denied', message: 'x' }), 'BREVO_FORBIDDEN'); + assert.equal( + hint(401, { + code: 'unauthorized', + message: + 'Unable to authenticate. We have detected you are using an unrecognised IP address 192.0.2.10.', + }), + 'BREVO_IP_NOT_AUTHORIZED' + ); + assert.equal( + hint(400, { + code: 'invalid_parameter', + message: + 'Sending has been rejected because the sender you used noreply@example.test is not valid. Validate your sender or authenticate your domain', + }), + 'BREVO_SENDER_NOT_VERIFIED' + ); + assert.equal( + hint(400, { code: 'invalid_parameter', message: 'Template not found' }), + 'BREVO_TEMPLATE_NOT_FOUND' + ); + assert.equal(hint(401, { code: 'unauthorized', message: 'Key not found' }), null); + assert.equal(hint(400, { code: 'invalid_parameter', message: 'to is missing' }), null); + assert.equal(internals.errorBodyHint('not json', 400), null); + assert.equal(internals.errorBodyHint(null, 400), null); +}); + +test('the error-message patterns run in linear time on adversarial input', () => { + const inputs = [ + `sender${' '.repeat(100_000)}`, + `sender${'a'.repeat(120)}`.repeat(5_000), + `template${'x'.repeat(100_000)}`, + 'unrecognised i'.repeat(50_000), + `${'authorised_'.repeat(50_000)}!`, + ]; + const started = process.hrtime.bigint(); + for (const input of inputs) { + internals.SENDER_MESSAGE.test(input); + internals.TEMPLATE_MESSAGE.test(input); + internals.IP_MESSAGE.test(input); + internals.errorBodyHint(JSON.stringify({ code: 'x', message: input }), 400); + } + const ms = Number(process.hrtime.bigint() - started) / 1e6; + assert.ok(ms < 500, `patterns took ${ms} ms`); +}); + +test('rateLimitResetMs reads x-sib-ratelimit-reset as seconds remaining, bounded to 24 h', () => { + const at = (value) => ({ + headers: new Headers(value === null ? {} : { 'x-sib-ratelimit-reset': value }), + }); + assert.equal(internals.rateLimitResetMs(at('45')), 45_000); + assert.equal(internals.rateLimitResetMs(at('0')), 0); + assert.equal(internals.rateLimitResetMs(at('86401')), 0); + assert.equal(internals.rateLimitResetMs(at('1.5')), 0); + assert.equal(internals.rateLimitResetMs(at('soon')), 0); + assert.equal(internals.rateLimitResetMs(at(null)), 0); +}); + +// ── template variables ────────────────────────────────────────────────────── + +test('templateVariables maps params. to Magic Mail data keys', () => { + const source = [ + 'Hi {{ params.name }} {{params.order.id}}', + '{{ params.coupon | default : "none" }}', + '{% if params.vip %}VIP{% endif %}', + '{% for item in params.items %}{{ item.label }}{% endfor %}', + '{{ contact.FIRSTNAME }} {{ myparams.x }} {{ params. }} {{ params.1bad }}', + '{{ params.name }}', + ].join('\n'); + const { variables, truncated } = brevo.templateVariables(source); + assert.equal(truncated, false); + assert.deepEqual( + variables.map((v) => [v.path, v.root, v.blocks]), + [ + ['coupon', 'coupon', []], + ['items', 'items', ['for']], + ['name', 'name', []], + ['order.id', 'order', []], + ['vip', 'vip', ['if']], + ] + ); + assert.deepEqual(brevo.templateVariables(undefined), { variables: [], truncated: false }); + const many = Array.from({ length: 5 }, (_, i) => `{{ params.v${i} }}`).join(''); + assert.equal(brevo.templateVariables(many, { maxVariables: 3 }).truncated, true); +}); + +test('templateVariables stays linear on unclosed and repeated tags', () => { + const inputs = ['{{'.repeat(300_000), '{% params.'.repeat(80_000), `{{ ${'params.a'.repeat(90)}`]; + const started = process.hrtime.bigint(); + for (const input of inputs) brevo.templateVariables(input); + const ms = Number(process.hrtime.bigint() - started) / 1e6; + assert.ok(ms < 1000, `took ${ms} ms`); +}); + +// ── webhook ───────────────────────────────────────────────────────────────── + +const config = { apiKey: 'xkeysib-synthetic-0000000000', webhookToken: BREVO_WEBHOOK_TOKEN }; +const body = (value) => Buffer.from(JSON.stringify(value)); + +test('webhook auth: bearer token and custom header accepted; wrong, missing or other scheme are 401', async () => { + const event = EVENTS.Delivered; + const call = (headers, cfg = config) => + brevo.webhook({ config: cfg, rawBody: body(event), headers, now: NOW }); + assert.equal((await call({ authorization: `Bearer ${BREVO_WEBHOOK_TOKEN}` })).status, 200); + assert.equal((await call({ authorization: `bearer ${BREVO_WEBHOOK_TOKEN}` })).status, 200); + assert.equal((await call({ 'x-magic-mail-webhook-token': BREVO_WEBHOOK_TOKEN })).status, 200); + assert.equal((await call({ authorization: `Bearer ${BREVO_WEBHOOK_TOKEN}x` })).status, 401); + assert.equal((await call({ authorization: 'Bearer short' })).status, 401); + assert.equal((await call({ authorization: `Basic ${BREVO_WEBHOOK_TOKEN}` })).status, 401); + assert.equal( + ( + await call({ + authorization: 'Basic abc', + 'x-magic-mail-webhook-token': BREVO_WEBHOOK_TOKEN, + }) + ).status, + 401, + 'an Authorization header with another scheme is not overridden by the custom header' + ); + assert.equal((await call({ authorization: BREVO_WEBHOOK_TOKEN })).status, 401); + assert.equal((await call({})).status, 401); + assert.equal((await call({ authorization: ['Bearer x', 'Bearer y'] })).status, 401); + for (const webhookToken of [undefined, '', '********']) { + const result = await call( + { authorization: `Bearer ${webhookToken}` }, + { ...config, webhookToken } + ); + assert.equal(result.status, 401, 'no usable token in the config'); + } +}); + +test('webhook: malformed bodies are 400 after authentication; the replay key hashes the body', async () => { + const headers = { authorization: `Bearer ${BREVO_WEBHOOK_TOKEN}` }; + for (const raw of [ + Buffer.from('not json'), + Buffer.from('"text"'), + Buffer.from('null'), + Buffer.alloc(0), + ]) { + const result = await brevo.webhook({ config, rawBody: raw, headers, now: NOW }); + assert.equal(result.status, 400); + } + const unauthenticated = await brevo.webhook({ + config, + rawBody: Buffer.from('not json'), + headers: {}, + now: NOW, + }); + assert.equal(unauthenticated.status, 401, 'authentication runs before parsing'); + const a = await brevo.webhook({ config, rawBody: body(EVENTS.Delivered), headers, now: NOW }); + const b = await brevo.webhook({ config, rawBody: body(EVENTS.Delivered), headers, now: NOW }); + assert.match(a.replayKey, /^[0-9a-f]{64}$/); + assert.equal(a.replayKey, b.replayKey); +}); + +test('webhook: a batched array is mapped event by event and bounded', async () => { + const headers = { authorization: `Bearer ${BREVO_WEBHOOK_TOKEN}` }; + const batch = Object.values(EVENTS); + const result = await brevo.webhook({ config, rawBody: body(batch), headers, now: NOW }); + assert.equal(result.status, 200); + assert.deepEqual( + result.events.map((event) => event.kind), + [ + 'clicked', + 'deferred', + 'delivered', + 'deferred', + 'bounced', + 'complained', + 'opened', + 'bounced', + 'blocked', + 'bounced', + 'unsubscribed', + ] + ); + const huge = Array.from({ length: internals.MAX_WEBHOOK_EVENTS + 50 }, () => EVENTS.Delivered); + const bounded = await brevo.webhook({ config, rawBody: body(huge), headers, now: NOW }); + assert.equal(bounded.events.length, internals.MAX_WEBHOOK_EVENTS); +}); + +test('event mapping of the official examples (exact event names)', () => { + const map = (name, overrides = {}) => internals.mapEvent({ ...EVENTS[name], ...overrides }, NOW); + const expected = { + Sent: null, + Clicked: { kind: 'clicked', reasonCode: 'BREVO_CLICK', suppress: null, notDelivered: false }, + Deferred: { kind: 'deferred', reasonCode: 'BREVO_DEFERRED', suppress: null }, + Delivered: { kind: 'delivered', reasonCode: 'BREVO_DELIVERED', suppress: null }, + 'Soft bounced': { kind: 'deferred', reasonCode: 'BREVO_SOFT_BOUNCE', suppress: null }, + 'Hard bounced': { kind: 'bounced', reasonCode: 'BREVO_HARD_BOUNCE', suppress: 'bounce' }, + Spam: { kind: 'complained', reasonCode: 'BREVO_SPAM', suppress: 'complaint' }, + 'First opening': null, + Opened: { kind: 'opened', reasonCode: 'BREVO_OPENED' }, + 'Invalid email': { + kind: 'bounced', + reasonCode: 'BREVO_INVALID_EMAIL', + suppress: 'bounce', + notDelivered: true, + }, + Blocked: { kind: 'blocked', reasonCode: 'BREVO_BLOCKED', suppress: null, notDelivered: true }, + Unsubscribed: { kind: 'unsubscribed', reasonCode: 'BREVO_UNSUBSCRIBED' }, + 'Proxy open': null, + 'Unique proxy open': null, + }; + for (const [name, want] of Object.entries(expected)) { + const got = map(name); + if (want === null) { + assert.equal(got, null, `${name} is ignored`); + continue; + } + for (const [key, value] of Object.entries(want)) + assert.equal(got[key], value, `${name}.${key}`); + assert.equal(got.messageId, normalize(EVENTS[name]['message-id']), `${name} message id`); + assert.equal(got.recipient, 'recipient@example.test'); + assert.match(got.eventId, /^[0-9a-f]{64}$/); + } + // The documented "Error" example carries event "invalid_email" (doc bug); + // the real `error` event maps to dropped. + assert.equal(EVENTS.Error.event, 'invalid_email'); + const error = map('Error', { event: 'error' }); + assert.equal(error.kind, 'dropped'); + assert.equal(error.notDelivered, true); + assert.equal(error.reasonCode, 'BREVO_ERROR'); + // Configuration-style aliases. + assert.equal(map('Hard bounced', { event: 'hardBounce' }).reasonCode, 'BREVO_HARD_BOUNCE'); + assert.equal(map('Soft bounced', { event: 'softBounce' }).kind, 'deferred'); + assert.equal(map('Invalid email', { event: 'invalid' }).suppress, 'bounce'); + assert.equal(map('Delivered', { event: 'something_new' }), null); + assert.equal(map('Delivered', { event: '__proto__' }), null); + assert.equal(internals.mapEvent(null), null); + assert.equal(internals.mapEvent([EVENTS.Delivered]), null); +}); + +/** @param {string} id @returns {string|null} */ +function normalize(id) { + return require('../server/src/utils/message-id').normalizeMessageId(id); +} + +test('event mapping: correlation from X-Mailin-custom, click url, recipient, ids', () => { + const clicked = internals.mapEvent( + { ...EVENTS.Clicked, 'X-Mailin-custom': 'magicmail_id=logdoc42' }, + NOW + ); + assert.equal(clicked.magicmailId, 'logdoc42'); + assert.equal(clicked.url, 'https://shop.example.test/product'); + assert.equal(clicked.messageId, '201798300811.5787683@relay.example.test'); + for (const custom of ['some_custom_header', 'magicmail_id=bad id', 'magicmail_id=', 7]) { + assert.equal( + internals.mapEvent({ ...EVENTS.Delivered, 'X-Mailin-custom': custom }, NOW).magicmailId, + null + ); + } + const withBrackets = internals.mapEvent( + { + ...EVENTS.Delivered, + 'message-id': '', + email: ' Ada@Example.TEST ', + }, + NOW + ); + assert.equal(withBrackets.messageId, 'abc.123@smtp-relay.mailin.fr'); + assert.equal(withBrackets.recipient, 'ada@example.test'); + const a = internals.mapEvent(EVENTS.Delivered, NOW); + const b = internals.mapEvent({ ...EVENTS.Delivered }, NOW); + const c = internals.mapEvent( + { ...EVENTS.Delivered, ts_event: EVENTS.Delivered.ts_event + 1 }, + NOW + ); + assert.equal(a.eventId, b.eventId, 'a retried event keeps its id'); + assert.notEqual(a.eventId, c.eventId); + assert.notEqual( + internals.mapEvent(EVENTS.Clicked, NOW).eventId, + internals.mapEvent({ ...EVENTS.Clicked, link: 'https://shop.example.test/other' }, NOW).eventId + ); +}); + +test('event time: ts_event, then ts, then ts_epoch in ms or seconds; implausible values are null', () => { + assert.equal(internals.eventTimeMs({ ts_event: 1604933654, ts: 1 }, NOW), 1604933654000); + assert.equal(internals.eventTimeMs({ ts: 1604933619 }, NOW), 1604933619000); + assert.equal(internals.eventTimeMs({ ts_epoch: 1534486682000 }, NOW), 1534486682000); + assert.equal(internals.eventTimeMs({ ts_epoch: 1604933623 }, NOW), 1604933623000); + assert.equal(internals.eventTimeMs({ ts_event: 1 }, NOW), null); + assert.equal(internals.eventTimeMs({ ts_event: NOW / 1000 + 3 * 86400 }, NOW), null); + assert.equal(internals.eventTimeMs({ ts_event: '1604933654' }, NOW), null); + assert.equal(internals.eventTimeMs({}, NOW), null); +}); + +test('tokensMatch compares tokens of different lengths without throwing', () => { + assert.equal(internals.tokensMatch('a', 'a'.repeat(64)), false); + assert.equal(internals.tokensMatch('same-token-value', 'same-token-value'), true); + assert.equal(internals.presentedToken({ 'x-magic-mail-webhook-token': 'x'.repeat(600) }), null); +}); diff --git a/tests/brevo-contract.test.js b/tests/brevo-contract.test.js new file mode 100644 index 0000000..60c9be3 --- /dev/null +++ b/tests/brevo-contract.test.js @@ -0,0 +1,354 @@ +'use strict'; + +// Contract tests for the Brevo adapter against Brevo's official OpenAPI +// documents, vendored (only the operations Magic Mail calls) in +// tests/fixtures/openapi and pinned below: +// - brevo-email.json from https://developers.brevo.com/openapi/email-api.json +// (POST /smtp/email, GET /smtp/templates, GET /smtp/templates/{templateId}) +// - brevo-account.json from https://developers.brevo.com/openapi/accounts-and-settings.json +// (GET /account, POST /webhooks) +// Both list the server https://api.brevo.com/v3. Rules the schemas can not +// express (unique recipients, reserved headers, 70-character names, size +// limit, one reply-to) are asserted directly. Spec deviations found while +// building the adapter are listed in KNOWN_DEVIATIONS and asserted, so a fix +// upstream shows up here. Synthetic data only; fetch is faked. + +const test = require('node:test'); +const assert = require('node:assert/strict'); + +const { OpenApiContract, fixtureSha256 } = require('./helpers/openapi-contract'); +const { + BREVO_WEBHOOK_TOKEN, + accountFor, + createHarness, + fakeFetch, + jsonResponse, + withEncryptionKey, +} = require('./helpers/provider-send-harness'); +const { brevoTemplate } = require('./helpers/fake-brevo'); +const brevo = require('../server/src/providers/brevo'); + +/** SHA-256 of the vendored files and of the official sources they were extracted from. */ +const PINNED = { + 'brevo-email': { + file: 'bed15d6f3a496b6f219d00bb40e7d8496f1fdb6b866346f3c4a893b1cc3e2177', + source: 'd56adf661e413abc2436312fce0e83ee4219635bec4066c562ea6c9f5f77d43c', + url: 'https://developers.brevo.com/openapi/email-api.json', + }, + 'brevo-account': { + file: 'c295294bd39a378152105092b91a43328bc0bd1edaa48b7934ff27cab23a3065', + source: 'e9f90329fafc6955a003f8e36987ab5142eb0cdd3fe4d512fa88257642faf736', + url: 'https://developers.brevo.com/openapi/accounts-and-settings.json', + }, +}; + +/** + * Where the official Brevo documents disagree with each other or with the + * live API (checked 2026-11-18). Each entry is asserted below. + */ +const KNOWN_DEVIATIONS = [ + 'POST /smtp/email documents only 201 and 400; the API also answers 401 (verified with an unauthenticated request: {"code":"unauthorized","message":"authentication not found in headers"}), 403, 429 (rate-limits page) and 5xx.', + 'GET /account types plan[].credits as a string (title "float"); the adapter accepts a number or a numeric string.', + 'The transactional-webhooks examples are not valid JSON ("id": xxxxx); the fixtures use 26224 from the getting-started example.', + 'The "Error" example on the transactional-webhooks page carries "event": "invalid_email"; the table above it names the event "error".', + 'ts_epoch is documented in milliseconds, but most webhook examples show seconds; the adapter prefers ts_event (seconds) and reads ts_epoch below 1e11 as seconds.', + 'The webhook `events` enum of POST /webhooks has no "error", although the transactional-webhooks page lists an Error event.', + 'The send guide says to pick one of htmlContent/textContent; the reference allows both (textContent "Ignored when templateId is provided" only). Magic Mail sends both.', +]; + +const email = new OpenApiContract('brevo-email'); +const account = new OpenApiContract('brevo-account'); +const SEND_URL = 'https://api.brevo.com/v3/smtp/email'; + +/** + * Sends `message` through router.send() with one Brevo account and returns + * the recorded request. + * + * @param {object} message + * @param {object} [config] + * @returns {Promise} + */ +async function capture(message, config = {}) { + const restoreKey = withEncryptionKey(); + const fake = fakeFetch(); + try { + const { router } = createHarness([accountFor('brevo', config)]); + await router.send(message); + assert.equal(fake.calls.length, 1); + return fake.calls[0]; + } finally { + fake.restore(); + restoreKey(); + } +} + +/** Asserts that a recorded send request satisfies the contract and the invariants. */ +function assertSendRequest(call) { + assert.equal(call.url, SEND_URL); + assert.equal(call.method, 'POST'); + assert.deepEqual( + email.checkRequest({ method: call.method, url: call.url, json: call.json }), + [], + 'request matches the pinned send-transac-email schema' + ); + assert.ok(call.headers['api-key'], 'api-key header'); + assert.equal(call.headers.Authorization, undefined); + const body = call.json; + const people = [...(body.to || []), ...(body.cc || []), ...(body.bcc || [])]; + const addresses = people.map((entry) => entry.email.toLowerCase()); + assert.equal(new Set(addresses).size, addresses.length, 'every address appears once'); + for (const entry of [...people, body.sender, body.replyTo].filter(Boolean)) { + assert.ok(!entry.name || entry.name.length <= 70, 'names are at most 70 characters'); + } + for (const name of Object.keys(body.headers || {})) { + const lower = name.toLowerCase(); + assert.ok( + !lower.startsWith('x-sib-') && (!lower.startsWith('x-mailin-') || name === 'X-Mailin-custom'), + `reserved header ${name}` + ); + } + assert.ok(!Array.isArray(body.replyTo), 'one replyTo object'); + assert.ok(call.bodyBytes < brevo.__test__.BREVO_MAX_MESSAGE_BYTES); + if (body.templateId === undefined) { + assert.ok(body.sender?.email && body.subject, 'sender and subject without a template'); + assert.ok(body.htmlContent || body.textContent, 'a body without a template'); + } +} + +test('the vendored Brevo OpenAPI files are the pinned copies of the official documents', () => { + for (const [name, pin] of Object.entries(PINNED)) { + assert.equal(fixtureSha256(name), pin.file, `${name}.json changed`); + const contract = name === 'brevo-email' ? email : account; + assert.equal(contract.source.sha256, pin.source, `${name} official source`); + assert.equal(contract.source.url, pin.url); + assert.deepEqual( + contract.spec.servers.map((s) => s.url), + ['https://api.brevo.com/v3'] + ); + } + assert.equal(new URL(brevo.__test__.API_BASE).host, 'api.brevo.com', 'the only documented host'); + assert.equal(KNOWN_DEVIATIONS.length, 7); +}); + +test('plain text send', async () => { + assertSendRequest(await capture({ to: 'a@example.test', subject: 'Hi', text: 'plain' })); +}); + +test('html + text, cc/bcc dedupe, names, reply-to, headers, tags, correlation', async () => { + const call = await capture({ + to: ['Ada ', 'ADA@example.test'], + cc: 'Bob , ada@example.test', + bcc: ['carol@example.test'], + subject: 'All fields', + html: '

    Hi

    ', + text: 'Hi', + replyTo: 'Support ', + type: 'marketing', + unsubscribeUrl: 'https://shop.example.test/unsubscribe', + priority: 'high', + headers: { 'X-Campaign': 'c1', 'X-Mailin-custom': 'spoof', 'X-Sib-Sandbox': 'drop' }, + }); + assertSendRequest(call); + assert.deepEqual(call.json.tags, ['magic-mail', 'marketing']); + assert.equal(call.json.headers['X-Mailin-custom'], 'magicmail_id=logdoc123'); + assert.equal(call.json.headers['List-Unsubscribe'], ''); + assert.equal(call.json.headers['X-Priority'], '1 (Highest)'); +}); + +test('attachments with every documented extension class', async () => { + const call = await capture({ + to: 'a@example.test', + subject: 'Files', + text: 'see attached', + attachments: ['a.pdf', 'b.csv', 'c.ics', 'd.png', 'e.xlsx'].map((filename) => ({ + filename, + content: `content of ${filename}`, + })), + }); + assertSendRequest(call); + assert.equal(call.json.attachment.length, 5); + for (const item of call.json.attachment) { + assert.deepEqual(Object.keys(item).sort(), ['content', 'name']); + assert.match(item.content, /^[A-Za-z0-9+/]+=*$/); + } +}); + +test('template send body (templateId + params) matches the schema', () => { + const restore = withEncryptionKey(); + try { + const acc = accountFor('brevo'); + const { router } = createHarness([acc]); + const h = require('../server/src/services/email-router').__test__.providerSendHelpers(router); + const emailData = { to: 'a@example.test', __providerTemplate: { rowsByAccount: {} } }; + h.validateEmailSecurity(emailData); + const body = brevo.__test__.buildSendRequest({ + account: acc, + emailData, + template: { remoteId: '7', name: 'T', variables: { name: 'Ada', items: [{ n: 1 }] } }, + h, + }); + assertSendRequest({ + url: SEND_URL, + method: 'POST', + json: body, + headers: { 'api-key': 'x' }, + bodyBytes: Buffer.byteLength(JSON.stringify(body)), + }); + assert.equal(body.templateId, 7); + } finally { + restore(); + } +}); + +test('documented responses: 201 messageId, batch messageIds, 400 error body', async () => { + const ok = { messageId: '<201798300811.5787683@relay.domain.com>' }; + assert.deepEqual( + email.checkResponse({ method: 'POST', url: SEND_URL, status: 201, json: ok }), + [] + ); + assert.deepEqual( + email.checkResponse({ + method: 'POST', + url: SEND_URL, + status: 400, + json: { code: 'invalid_parameter', message: 'x' }, + }), + [] + ); + const restoreKey = withEncryptionKey(); + const batch = fakeFetch(() => jsonResponse(201, { messageIds: [''] })); + try { + const acc = accountFor('brevo'); + const { router } = createHarness([acc]); + const result = await router.sendViaAccount(acc, { + to: 'a@example.test', + subject: 's', + text: 't', + }); + assert.equal(result.messageId, 'a.1@relay.example.test'); + } finally { + batch.restore(); + restoreKey(); + } +}); + +test('deviation: 401/403/429/5xx are not documented for the send operation', () => { + for (const status of [401, 403, 429, 500]) { + assert.deepEqual( + email.checkResponse({ method: 'POST', url: SEND_URL, status, json: { message: 'x' } }), + [`status ${status} is not documented`] + ); + } +}); + +test('template list request and response match GET /smtp/templates', () => { + const url = 'https://api.brevo.com/v3/smtp/templates?limit=50&offset=0&sort=asc'; + assert.deepEqual(email.checkRequest({ method: 'GET', url }), []); + assert.deepEqual( + email.checkRequest({ + method: 'GET', + url: 'https://api.brevo.com/v3/smtp/templates?limit=1001', + }), + ['query limit: /v must be <= 1000'] + ); + const response = { + count: 2, + templates: [brevoTemplate(1, 'A'), brevoTemplate(2, 'B', { isActive: false })], + }; + assert.deepEqual(email.checkResponse({ method: 'GET', url, status: 200, json: response }), []); + const single = 'https://api.brevo.com/v3/smtp/templates/1'; + assert.deepEqual( + email.checkResponse({ method: 'GET', url: single, status: 200, json: brevoTemplate(1, 'A') }), + [] + ); + assert.deepEqual( + email.checkResponse({ + method: 'GET', + url: single, + status: 404, + json: { code: 'document_not_found', message: 'Template ID does not exist' }, + }), + [] + ); +}); + +test('account response matches GET /account; deviation: numeric credits', () => { + const url = 'https://api.brevo.com/v3/account'; + assert.deepEqual(account.checkRequest({ method: 'GET', url }), []); + const body = { + organization_id: 'org-synthetic', + user_id: 1, + enterprise: false, + email: 'owner@example.test', + firstName: 'A', + lastName: 'B', + companyName: 'C', + address: { city: 'x', country: 'x', street: 'x', zipCode: 'x' }, + plan: [{ type: 'free', creditsType: 'sendLimit', credits: '300' }], + relay: { enabled: true, data: { userName: 'owner@example.test', relay: 'r', port: 587 } }, + }; + assert.deepEqual(account.checkResponse({ method: 'GET', url, status: 200, json: body }), []); + const numeric = { ...body, plan: [{ type: 'free', creditsType: 'sendLimit', credits: 300 }] }; + assert.deepEqual(account.checkResponse({ method: 'GET', url, status: 200, json: numeric }), [ + 'response/plan/0/credits must be string', + ]); +}); + +test('the webhook the wizard asks for is a valid POST /webhooks body', () => { + const body = { + type: 'transactional', + channel: 'email', + description: 'Magic Mail delivery events', + url: 'https://cms.example.test/api/magic-mail/webhooks/brevo/abc123', + events: [ + 'delivered', + 'hardBounce', + 'softBounce', + 'invalid', + 'deferred', + 'blocked', + 'spam', + 'unsubscribed', + 'opened', + 'click', + ], + auth: { type: 'bearer', token: BREVO_WEBHOOK_TOKEN }, + batched: true, + }; + assert.deepEqual( + account.checkRequest({ method: 'POST', url: 'https://api.brevo.com/v3/webhooks', json: body }), + [] + ); + const alternative = { + ...body, + auth: undefined, + headers: [{ key: 'X-Magic-Mail-Webhook-Token', value: BREVO_WEBHOOK_TOKEN }], + }; + delete alternative.auth; + assert.deepEqual( + account.checkRequest({ + method: 'POST', + url: 'https://api.brevo.com/v3/webhooks', + json: alternative, + }), + [] + ); + assert.equal(brevo.WEBHOOK_TOKEN_HEADER, 'x-magic-mail-webhook-token'); + const enumValues = + account.spec.components.schemas.WebhooksPostRequestBodyContentApplicationJsonSchemaEventsItems + .enum; + assert.ok(!enumValues.includes('error'), 'deviation: no "error" in the webhook events enum'); + for (const event of body.events) assert.ok(enumValues.includes(event), event); +}); + +test('webhook fixture deviations are still present in the official examples', () => { + const events = require('./fixtures/webhooks/brevo-events.json'); + assert.equal(events.Error.event, 'invalid_email'); + assert.equal(events.Opened.ts_epoch < 1e11, true, 'ts_epoch in seconds in the example'); + assert.equal(events['Proxy open'].ts_epoch > 1e11, true, 'ts_epoch in ms in another example'); + for (const event of Object.values(events)) { + assert.ok( + !JSON.stringify(event).match(/@(?!example\.test|relay\.example\.test)[a-z.]+\.(com|fr)/) + ); + } +}); diff --git a/tests/brevo-integration.test.js b/tests/brevo-integration.test.js new file mode 100644 index 0000000..f3d652b --- /dev/null +++ b/tests/brevo-integration.test.js @@ -0,0 +1,638 @@ +'use strict'; + +// Integration tests for the Brevo adapter through the real services: the +// email router (normal and provider-template sends), provider-template sync, +// the account connection check and the delivery webhooks. Every Brevo request +// goes to a fake HTTP server (tests/helpers/fake-brevo.js) that validates it, +// and its own responses, against the pinned official OpenAPI documents. +// Synthetic data only; every other host is blocked. + +const test = require('node:test'); +const assert = require('node:assert/strict'); + +const { + brevoTemplate, + createBrevoState, + redirectBrevoFetch, + startFakeBrevo, +} = require('./helpers/fake-brevo'); +const { createStrapi } = require('./helpers/provider-template-strapi'); +const { + BREVO_WEBHOOK_TOKEN, + accountFor, + createHarness, +} = require('./helpers/provider-send-harness'); +const { + classifyDeliveryError, + retryLowerBoundMs, +} = require('../server/src/utils/delivery-outcome'); +const { toClientSendResult } = require('../server/src/utils/client-errors'); + +let fake; +let state; +let restoreFetch; +let previousKey; + +test.before(async () => { + previousKey = process.env.MAGIC_MAIL_ENCRYPTION_KEY; + process.env.MAGIC_MAIL_ENCRYPTION_KEY = 'b'.repeat(32); + state = createBrevoState(); + fake = await startFakeBrevo(state); + restoreFetch = redirectBrevoFetch(fake.port); +}); + +test.after(async () => { + restoreFetch(); + await fake.close(); + if (previousKey === undefined) delete process.env.MAGIC_MAIL_ENCRYPTION_KEY; + else process.env.MAGIC_MAIL_ENCRYPTION_KEY = previousKey; +}); + +/** Resets the fake Brevo state between tests. */ +function reset() { + const fresh = createBrevoState(); + for (const key of Object.keys(fresh)) state[key] = fresh[key]; +} + +const sends = () => + state.requests.filter((r) => r.method === 'POST' && r.path === '/v3/smtp/email'); + +/** + * Brevo account for the provider-template harness. + * + * @param {string} documentId + * @param {object} [overrides] + * @returns {object} + */ +function brevoAccount(documentId, overrides = {}) { + return { ...accountFor('brevo'), documentId, name: documentId, ...overrides }; +} + +// ── normal sends through the router ───────────────────────────────────────── + +test('router.send reaches Brevo with a spec-valid body and returns the Brevo message id', async () => { + reset(); + const { router } = createHarness([accountFor('brevo')]); + const result = await router.send({ + to: 'Ada ', + cc: 'bob@example.test', + subject: 'Receipt', + html: '

    Thanks

    ', + text: 'Thanks', + replyTo: 'help@example.test', + headers: { 'X-Campaign': 'c1', 'X-Sib-Sandbox': 'drop' }, + attachments: [{ filename: 'receipt.pdf', content: 'PDF', contentType: 'application/pdf' }], + }); + assert.deepEqual(state.violations, []); + assert.equal(sends().length, 1); + const request = sends()[0]; + assert.equal(request.apiKey, 'present'); + assert.equal(request.authorization, null, 'the key goes in api-key, never Authorization'); + assert.equal(request.apiKeyValue, 'xkeysib-fake-synthetic-key'); + assert.equal(request.json.headers['X-Sib-Sandbox'], undefined, 'callers can not use sandbox'); + assert.equal(request.json.headers['X-Mailin-custom'], 'magicmail_id=logdoc123'); + assert.deepEqual(request.json.replyTo, { email: 'help@example.test' }); + assert.equal(result.success, true); + assert.equal(result.messageId, '202611181200.1@smtp-relay.mailin.fr'); +}); + +test('errors 400/401/403/429/5xx: fixed message, status, hint, classification, no body leakage', async () => { + const cases = [ + { + status: 400, + body: { code: 'invalid_parameter', message: 'bad leak@example.test' }, + hint: null, + cls: 'permanent', + }, + { + status: 400, + body: { + code: 'invalid_parameter', + message: + 'Sending has been rejected because the sender you used leak@example.test is not valid. Validate your sender or authenticate your domain', + }, + hint: 'BREVO_SENDER_NOT_VERIFIED', + cls: 'permanent', + }, + { + status: 400, + body: { code: 'not_enough_credits', message: 'x leak@example.test' }, + hint: 'BREVO_NO_CREDITS', + cls: 'permanent', + }, + { + status: 401, + body: { code: 'unauthorized', message: 'Key not found leak@example.test' }, + hint: 'BREVO_INVALID_KEY', + cls: 'transient', + }, + { + status: 401, + body: { + code: 'unauthorized', + message: + 'We have detected you are using an unrecognised IP address 192.0.2.7 leak@example.test', + }, + hint: 'BREVO_IP_NOT_AUTHORIZED', + cls: 'transient', + }, + { + status: 403, + body: { code: 'permission_denied', message: 'leak@example.test' }, + hint: 'BREVO_FORBIDDEN', + cls: 'transient', + }, + { + status: 429, + body: { code: 'too_many_requests', message: 'leak@example.test' }, + headers: { 'x-sib-ratelimit-reset': '30' }, + hint: 'PROVIDER_RATE_LIMITED', + cls: 'transient', + }, + { + status: 500, + body: { message: 'leak@example.test' }, + hint: 'BREVO_UNAVAILABLE', + cls: 'ambiguous', + }, + { + status: 503, + body: { message: 'leak@example.test' }, + hint: 'BREVO_UNAVAILABLE', + cls: 'transient', + }, + ]; + for (const entry of cases) { + reset(); + state.failures.push({ + method: 'POST', + pathPrefix: '/v3/smtp/email', + status: entry.status, + body: entry.body, + headers: entry.headers, + times: 1, + }); + const account = accountFor('brevo'); + const { router, logs } = createHarness([account]); + const error = await router + .sendViaAccount(account, { to: 'a@example.test', subject: 's', text: 't' }) + .catch((e) => e); + const label = `${entry.status} ${entry.hint}`; + assert.equal(error.message, `Brevo API request failed: ${entry.status}`, label); + assert.equal(error.status, entry.status, label); + assert.equal(error.provider, 'brevo', label); + const client = toClientSendResult(error); + assert.equal(client.hintCode ?? null, entry.hint, label); + assert.equal(classifyDeliveryError(error), entry.cls, label); + if (entry.status === 429) { + assert.equal(error.retryAfterMs, 30_000); + assert.equal(retryLowerBoundMs(error), 30_000); + } + const serialized = JSON.stringify({ + error: { ...error, message: error.message }, + client, + logs, + }); + assert.ok(!serialized.includes('leak@example.test'), `${label}: no provider text`); + assert.ok(!serialized.includes('192.0.2.7'), `${label}: no provider text`); + assert.ok(!serialized.includes('xkeysib'), `${label}: no key`); + } +}); + +test('HTTP 413 maps to MAGIC_MAIL_MESSAGE_TOO_LARGE with the Brevo size hint', async () => { + reset(); + state.failures.push({ method: 'POST', pathPrefix: '/v3/smtp/email', status: 413, times: 1 }); + const account = accountFor('brevo'); + const { router } = createHarness([account]); + const error = await router + .sendViaAccount(account, { to: 'a@example.test', subject: 's', text: 't' }) + .catch((e) => e); + assert.equal(error.code, 'MAGIC_MAIL_MESSAGE_TOO_LARGE'); + assert.equal(toClientSendResult(error).hintCode, 'BREVO_TOO_LARGE'); +}); + +test('a message of 20 MB or more never reaches Brevo', async () => { + reset(); + const account = accountFor('brevo'); + const { router } = createHarness([account]); + const error = await router + .sendViaAccount(account, { + to: 'a@example.test', + subject: 's', + text: 't', + attachments: [{ filename: 'big.pdf', content: Buffer.alloc(16 * 1024 * 1024, 1) }], + }) + .catch((e) => e); + assert.equal(error.code, 'MAGIC_MAIL_MESSAGE_TOO_LARGE'); + assert.match(error.message, /20 MB/); + assert.equal(sends().length, 0); +}); + +test('an account without a usable key fails before any request (failover-safe)', async () => { + reset(); + for (const config of [{ apiKey: '' }, { apiKey: '********' }]) { + const account = accountFor('brevo', config); + const { router } = createHarness([account]); + const error = await router + .sendViaAccount(account, { to: 'a@example.test', subject: 's', text: 't' }) + .catch((e) => e); + assert.equal(error.code, 'MAGIC_MAIL_ACCOUNT_CONFIG'); + } + assert.equal(state.requests.length, 0); +}); + +test('a network failure surfaces as a fetch error, never with the key', async () => { + const account = accountFor('brevo'); + const { router, logs } = createHarness([account]); + const original = global.fetch; + global.fetch = async () => { + throw new TypeError('fetch failed'); + }; + try { + const error = await router + .sendViaAccount(account, { to: 'a@example.test', subject: 's', text: 't' }) + .catch((e) => e); + assert.equal(error.name, 'TypeError'); + assert.ok(!JSON.stringify(logs).includes('xkeysib')); + } finally { + global.fetch = original; + } +}); + +// ── provider templates ───────────────────────────────────────────────────── + +test('template sync pages with limit/offset, keeps inactive templates as unpublished', async () => { + reset(); + state.templates = [ + ...Array.from({ length: 58 }, (_, i) => brevoTemplate(i + 1, `Template ${i + 1}`)), + brevoTemplate(100, 'Welcome Email'), + brevoTemplate(101, 'Draft mail', { isActive: false }), + ]; + const h = createStrapi({ accounts: [brevoAccount('br1')] }); + const overview = await h.service('provider-templates').sync({ force: true }); + assert.deepEqual(state.violations, []); + const lists = state.requests.filter((r) => r.path === '/v3/smtp/templates'); + assert.deepEqual( + lists.map((r) => [r.query.limit, r.query.offset, r.query.sort]), + [ + ['50', '0', 'asc'], + ['50', '50', 'asc'], + ] + ); + assert.equal(overview.accounts[0].error, null); + const byKey = Object.fromEntries(overview.templates.map((t) => [t.key, t])); + assert.equal(overview.templates.length, 60); + assert.equal(byKey['brevo:welcome-email'].status, 'ok'); + assert.equal(byKey['brevo:draft-mail'].status, 'unpublished'); + assert.equal(byKey['brevo:welcome-email'].updatedAtProvider, '2026-11-11T09:00:00.000Z'); +}); + +test('template sync errors: 401, 429 and 5xx become account error codes', async () => { + for (const [status, code] of [ + [401, 'AUTH'], + [429, 'RATE_LIMITED'], + [502, 'UNAVAILABLE'], + ]) { + reset(); + state.failures.push({ method: 'GET', pathPrefix: '/v3/smtp/templates', status, times: 1 }); + const h = createStrapi({ accounts: [brevoAccount('br1')] }); + const overview = await h.service('provider-templates').sync({ force: true }); + assert.equal(overview.accounts[0].error, code, String(status)); + assert.equal(overview.templates.length, 0); + } +}); + +test('templates.list stops after 10 pages and warns; 404 is NOT_FOUND', async () => { + reset(); + state.templates = Array.from({ length: 25 }, (_, i) => brevoTemplate(i + 1, `T${i + 1}`)); + const brevo = require('../server/src/providers/brevo'); + const listed = await brevo.__test__.listTemplates( + { apiKey: 'xkeysib-fake-synthetic-key' }, + { pageSize: 2 } + ); + assert.equal(listed.templates.length, 20); + assert.equal(listed.warning, 'TRUNCATED'); + assert.deepEqual(state.violations, []); + state.failures.push({ method: 'GET', pathPrefix: '/v3/smtp/templates', status: 404, times: 1 }); + await assert.rejects( + brevo.templates.list({ apiKey: 'xkeysib-fake-synthetic-key' }), + (error) => error.name === 'ProviderApiError' && error.code === 'NOT_FOUND' + ); + await assert.rejects(brevo.templates.list({ apiKey: '********' }), { code: 'CREDENTIALS' }); +}); + +test('provider-template send: templateId + params from data, template subject, spec-valid', async () => { + reset(); + state.templates = [brevoTemplate(100, 'Welcome Email')]; + const h = createStrapi({ accounts: [brevoAccount('br1')] }); + await h.service('provider-templates').sync({ force: true }); + const detail = await h.service('provider-templates').detail('brevo:welcome-email'); + assert.ok(detail, 'synced template detail'); + + await h.service('email-router').send({ + to: 'ada@example.test', + providerTemplate: 'brevo:welcome-email', + data: { name: 'Ada', vip: true, when: new Date('2026-11-18T10:00:00Z') }, + }); + assert.deepEqual(state.violations, []); + const request = sends()[0].json; + assert.equal(request.templateId, 100); + assert.deepEqual(request.params, { name: 'Ada', vip: true, when: '2026-11-18T10:00:00.000Z' }); + assert.equal(request.subject, undefined, 'the Brevo template subject applies'); + assert.equal(request.htmlContent, undefined); + assert.match(request.headers['X-Mailin-custom'], /^magicmail_id=logdoc\d+$/); + + await h.service('email-router').send({ + to: 'ada@example.test', + subject: 'Explicit', + providerTemplate: 'brevo:welcome-email', + data: { name: 'Ada' }, + }); + assert.equal(sends()[1].json.subject, 'Explicit'); +}); + +// ── connection check ─────────────────────────────────────────────────────── + +test('connection check: GET /v3/account, details without personal data', async () => { + reset(); + const h = createStrapi({ accounts: [brevoAccount('br1')] }); + const manager = require('../server/src/services/account-manager')({ strapi: h.strapi }); + const result = await manager.checkConnection('br1'); + assert.deepEqual(state.violations, []); + assert.deepEqual(result, { + ok: true, + provider: 'brevo', + details: { + transactionalEnabled: true, + enterprise: false, + plans: [{ type: 'free', creditsType: 'sendLimit', credits: 300 }], + }, + }); + const text = JSON.stringify(result); + for (const personal of [ + 'owner@example.test', + 'Synthetic', + 'Street', + 'org-synthetic', + 'smtp-relay', + ]) { + assert.ok(!text.includes(personal), `no ${personal}`); + } +}); + +test('connection check failures map to codes and hints (401 key, 401 IP, 403, 429, 5xx)', async () => { + const cases = [ + [401, { code: 'unauthorized', message: 'Key not found' }, 'AUTH', 'BREVO_INVALID_KEY'], + [ + 401, + { + code: 'unauthorized', + message: 'We have detected you are using an unrecognised IP address 192.0.2.7', + }, + 'BREVO_IP_NOT_AUTHORIZED', + 'BREVO_IP_NOT_AUTHORIZED', + ], + [403, { code: 'permission_denied', message: 'no' }, 'BREVO_FORBIDDEN', 'BREVO_FORBIDDEN'], + [429, { message: 'slow down' }, 'RATE_LIMITED', 'BREVO_RATE_LIMITED'], + [500, { message: 'oops' }, 'UNAVAILABLE', 'BREVO_UNAVAILABLE'], + ]; + for (const [status, body, code, hintCode] of cases) { + reset(); + state.failures.push({ method: 'GET', pathPrefix: '/v3/account', status, body, times: 1 }); + const h = createStrapi({ accounts: [brevoAccount('br1')] }); + const manager = require('../server/src/services/account-manager')({ strapi: h.strapi }); + const result = await manager.checkConnection('br1'); + assert.equal(result.ok, false); + assert.equal(result.code, code, String(status)); + assert.equal(result.hintCode, hintCode, String(status)); + assert.equal(typeof result.hint, 'string'); + assert.ok(!JSON.stringify(result).includes('192.0.2.7')); + } +}); + +test('connection check with an unreadable or missing key is CREDENTIALS without a request', async () => { + reset(); + const h = createStrapi({ + accounts: [brevoAccount('br1', { config: accountFor('brevo', { apiKey: '' }).config })], + }); + const manager = require('../server/src/services/account-manager')({ strapi: h.strapi }); + const result = await manager.checkConnection('br1'); + assert.equal(result.ok, false); + assert.equal(result.code, 'CREDENTIALS'); + assert.equal(state.requests.length, 0); +}); + +// ── account create/update through account-manager ────────────────────────── + +test('account create stores a generated webhook token; update keeps masked secrets', async () => { + reset(); + const h = createStrapi({ accounts: [] }); + const manager = require('../server/src/services/account-manager')({ strapi: h.strapi }); + const { decryptCredentials } = require('../server/src/utils/encryption'); + const created = await manager.createAccount({ + name: 'Brevo', + provider: 'brevo', + fromEmail: 'noreply@brevo.example.test', + config: { apiKey: ' xkeysib-created-synthetic-key ', region: 'eu' }, + }); + const row = h.tables['plugin::magic-mail.email-account'].find( + (r) => r.documentId === created.documentId + ); + const stored = decryptCredentials(row.config); + assert.equal(stored.apiKey, 'xkeysib-created-synthetic-key'); + assert.match(stored.webhookToken, /^[A-Za-z0-9_-]{43}$/); + assert.equal(stored.region, undefined, 'unknown keys are dropped'); + + await manager.updateAccount(created.documentId, { + config: { apiKey: '********', webhookToken: '********' }, + }); + const after = decryptCredentials( + h.tables['plugin::magic-mail.email-account'].find((r) => r.documentId === created.documentId) + .config + ); + assert.deepEqual(after, stored, 'masks keep the stored secrets'); + + await assert.rejects( + manager.createAccount({ + name: 'Brevo 2', + provider: 'brevo', + fromEmail: 'noreply@brevo.example.test', + config: { apiKey: '' }, + }), + (error) => error.name === 'ValidationError' + ); +}); + +// ── delivery webhooks through the real service ───────────────────────────── + +const deliveryService = require('../server/src/services/delivery-webhooks'); +const EVENTS = require('./fixtures/webhooks/brevo-events.json'); + +const matches = (row, where = {}) => + Object.entries(where).every(([key, condition]) => { + if (condition && typeof condition === 'object' && Array.isArray(condition.$in)) { + return condition.$in.includes(row[key]); + } + return row[key] === condition; + }); + +/** + * In-memory Strapi double for the delivery-webhooks service with one Brevo + * account and the given email logs. + * + * @param {object[]} logs + * @param {object} [settings] + * @returns {object} + */ +function webhookHost(logs, settings = {}) { + const account = { ...accountFor('brevo'), documentId: 'acc1' }; + const tables = { + 'plugin::magic-mail.email-log': logs.map((log, index) => ({ + id: index + 1, + accountId: 'acc1', + deliveryStatus: 'sent', + deliveredAt: new Date('2026-01-01T00:00:00Z'), + bounced: false, + complained: false, + unsubscribed: false, + openCount: 0, + clickCount: 0, + ...log, + })), + 'plugin::magic-mail.email-event': [], + 'plugin::magic-mail.suppressed-recipient': [], + }; + const emitted = []; + let nextId = 1000; + const strapi = { + log: { debug() {}, info() {}, warn() {}, error() {} }, + config: { get: (_key, fallback) => fallback }, + eventHub: { emit: async (name, payload) => emitted.push({ name, payload }) }, + documents(uid) { + return { + findOne: async ({ documentId }) => + uid.endsWith('email-account') && documentId === account.documentId ? account : null, + update: async ({ documentId, data }) => { + const row = tables[uid].find((r) => r.documentId === documentId); + Object.assign(row, data); + return row; + }, + create: async ({ data }) => { + const row = { id: (nextId += 1), ...data }; + tables[uid].push(row); + return row; + }, + }; + }, + db: { + query(uid) { + const rows = () => tables[uid]; + return { + findOne: async ({ where }) => rows().find((row) => matches(row, where)) || null, + findMany: async ({ where }) => rows().filter((row) => matches(row, where)), + update: async ({ where, data }) => { + const row = rows().find((r) => matches(r, where)); + Object.assign(row, data); + return row; + }, + create: async ({ data }) => { + const row = { id: (nextId += 1), documentId: `doc${nextId}`, ...data }; + rows().push(row); + return row; + }, + count: async ({ where } = {}) => rows().filter((row) => matches(row, where)).length, + }; + }, + }, + plugin: () => ({ + service: (name) => { + if (name === 'plugin-settings') return { getSettings: async () => settings }; + if (name === 'bounce-monitor') return monitor; + throw new Error(`unexpected service ${name}`); + }, + }), + }; + const monitor = require('../server/src/services/bounce-monitor')({ strapi }); + const service = deliveryService({ strapi }); + return { + service, + emitted, + log: (id = 'log1') => tables['plugin::magic-mail.email-log'].find((r) => r.documentId === id), + events: () => tables['plugin::magic-mail.email-event'], + suppressed: () => tables['plugin::magic-mail.suppressed-recipient'], + }; +} + +const MESSAGE_ID = '201798300811.5787683@relay.example.test'; +const brevoLog = (extra = {}) => ({ + documentId: 'log1', + providerMessageId: MESSAGE_ID, + recipient: 'recipient@example.test', + ...extra, +}); +const post = (host, payload, headers = { authorization: `Bearer ${BREVO_WEBHOOK_TOKEN}` }) => + host.service.handleWebhook({ + provider: 'brevo', + accountId: 'acc1', + rawBody: Buffer.from(JSON.stringify(payload)), + headers, + }); + +test('webhook: hard bounce marks the log bounced and feeds suppression when enabled', async () => { + deliveryService.__test__.resetSeen(); + const host = webhookHost([brevoLog()], { suppressHardBounces: true }); + const result = await post(host, EVENTS['Hard bounced']); + assert.deepEqual(result, { status: 200, processed: 1, unmatched: 0 }); + assert.equal(host.log().deliveryStatus, 'bounced'); + assert.equal(host.log().bounceReason, 'BREVO_HARD_BOUNCE'); + assert.equal(host.suppressed().length, 1); + assert.deepEqual( + host.emitted.map((e) => e.name), + ['magic-mail.delivery.bounced'] + ); +}); + +test('webhook: a replayed request is acknowledged without work; an identical event once', async () => { + deliveryService.__test__.resetSeen(); + const host = webhookHost([brevoLog()]); + assert.equal((await post(host, EVENTS.Delivered)).processed, 1); + assert.deepEqual(await post(host, EVENTS.Delivered), { status: 200, processed: 0, unmatched: 0 }); + // The same event inside another batch body: de-duplicated by event id. + const again = await post(host, [EVENTS.Delivered, EVENTS.Sent]); + assert.equal(again.processed, 0); + assert.equal(host.events().length, 1); +}); + +test('webhook: correlation by X-Mailin-custom when the message id is unknown', async () => { + deliveryService.__test__.resetSeen(); + const host = webhookHost([brevoLog({ providerMessageId: 'other@relay.example.test' })]); + const result = await post(host, { ...EVENTS.Spam, 'X-Mailin-custom': 'magicmail_id=log1' }); + assert.equal(result.processed, 1); + assert.equal(host.log().complained, true); +}); + +test('webhook: wrong or missing token is 401 and changes nothing', async () => { + deliveryService.__test__.resetSeen(); + const host = webhookHost([brevoLog()]); + for (const headers of [{}, { authorization: 'Bearer wrong-token-value-0000000000000000' }]) { + const result = await post(host, EVENTS['Hard bounced'], headers); + assert.equal(result.status, 401); + } + assert.equal(host.log().deliveryStatus, 'sent'); +}); + +test('webhook: opens and clicks count only for provider-tracked logs', async () => { + deliveryService.__test__.resetSeen(); + const tracked = webhookHost([brevoLog({ providerTracking: true })]); + await post(tracked, [EVENTS.Opened, EVENTS['First opening'], EVENTS.Clicked]); + assert.equal(tracked.log().openCount, 1, 'unique_opened is not counted twice'); + assert.equal(tracked.log().clickCount, 1); + const click = tracked.events().find((e) => e.type === 'click'); + assert.equal(click.linkUrl, 'https://shop.example.test/product'); + + deliveryService.__test__.resetSeen(); + const untracked = webhookHost([brevoLog()]); + await post(untracked, [EVENTS.Opened, EVENTS.Clicked]); + assert.equal(untracked.log().openCount, 0); + assert.equal(untracked.events().length, 0); +}); diff --git a/tests/email-only-boundary.test.js b/tests/email-only-boundary.test.js index 57de78f..5052600 100644 --- a/tests/email-only-boundary.test.js +++ b/tests/email-only-boundary.test.js @@ -27,8 +27,10 @@ test('Magic-Mail registers only email, OAuth, analytics, settings, tracking and 'GET /track/open/:emailId/:recipientHash', 'POST /send', 'POST /send-message', + 'POST /webhooks/brevo/:accountId', 'POST /webhooks/mailgun/:accountId', 'POST /webhooks/sendgrid/:accountId', + 'POST /webhooks/ses/:accountId', ].sort() ); }); diff --git a/tests/fixtures/aws-sigv4/README.md b/tests/fixtures/aws-sigv4/README.md new file mode 100644 index 0000000..c2a7f79 --- /dev/null +++ b/tests/fixtures/aws-sigv4/README.md @@ -0,0 +1,24 @@ +# AWS SigV4 test vectors + +`v4-vectors.json` holds every case of the official AWS Signature Version 4 +test suite as shipped in `awslabs/aws-c-auth`: + +- Repository: +- Path: `tests/aws-signing-test-suite/v4//` +- Commit: `cf69fb7edf7c973524348bbcecda1b1684de4d5e` (retrieved 2026-11-18) +- License: Apache-2.0 (aws-c-auth `LICENSE`) + +Per case the files `context.json`, `request.txt`, +`header-canonical-request.txt`, `header-string-to-sign.txt`, +`header-signature.txt` and `header-signed-request.txt` are stored as strings, +each with the SHA-256 of the original upstream file. `tests/aws-sigv4.test.js` +re-computes every SHA-256 and runs all 38 cases against +`server/src/utils/aws-sigv4.js`. The credentials inside are the published AWS +example keys (`AKIDEXAMPLE`), not secrets. + +Re-generate (development only): + +```sh +node tests/helpers/vendor-aws-fixtures.js sigv4 /tests/aws-signing-test-suite/v4 +npx prettier --write tests/fixtures/aws-sigv4/v4-vectors.json +``` diff --git a/tests/fixtures/aws-sigv4/v4-vectors.json b/tests/fixtures/aws-sigv4/v4-vectors.json new file mode 100644 index 0000000..50541d6 --- /dev/null +++ b/tests/fixtures/aws-sigv4/v4-vectors.json @@ -0,0 +1,999 @@ +{ + "source": { + "repository": "https://github.com/awslabs/aws-c-auth", + "path": "tests/aws-signing-test-suite/v4", + "commit": "cf69fb7edf7c973524348bbcecda1b1684de4d5e", + "license": "Apache-2.0 (aws-c-auth LICENSE); AWS published SigV4 test suite", + "retrieved": "2026-11-18" + }, + "cases": { + "get-header-key-duplicate": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "095932a43e7b125a053680cbcaabe392ef500d60e07e31868845a4963d703bd4", + "content": "GET / HTTP/1.1\nHost:example.amazonaws.com\nMy-Header1:value2\nMy-Header1:value2\nMy-Header1:value1\n" + }, + "header-canonical-request.txt": { + "sha256": "dc7f04a3abfde8d472b0ab1a418b741b7c67174dad1551b4117b15527fbe966c", + "content": "GET\n/\n\nhost:example.amazonaws.com\nmy-header1:value2,value2,value1\nx-amz-date:20150830T123600Z\n\nhost;my-header1;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "c6242de698f8b40fc6d4a849e41e8d5662aff6c1a8f411575f522ed53c45c2c1", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\ndc7f04a3abfde8d472b0ab1a418b741b7c67174dad1551b4117b15527fbe966c" + }, + "header-signature.txt": { + "sha256": "545276fe096aaefd4c849826d9b372a19cf946ad46b61a59b5a3fb15cb5120d7", + "content": "c9d5ea9f3f72853aea855b47ea873832890dbdd183b4468f858259531a5138ea" + }, + "header-signed-request.txt": { + "sha256": "4406aea0dc0feca79f238bb596c4ecedcc59ce15045ec18bfbb73da12fce5b76", + "content": "GET / HTTP/1.1\nHost:example.amazonaws.com\nMy-Header1:value2\nMy-Header1:value2\nMy-Header1:value1\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=c9d5ea9f3f72853aea855b47ea873832890dbdd183b4468f858259531a5138ea\n\n" + } + }, + "get-header-value-multiline": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "87bc77b20a791d2a411b1f899ccca83ce4e53ab813418ce94833fdc9eeca2665", + "content": "GET / HTTP/1.1\nHost:example.amazonaws.com\nMy-Header1:value1\n value2\n value3\n" + }, + "header-canonical-request.txt": { + "sha256": "e99419459a677bc11de234014be3c4e72c1ea5b454ceb58b613061f5d7a162e8", + "content": "GET\n/\n\nhost:example.amazonaws.com\nmy-header1:value1 value2 value3\nx-amz-date:20150830T123600Z\n\nhost;my-header1;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "9ffef6b6145321aa60b195a54e16d56e57d249e97867372818b6be0c43eb2fc1", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\ne99419459a677bc11de234014be3c4e72c1ea5b454ceb58b613061f5d7a162e8" + }, + "header-signature.txt": { + "sha256": "62d1302d505b70e20908c3bd3c22486157c39c5390d03eda56cbdeaf10fb5345", + "content": "cfd34249e4b1c8d6b91ef74165d41a32e5fab3306300901bb65a51a73575eefd" + }, + "header-signed-request.txt": { + "sha256": "a4c5dece3b6a16e954d7c99612ccdf61d361230262f1b5ef3e6aef4631a1a753", + "content": "GET / HTTP/1.1\nHost:example.amazonaws.com\nMy-Header1:value1\n value2\n value3\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=cfd34249e4b1c8d6b91ef74165d41a32e5fab3306300901bb65a51a73575eefd\n\n" + } + }, + "get-header-value-order": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "730ad02079fde189a3bad34d54ae2ac258cd81d27e42eaaa4cd068c9b8e8a938", + "content": "GET / HTTP/1.1\nHost:example.amazonaws.com\nMy-Header1:value4\nMy-Header1:value1\nMy-Header1:value3\nMy-Header1:value2\n" + }, + "header-canonical-request.txt": { + "sha256": "31ce73cd3f3d9f66977ad3dd957dc47af14df92fcd8509f59b349e9137c58b86", + "content": "GET\n/\n\nhost:example.amazonaws.com\nmy-header1:value4,value1,value3,value2\nx-amz-date:20150830T123600Z\n\nhost;my-header1;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "497b265065488d34e4c516cca35dced5b02d611f2a8cf59d241f7f35848f449f", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n31ce73cd3f3d9f66977ad3dd957dc47af14df92fcd8509f59b349e9137c58b86" + }, + "header-signature.txt": { + "sha256": "fa6cdba6554ef7ad9e62f2136296eb81cc3765b24260f3f5a9713a53f0a40dcc", + "content": "08c7e5a9acfcfeb3ab6b2185e75ce8b1deb5e634ec47601a50643f830c755c01" + }, + "header-signed-request.txt": { + "sha256": "d10563b8cf331a03cf3097e81b50046087ce147175fcadd03d6b3f48e5da2222", + "content": "GET / HTTP/1.1\nHost:example.amazonaws.com\nMy-Header1:value4\nMy-Header1:value1\nMy-Header1:value3\nMy-Header1:value2\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=08c7e5a9acfcfeb3ab6b2185e75ce8b1deb5e634ec47601a50643f830c755c01\n\n" + } + }, + "get-header-value-trim": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "3ca569dba28e15df4200ca1619c6909645ad0259f6121827e099c46c66e9dc87", + "content": "GET / HTTP/1.1\nHost:example.amazonaws.com\nMy-Header1: value1\nMy-Header2: \"a b c\"\n" + }, + "header-canonical-request.txt": { + "sha256": "a726db9b0df21c14f559d0a978e563112acb1b9e05476f0a6a1c7d68f28605c7", + "content": "GET\n/\n\nhost:example.amazonaws.com\nmy-header1:value1\nmy-header2:\"a b c\"\nx-amz-date:20150830T123600Z\n\nhost;my-header1;my-header2;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "0108d35bd09f7f117e2101d06677ebccd51df2015fdd7284edc8ca49afab994b", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\na726db9b0df21c14f559d0a978e563112acb1b9e05476f0a6a1c7d68f28605c7" + }, + "header-signature.txt": { + "sha256": "9d7b902a2308b5d361e2caaa3306af9a28791d553d73c44b9c8cb72fe3b584b2", + "content": "acc3ed3afb60bb290fc8d2dd0098b9911fcaa05412b367055dee359757a9c736" + }, + "header-signed-request.txt": { + "sha256": "5a08e8c4caa69eb8521e06ebe0eaa62d4d93ecaa78fd13b83dc8eadede437784", + "content": "GET / HTTP/1.1\nHost:example.amazonaws.com\nMy-Header1: value1\nMy-Header2: \"a b c\"\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;my-header2;x-amz-date, Signature=acc3ed3afb60bb290fc8d2dd0098b9911fcaa05412b367055dee359757a9c736\n\n" + } + }, + "get-relative-normalized": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "d8b74911b99b5135181e4b70fca777aa214067c703c6a2af5cbd34b7e6b0064a", + "content": "GET /example/.. HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "bb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63", + "content": "GET\n/\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "9fea9fcbf5a67a7393fb14fd3c1b6e80d4f55dbbddad4302bb6905c0decd5570", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\nbb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63" + }, + "header-signature.txt": { + "sha256": "fa5655a3a49cffd6758983044fb6c6a34dfaf6dc74c3b71109e41ba265b57352", + "content": "5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31" + }, + "header-signed-request.txt": { + "sha256": "38938f71bd4a0fd08c62086db485c20bc65800c241338ff749d8e47357ad4184", + "content": "GET /example/.. HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31\n\n" + } + }, + "get-relative-relative-normalized": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "a9c41272e0cf1735ba02007c685bd03bb7ee7f15bc28a3a3ff60dc4b7a9ed460", + "content": "GET /example1/example2/../.. HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "bb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63", + "content": "GET\n/\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "9fea9fcbf5a67a7393fb14fd3c1b6e80d4f55dbbddad4302bb6905c0decd5570", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\nbb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63" + }, + "header-signature.txt": { + "sha256": "fa5655a3a49cffd6758983044fb6c6a34dfaf6dc74c3b71109e41ba265b57352", + "content": "5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31" + }, + "header-signed-request.txt": { + "sha256": "d0b523fadf59e7f626561011838725bbc433b9a19d1605e72706e1353e97ab6d", + "content": "GET /example1/example2/../.. HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31\n\n" + } + }, + "get-relative-relative-unnormalized": { + "context.json": { + "sha256": "d47c4b71842e953fec10ade654596793c44b0328eabf509b901d224894063d3a", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": false,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "a9c41272e0cf1735ba02007c685bd03bb7ee7f15bc28a3a3ff60dc4b7a9ed460", + "content": "GET /example1/example2/../.. HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "76115030c0f3ff06c20fdff5ceb6d5e0b835a1743e00b94fea7c7f381269437b", + "content": "GET\n/example1/example2/../..\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "c69bf2620cd42e5428cacf4d0bd1e7d0dd15a7a3805cd12818718e2d3776c3c0", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n76115030c0f3ff06c20fdff5ceb6d5e0b835a1743e00b94fea7c7f381269437b" + }, + "header-signature.txt": { + "sha256": "ccfef4264df2330a4f78d5c535097cd393e780f62e6ef01828b91d96f6958337", + "content": "dc33e0856fd4baca4d7aa2146c38958283844764f38c74252a333df5e613003b" + }, + "header-signed-request.txt": { + "sha256": "44b620d97df6efdbb147122624cd5a4eced7f59ac9826286579699a901a4d927", + "content": "GET /example1/example2/../.. HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=dc33e0856fd4baca4d7aa2146c38958283844764f38c74252a333df5e613003b\n\n" + } + }, + "get-relative-unnormalized": { + "context.json": { + "sha256": "d47c4b71842e953fec10ade654596793c44b0328eabf509b901d224894063d3a", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": false,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "d8b74911b99b5135181e4b70fca777aa214067c703c6a2af5cbd34b7e6b0064a", + "content": "GET /example/.. HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "0511f456aa502b456d135fcb9d749374a55228f9dbeedda1eacf659e05b0615b", + "content": "GET\n/example/..\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "cd899138fd942e3b7253c894d816a1710f916e7082430a59f5b5f024b41c2662", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n0511f456aa502b456d135fcb9d749374a55228f9dbeedda1eacf659e05b0615b" + }, + "header-signature.txt": { + "sha256": "3c3963fd637c696052ac654a4c777e413617d884c5959c81f782c47792d50685", + "content": "eca7ead57bb5aa5c8e28007acd4ff04e1ff9a0ff3b237ec1554a184887ff9282" + }, + "header-signed-request.txt": { + "sha256": "02da11a6b868076bd8f8c8c15ba185027174604abecdaa581fd5a6c07258a5af", + "content": "GET /example/.. HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=eca7ead57bb5aa5c8e28007acd4ff04e1ff9a0ff3b237ec1554a184887ff9282\n\n" + } + }, + "get-slash-dot-slash-normalized": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "4a64c13af5ff3fbb3500c5345cb4449992ce1ec84bf499b118d2dc7a83c51aaf", + "content": "GET /./ HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "bb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63", + "content": "GET\n/\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "9fea9fcbf5a67a7393fb14fd3c1b6e80d4f55dbbddad4302bb6905c0decd5570", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\nbb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63" + }, + "header-signature.txt": { + "sha256": "fa5655a3a49cffd6758983044fb6c6a34dfaf6dc74c3b71109e41ba265b57352", + "content": "5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31" + }, + "header-signed-request.txt": { + "sha256": "7442df976ec3e9f28087c762381df49eea7ae84d629c9525a0b51e8cf92d1964", + "content": "GET /./ HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31\n\n" + } + }, + "get-slash-dot-slash-unnormalized": { + "context.json": { + "sha256": "d47c4b71842e953fec10ade654596793c44b0328eabf509b901d224894063d3a", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": false,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "4a64c13af5ff3fbb3500c5345cb4449992ce1ec84bf499b118d2dc7a83c51aaf", + "content": "GET /./ HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "d67825e2268bd77a97c7688b8d72c31a3c1855b309808505ba0a9747d2465aa7", + "content": "GET\n/./\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "680e2a337e4a855b51b38c0ab36a65801c328447dea3aae5a34cdccba1e9ad3c", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\nd67825e2268bd77a97c7688b8d72c31a3c1855b309808505ba0a9747d2465aa7" + }, + "header-signature.txt": { + "sha256": "9633cd53ba3040f3ce2601d621f32c0dec6acb622f621bb879fb7253778f2bd0", + "content": "68714168e6557f8f2de0ef956fc24dc2593a4bd2961f8df51898d8a134695145" + }, + "header-signed-request.txt": { + "sha256": "23982d3b6240b311e5fdc09a238ee1832af89973f9d287f1e957ffce609e8c1b", + "content": "GET /./ HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=68714168e6557f8f2de0ef956fc24dc2593a4bd2961f8df51898d8a134695145\n\n" + } + }, + "get-slash-normalized": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "5f51a08c2f9218a0c8b630c64a534bb6405a85b038fee4c6ccfc334a36129082", + "content": "GET // HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "bb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63", + "content": "GET\n/\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "9fea9fcbf5a67a7393fb14fd3c1b6e80d4f55dbbddad4302bb6905c0decd5570", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\nbb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63" + }, + "header-signature.txt": { + "sha256": "fa5655a3a49cffd6758983044fb6c6a34dfaf6dc74c3b71109e41ba265b57352", + "content": "5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31" + }, + "header-signed-request.txt": { + "sha256": "6452ad45e6cb929a9e90b295277850815d3e3b0cb0f34782a117956ef4721cbf", + "content": "GET // HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31\n\n" + } + }, + "get-slash-pointless-dot-normalized": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "1be40007eac2398e16756d64c47eab8c7e917683b4a1ff2e34fd6e7ad4933730", + "content": "GET /./example HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "214d50c111a8edc4819da6a636336472c916b5240f51e9a51b5c3305180cf702", + "content": "GET\n/example\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "2835f7fac92431324cd0c5fa589554c49a3766ad30ab5bcecb865ebace06d0b2", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n214d50c111a8edc4819da6a636336472c916b5240f51e9a51b5c3305180cf702" + }, + "header-signature.txt": { + "sha256": "e86c2b55d0750e90af65fd314cc3b088cfcb7b843dd3439156b7ee9892c36871", + "content": "ef75d96142cf21edca26f06005da7988e4f8dc83a165a80865db7089db637ec5" + }, + "header-signed-request.txt": { + "sha256": "c9421ece8f3ae1cd45122ef419e998d20246d52710e3b3c7c8f8883894bc0ff2", + "content": "GET /./example HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=ef75d96142cf21edca26f06005da7988e4f8dc83a165a80865db7089db637ec5\n\n" + } + }, + "get-slash-pointless-dot-unnormalized": { + "context.json": { + "sha256": "d47c4b71842e953fec10ade654596793c44b0328eabf509b901d224894063d3a", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": false,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "1be40007eac2398e16756d64c47eab8c7e917683b4a1ff2e34fd6e7ad4933730", + "content": "GET /./example HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "73895e0e829507e28e39fd24669aedc2434a8e179e547e3c075b42921f952cdb", + "content": "GET\n/./example\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "210515bc569b5dc6a2b715748b3708ac5e0ad5520e506fb8dccd02aa6ea802db", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n73895e0e829507e28e39fd24669aedc2434a8e179e547e3c075b42921f952cdb" + }, + "header-signature.txt": { + "sha256": "049a05814a030f3ce27a515f2102052abf266e0e9ad69c9b237fb8d37c18d5aa", + "content": "beb03f223f7deae4146464f06e29eebbee9c8afbe15c290cf07aa8b119e14cff" + }, + "header-signed-request.txt": { + "sha256": "3259e0afff2b60561a3f2a5e1c27f56bfdf7bb8617c34d5e8061ebd8e6f437ab", + "content": "GET /./example HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=beb03f223f7deae4146464f06e29eebbee9c8afbe15c290cf07aa8b119e14cff\n\n" + } + }, + "get-slash-unnormalized": { + "context.json": { + "sha256": "d47c4b71842e953fec10ade654596793c44b0328eabf509b901d224894063d3a", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": false,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "5f51a08c2f9218a0c8b630c64a534bb6405a85b038fee4c6ccfc334a36129082", + "content": "GET // HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "80cb39203d058af815de2b79250ff56e1b73eb9b4718c86556cdc6f150c5d209", + "content": "GET\n//\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "378c59e820abfd2e511115c263b88baf23959fb81b86ebbc9607b872192941be", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n80cb39203d058af815de2b79250ff56e1b73eb9b4718c86556cdc6f150c5d209" + }, + "header-signature.txt": { + "sha256": "b11f99113ae4d4f66757b8c0ec5c68d4daa5b3b68727dc741aa503f365f9b937", + "content": "c88bcd3d312d75078c0cd961d6deae3f4c754924b01669efcfcb439fd5e5b76e" + }, + "header-signed-request.txt": { + "sha256": "cb8c743fd53521aa97b6c08c5008b7f7d1165ec2d8ff467fa4427fed8d6f46bc", + "content": "GET // HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=c88bcd3d312d75078c0cd961d6deae3f4c754924b01669efcfcb439fd5e5b76e\n\n" + } + }, + "get-slashes-normalized": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "24d96147f9668b53ab7a628a6d402b0780b458ba32a03281e34ea9ce99216e03", + "content": "GET //example// HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "cb96b4ac96d501f7c5c15bc6d67b3035061cfced4af6585ad927f7e6c985c015", + "content": "GET\n/example/\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "27bed0e57aed8d64d0448e73407daf8909ee0e56ca95b2f8973a1c94fff1b9f2", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\ncb96b4ac96d501f7c5c15bc6d67b3035061cfced4af6585ad927f7e6c985c015" + }, + "header-signature.txt": { + "sha256": "eb7125f7be4aeded024b87b4ba14b845d28ae16b8a94c68e5644193e5cdf4c2d", + "content": "9a624bd73a37c9a373b5312afbebe7a714a789de108f0bdfe846570885f57e84" + }, + "header-signed-request.txt": { + "sha256": "7375a659529cbfcf79a9fb3d33f7816ed93f9c57733b1403a54b40bfc5dcddda", + "content": "GET //example// HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=9a624bd73a37c9a373b5312afbebe7a714a789de108f0bdfe846570885f57e84\n\n" + } + }, + "get-slashes-unnormalized": { + "context.json": { + "sha256": "d47c4b71842e953fec10ade654596793c44b0328eabf509b901d224894063d3a", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": false,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "24d96147f9668b53ab7a628a6d402b0780b458ba32a03281e34ea9ce99216e03", + "content": "GET //example// HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "528ec3105ee1f34ab014bb0a1a45da0ed2742a4fea3555149e5b4d5d201eb240", + "content": "GET\n//example//\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "8aa5299f292a07d98e63b8137d7329bd7ae9967da79b4938ad9edb4dcb1d7d25", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n528ec3105ee1f34ab014bb0a1a45da0ed2742a4fea3555149e5b4d5d201eb240" + }, + "header-signature.txt": { + "sha256": "fb16ec9fc298aaf4ca2de14e0466d9a314b18fffc8451382233327d11458d119", + "content": "87cca117541a147f6df867677d98a7d80dff226d2bfca9e4ffa899665623c7e5" + }, + "header-signed-request.txt": { + "sha256": "dc2613694c5336ce8f8d2fcb40a8f9eecab3a600e8ceafb51f761a5da9dfc7bd", + "content": "GET //example// HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=87cca117541a147f6df867677d98a7d80dff226d2bfca9e4ffa899665623c7e5\n\n" + } + }, + "get-space-normalized": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "0a2901d646dd18800fa028eaddb79d7532b9a4fddcaf84724fec0377b34fbbcf", + "content": "GET /example space/ HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "63ee75631ed7234ae61b5f736dfc7754cdccfedbff4b5128a915706ee9390d86", + "content": "GET\n/example%20space/\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "2e8d72a7e2c454df4e75a46801ccd0a35975a7b46424bda1b835755715852e69", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n63ee75631ed7234ae61b5f736dfc7754cdccfedbff4b5128a915706ee9390d86" + }, + "header-signature.txt": { + "sha256": "10c75c8bea435e45866087e202d52990ca7676d92c2bff73a123ed5179ab36f0", + "content": "652487583200325589f1fba4c7e578f72c47cb61beeca81406b39ddec1366741" + }, + "header-signed-request.txt": { + "sha256": "a5fb43dc86f84471e2e212f37ed9407ac270e90386ec2e300d091059a12ec48f", + "content": "GET /example space/ HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=652487583200325589f1fba4c7e578f72c47cb61beeca81406b39ddec1366741\n\n" + } + }, + "get-space-unnormalized": { + "context.json": { + "sha256": "d47c4b71842e953fec10ade654596793c44b0328eabf509b901d224894063d3a", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": false,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "0a2901d646dd18800fa028eaddb79d7532b9a4fddcaf84724fec0377b34fbbcf", + "content": "GET /example space/ HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "63ee75631ed7234ae61b5f736dfc7754cdccfedbff4b5128a915706ee9390d86", + "content": "GET\n/example%20space/\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "2e8d72a7e2c454df4e75a46801ccd0a35975a7b46424bda1b835755715852e69", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n63ee75631ed7234ae61b5f736dfc7754cdccfedbff4b5128a915706ee9390d86" + }, + "header-signature.txt": { + "sha256": "10c75c8bea435e45866087e202d52990ca7676d92c2bff73a123ed5179ab36f0", + "content": "652487583200325589f1fba4c7e578f72c47cb61beeca81406b39ddec1366741" + }, + "header-signed-request.txt": { + "sha256": "a5fb43dc86f84471e2e212f37ed9407ac270e90386ec2e300d091059a12ec48f", + "content": "GET /example space/ HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=652487583200325589f1fba4c7e578f72c47cb61beeca81406b39ddec1366741\n\n" + } + }, + "get-unreserved": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "ca8959b237a7d49f99a4f1b00b2332a233bd177961fb408c4cbcf9c374992899", + "content": "GET /-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "6a968768eefaa713e2a6b16b589a8ea192661f098f37349f4e2c0082757446f9", + "content": "GET\n/-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "5aa8c0aeac75b71539d7554e880d53c6ea412ddc36543183f1672e7ad8a14dbe", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n6a968768eefaa713e2a6b16b589a8ea192661f098f37349f4e2c0082757446f9" + }, + "header-signature.txt": { + "sha256": "4a6b55068be48fba2ace3e96ec645747baf73ee362b6b86ae84f4479c8459904", + "content": "07ef7494c76fa4850883e2b006601f940f8a34d404d0cfa977f52a65bbf5f24f" + }, + "header-signed-request.txt": { + "sha256": "6243f9523c2d0b87ef238210287c393f68ef9c210822544181ae1daefd4c229a", + "content": "GET /-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=07ef7494c76fa4850883e2b006601f940f8a34d404d0cfa977f52a65bbf5f24f\n\n" + } + }, + "get-utf8": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "b4d266739a1a12c2d22056ddb5010a843c828d847f58ac9ab26696780bc1df8a", + "content": "GET /ሴ HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "2a0a97d02205e45ce2e994789806b19270cfbbb0921b278ccf58f5249ac42102", + "content": "GET\n/%E1%88%B4\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "2530860ffa3c645b610c1b10bb7b511d59c274f6eee7eee2f92c70b2887cbd2d", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n2a0a97d02205e45ce2e994789806b19270cfbbb0921b278ccf58f5249ac42102" + }, + "header-signature.txt": { + "sha256": "27ff33173706fc8945d9b21a3b7a53754cafdb752d216bdddbe6520037668439", + "content": "8318018e0b0f223aa2bbf98705b62bb787dc9c0e678f255a891fd03141be5d85" + }, + "header-signed-request.txt": { + "sha256": "5929bf2a313cd65a4d286073a9a0ae01ef8bce8a9b2163e087bf66791d5e95e2", + "content": "GET /ሴ HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=8318018e0b0f223aa2bbf98705b62bb787dc9c0e678f255a891fd03141be5d85\n\n" + } + }, + "get-vanilla": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "9b87a0709187548ccac04f6d06a8cba1fc85273003efcda670e9f3ca1ad63e4f", + "content": "GET / HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "bb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63", + "content": "GET\n/\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "9fea9fcbf5a67a7393fb14fd3c1b6e80d4f55dbbddad4302bb6905c0decd5570", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\nbb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63" + }, + "header-signature.txt": { + "sha256": "fa5655a3a49cffd6758983044fb6c6a34dfaf6dc74c3b71109e41ba265b57352", + "content": "5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31" + }, + "header-signed-request.txt": { + "sha256": "f94281f97a281169827bbd016b1454eec132260d77c505405c558b7d21a177bc", + "content": "GET / HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31\n\n" + } + }, + "get-vanilla-empty-query-key": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "4e4568a15255171dd51f24fc1a60dfe29f293bcb32c0ed3f008273c4d1cb1e2d", + "content": "GET /?Param1=value1 HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "1e24db194ed7d0eec2de28d7369675a243488e08526e8c1c73571282f7c517ab", + "content": "GET\n/\nParam1=value1\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "793f582392d7ebc0e329de45693ab2679c4b036a1637fd09816030f4619a235a", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n1e24db194ed7d0eec2de28d7369675a243488e08526e8c1c73571282f7c517ab" + }, + "header-signature.txt": { + "sha256": "0788f8d113c5e08451d25a14c00046f63f2791b96d125bb782cb859da38b8ca9", + "content": "a67d582fa61cc504c4bae71f336f98b97f1ea3c7a6bfe1b6e45aec72011b9aeb" + }, + "header-signed-request.txt": { + "sha256": "d7100430050edb60211d3f42905ee8616ca54e0539657afb62a67a869e66ece3", + "content": "GET /?Param1=value1 HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=a67d582fa61cc504c4bae71f336f98b97f1ea3c7a6bfe1b6e45aec72011b9aeb\n\n" + } + }, + "get-vanilla-query": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "9b87a0709187548ccac04f6d06a8cba1fc85273003efcda670e9f3ca1ad63e4f", + "content": "GET / HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "bb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63", + "content": "GET\n/\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "9fea9fcbf5a67a7393fb14fd3c1b6e80d4f55dbbddad4302bb6905c0decd5570", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\nbb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63" + }, + "header-signature.txt": { + "sha256": "fa5655a3a49cffd6758983044fb6c6a34dfaf6dc74c3b71109e41ba265b57352", + "content": "5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31" + }, + "header-signed-request.txt": { + "sha256": "f94281f97a281169827bbd016b1454eec132260d77c505405c558b7d21a177bc", + "content": "GET / HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31\n\n" + } + }, + "get-vanilla-query-order-encoded": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "9cc53deecccec5e3cf1b9ccfd0f56fee48ca024a7d89e55cb6e72d963fc9cc1a", + "content": "GET /?Param-3=Value3&Param=Value2&%E1%88%B4=Value1 HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "868294f5c38bd141c4972a373a76654f1418a8e4fc18b2e7903ae45e8ae0ec71", + "content": "GET\n/\n%E1%88%B4=Value1&Param=Value2&Param-3=Value3\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "207cb01b0add3cb9e2b353653a8522066edb10f06162355b2ad872099d8203bf", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n868294f5c38bd141c4972a373a76654f1418a8e4fc18b2e7903ae45e8ae0ec71" + }, + "header-signature.txt": { + "sha256": "8d5841cb6fef62be2bd14d4b9d3caf678d51b14d5789563b7c5ae5ada969b0ec", + "content": "371d3713e185cc334048618a97f809c9ffe339c62934c032af5a0e595648fcac" + }, + "header-signed-request.txt": { + "sha256": "6d9e91ce75b82e798cec41b012068e71e357a34b5b0863c2c5647036690bba8e", + "content": "GET /?Param-3=Value3&Param=Value2&%E1%88%B4=Value1 HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=371d3713e185cc334048618a97f809c9ffe339c62934c032af5a0e595648fcac\n\n" + } + }, + "get-vanilla-query-order-key-case": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "97810c491d9ed70141c44b1a180169aac0149f086dd6db2a4ddea810af99d6d4", + "content": "GET /?Param2=value2&Param1=value1 HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "816cd5b414d056048ba4f7c5386d6e0533120fb1fcfa93762cf0fc39e2cf19e0", + "content": "GET\n/\nParam1=value1&Param2=value2\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "003cbc3b1170b64f9cb91b6f5d8bc34c8880f68aa7aaccda1c8c89784685d75b", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n816cd5b414d056048ba4f7c5386d6e0533120fb1fcfa93762cf0fc39e2cf19e0" + }, + "header-signature.txt": { + "sha256": "20158c757b0f60f309dd1a91a863403fb30504ab919e8a2eb865992e8fb8b83b", + "content": "b97d918cfa904a5beff61c982a1b6f458b799221646efd99d3219ec94cdf2500" + }, + "header-signed-request.txt": { + "sha256": "9704694d66dfda9cce8a4dc5c45a73bcbd4373ba836b11773077e986f8f5c92b", + "content": "GET /?Param2=value2&Param1=value1 HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=b97d918cfa904a5beff61c982a1b6f458b799221646efd99d3219ec94cdf2500\n\n" + } + }, + "get-vanilla-query-unreserved": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "7de6e24f8d6f7b1cb5e9b9c766f47c5b60f06801892ed01e32f2510225a2ef87", + "content": "GET /?-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz=-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "c30d4703d9f799439be92736156d47ccfb2d879ddf56f5befa6d1d6aab979177", + "content": "GET\n/\n-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz=-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "1e07a253b77c390af5524f8703b469939d1022a98e97de879f4a2ed14812f24c", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\nc30d4703d9f799439be92736156d47ccfb2d879ddf56f5befa6d1d6aab979177" + }, + "header-signature.txt": { + "sha256": "b1a8b4c223dbbfbb60c55637b3d9e0355de0bfbb7ee96b8ca281f66117ac78c6", + "content": "9c3e54bfcdf0b19771a7f523ee5669cdf59bc7cc0884027167c21bb143a40197" + }, + "header-signed-request.txt": { + "sha256": "4358550a5f28d6c949a227a5d209e4da1c86b1bf3c2a01d0db4b9703baeb4f64", + "content": "GET /?-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz=-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=9c3e54bfcdf0b19771a7f523ee5669cdf59bc7cc0884027167c21bb143a40197\n\n" + } + }, + "get-vanilla-utf8-query": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "71775630f617a76d3f8cea8a489194033dd250a852777171ea7dd6d2703fb003", + "content": "GET /?ሴ=bar HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "eb30c5bed55734080471a834cc727ae56beb50e5f39d1bff6d0d38cb192a7073", + "content": "GET\n/\n%E1%88%B4=bar\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "df36326ee12b27c17280905db80c552f94e9f4869ca845de5f7aba1004513f73", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\neb30c5bed55734080471a834cc727ae56beb50e5f39d1bff6d0d38cb192a7073" + }, + "header-signature.txt": { + "sha256": "5839f837a202711c2fc32f85372160a400d3ac5c20f0ef5c8a192e32faf63135", + "content": "2cdec8eed098649ff3a119c94853b13c643bcf08f8b0a1d91e12c9027818dd04" + }, + "header-signed-request.txt": { + "sha256": "3e2d3ff932daa00add009647180bbe7ae844ba79232012fd16d445f0fdd4ac08", + "content": "GET /?ሴ=bar HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=2cdec8eed098649ff3a119c94853b13c643bcf08f8b0a1d91e12c9027818dd04\n\n" + } + }, + "get-vanilla-with-session-token": { + "context.json": { + "sha256": "2294d0776e907b6fe1d6fefc7806f6efa25378bac9c050eba6cf67d96d54a5dc", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\",\n \"token\": \"6e86291e8372ff2a2260956d9b8aae1d763fbf315fa00fa31553b73ebf194267\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "9b87a0709187548ccac04f6d06a8cba1fc85273003efcda670e9f3ca1ad63e4f", + "content": "GET / HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "067b36aa60031588cea4a4cde1f21215227a047690c72247f1d70b32fbbfad2b", + "content": "GET\n/\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\nx-amz-security-token:6e86291e8372ff2a2260956d9b8aae1d763fbf315fa00fa31553b73ebf194267\n\nhost;x-amz-date;x-amz-security-token\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "cf288f2c6f975eafad67cb4bc9ce1c1bb3c6ddda46ed83e006ec48f133b8c665", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n067b36aa60031588cea4a4cde1f21215227a047690c72247f1d70b32fbbfad2b" + }, + "header-signature.txt": { + "sha256": "69d69f1e309666ee133735ba2f35fc571dbc94df1b5180c10633a385b7b9773a", + "content": "07ec1639c89043aa0e3e2de82b96708f198cceab042d4a97044c66dd9f74e7f8" + }, + "header-signed-request.txt": { + "sha256": "79048a74373343ec6589cc3bcbc524f0ccdccfedf77d0465c05b1e26cf336d36", + "content": "GET / HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Security-Token:6e86291e8372ff2a2260956d9b8aae1d763fbf315fa00fa31553b73ebf194267\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date;x-amz-security-token, Signature=07ec1639c89043aa0e3e2de82b96708f198cceab042d4a97044c66dd9f74e7f8\n\n" + } + }, + "post-header-key-case": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "29349106eca8824883913a7e55662958625d22ad40b4b8dcd53876bcce60063c", + "content": "POST / HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "553f88c9e4d10fc9e109e2aeb65f030801b70c2f6468faca261d401ae622fc87", + "content": "POST\n/\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "73fd75fb7e71e1e9be6b5982cfe16f79f2a2ab9c33518a12183b481f28d25206", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n553f88c9e4d10fc9e109e2aeb65f030801b70c2f6468faca261d401ae622fc87" + }, + "header-signature.txt": { + "sha256": "ee1aeaafe181b7bf97af49c9cff9cc31bb9a7ee0357fe3b0c121029ea366a18f", + "content": "5da7c1a2acd57cee7505fc6676e4e544621c30862966e37dddb68e92efbe5d6b" + }, + "header-signed-request.txt": { + "sha256": "04838851334fe787a627d5e1bdb3985eb42070aa5c08bd80d8b8eeca36f92ae9", + "content": "POST / HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5da7c1a2acd57cee7505fc6676e4e544621c30862966e37dddb68e92efbe5d6b\n\n" + } + }, + "post-header-key-sort": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "2d690f0ba8e57ec0c982d92cdd7f5ab3001f3bd72b0fb71a40112e729d2475cf", + "content": "POST / HTTP/1.1\nHost:example.amazonaws.com\nMy-Header1:value1\n" + }, + "header-canonical-request.txt": { + "sha256": "9368318c2967cf6de74404b30c65a91e8f6253e0a8659d6d5319f1a812f87d65", + "content": "POST\n/\n\nhost:example.amazonaws.com\nmy-header1:value1\nx-amz-date:20150830T123600Z\n\nhost;my-header1;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "63908f392d491f7a43e8fd50a3b775e9adf30265af75c05159cba8d839c36c7a", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n9368318c2967cf6de74404b30c65a91e8f6253e0a8659d6d5319f1a812f87d65" + }, + "header-signature.txt": { + "sha256": "c6ec5ad5864b29c66026049862d8cec6b36719187048ffd20de92cbfed056c29", + "content": "c5410059b04c1ee005303aed430f6e6645f61f4dc9e1461ec8f8916fdf18852c" + }, + "header-signed-request.txt": { + "sha256": "66d18e62e9591a76b8b7e0de22c565099f3425f9292f77304453bb428b1fb860", + "content": "POST / HTTP/1.1\nHost:example.amazonaws.com\nMy-Header1:value1\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=c5410059b04c1ee005303aed430f6e6645f61f4dc9e1461ec8f8916fdf18852c\n\n" + } + }, + "post-header-value-case": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "25e6676ad202e9fe09788e3c077c514c061bbd1d1dc3a06c2b25f1237f4cc86b", + "content": "POST / HTTP/1.1\nHost:example.amazonaws.com\nMy-Header1:VALUE1\n" + }, + "header-canonical-request.txt": { + "sha256": "d51ced243e649e3de6ef63afbbdcbca03131a21a7103a1583706a64618606a93", + "content": "POST\n/\n\nhost:example.amazonaws.com\nmy-header1:VALUE1\nx-amz-date:20150830T123600Z\n\nhost;my-header1;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "c574383bb4efd4f125554c6bfa24f89e0eb655b09b2d72d1ddfd9728c7f2a243", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\nd51ced243e649e3de6ef63afbbdcbca03131a21a7103a1583706a64618606a93" + }, + "header-signature.txt": { + "sha256": "4daf1fc192be79c405cdb199812e56359d3ec3b1e742e51880bbce7f3e7a50f8", + "content": "cdbc9802e29d2942e5e10b5bccfdd67c5f22c7c4e8ae67b53629efa58b974b7d" + }, + "header-signed-request.txt": { + "sha256": "710bef1c24adb85b9c503a5251eebb257fd1ca0c1adf7b830fbb6063fa31f446", + "content": "POST / HTTP/1.1\nHost:example.amazonaws.com\nMy-Header1:VALUE1\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=cdbc9802e29d2942e5e10b5bccfdd67c5f22c7c4e8ae67b53629efa58b974b7d\n\n" + } + }, + "post-sts-header-after": { + "context.json": { + "sha256": "047132d9810c045eaa4607e519f6393764c6b1ad8d0dc991f9f5406e98eb55da", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\",\n \"token\": \"AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA==\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\",\n \"omit_session_token\": true\n}\n" + }, + "request.txt": { + "sha256": "29349106eca8824883913a7e55662958625d22ad40b4b8dcd53876bcce60063c", + "content": "POST / HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "553f88c9e4d10fc9e109e2aeb65f030801b70c2f6468faca261d401ae622fc87", + "content": "POST\n/\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "73fd75fb7e71e1e9be6b5982cfe16f79f2a2ab9c33518a12183b481f28d25206", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n553f88c9e4d10fc9e109e2aeb65f030801b70c2f6468faca261d401ae622fc87" + }, + "header-signature.txt": { + "sha256": "ee1aeaafe181b7bf97af49c9cff9cc31bb9a7ee0357fe3b0c121029ea366a18f", + "content": "5da7c1a2acd57cee7505fc6676e4e544621c30862966e37dddb68e92efbe5d6b" + }, + "header-signed-request.txt": { + "sha256": "54da8a6363251adb866a4c39448577fff96ddcc8571789dc9df837d2c71cf5c6", + "content": "POST / HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Security-Token:AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA==\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5da7c1a2acd57cee7505fc6676e4e544621c30862966e37dddb68e92efbe5d6b\n\n" + } + }, + "post-sts-header-before": { + "context.json": { + "sha256": "7937a4cfae3500896c6b9604fbe4543e4fff2b0d7ccb6765a7a6f211e58e0130", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\",\n \"token\": \"AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA==\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\",\n \"omit_session_token\": false\n}\n" + }, + "request.txt": { + "sha256": "29349106eca8824883913a7e55662958625d22ad40b4b8dcd53876bcce60063c", + "content": "POST / HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "c237e1b440d4c63c32ca95b5b99481081cb7b13c7e40434868e71567c1a882f6", + "content": "POST\n/\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\nx-amz-security-token:AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA==\n\nhost;x-amz-date;x-amz-security-token\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "63bc10877d08fb9f46e95a03f2082a0539ebc2085ccb07fa9def20b0fe2e2b29", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\nc237e1b440d4c63c32ca95b5b99481081cb7b13c7e40434868e71567c1a882f6" + }, + "header-signature.txt": { + "sha256": "2303102c20d888956d8146cc180a0884cc483183fff1772289479626aa809d86", + "content": "85d96828115b5dc0cfc3bd16ad9e210dd772bbebba041836c64533a82be05ead" + }, + "header-signed-request.txt": { + "sha256": "b27030c08a85b4650b81f734dca5744c45d54689cbb915d96765b326c65e7d2e", + "content": "POST / HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Security-Token:AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA==\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date;x-amz-security-token, Signature=85d96828115b5dc0cfc3bd16ad9e210dd772bbebba041836c64533a82be05ead\n\n" + } + }, + "post-vanilla": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "29349106eca8824883913a7e55662958625d22ad40b4b8dcd53876bcce60063c", + "content": "POST / HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "553f88c9e4d10fc9e109e2aeb65f030801b70c2f6468faca261d401ae622fc87", + "content": "POST\n/\n\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "73fd75fb7e71e1e9be6b5982cfe16f79f2a2ab9c33518a12183b481f28d25206", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n553f88c9e4d10fc9e109e2aeb65f030801b70c2f6468faca261d401ae622fc87" + }, + "header-signature.txt": { + "sha256": "ee1aeaafe181b7bf97af49c9cff9cc31bb9a7ee0357fe3b0c121029ea366a18f", + "content": "5da7c1a2acd57cee7505fc6676e4e544621c30862966e37dddb68e92efbe5d6b" + }, + "header-signed-request.txt": { + "sha256": "04838851334fe787a627d5e1bdb3985eb42070aa5c08bd80d8b8eeca36f92ae9", + "content": "POST / HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5da7c1a2acd57cee7505fc6676e4e544621c30862966e37dddb68e92efbe5d6b\n\n" + } + }, + "post-vanilla-empty-query-value": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "b1c4114a5cf0f64ba8d065abf28a614f4ea7a67ddbe77cd4f590a4f3aaeb5a73", + "content": "POST /?Param1=value1 HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "9d659678c1756bb3113e2ce898845a0a79dbbc57b740555917687f1b3340fbbd", + "content": "POST\n/\nParam1=value1\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "13275c2dab349dbf6475d0edf1566e296001bb62ba7a9d9d9128d7ca1b945190", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n9d659678c1756bb3113e2ce898845a0a79dbbc57b740555917687f1b3340fbbd" + }, + "header-signature.txt": { + "sha256": "1c9e8fe0b2558073972b690c2cc279a3551df00eade950cec79e6c97d2f4fa3a", + "content": "28038455d6de14eafc1f9222cf5aa6f1a96197d7deb8263271d420d138af7f11" + }, + "header-signed-request.txt": { + "sha256": "ffbdb86069931f4d792e5d587537b196c2a898b6bf8a66a484a49a32cdb2d713", + "content": "POST /?Param1=value1 HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=28038455d6de14eafc1f9222cf5aa6f1a96197d7deb8263271d420d138af7f11\n\n" + } + }, + "post-vanilla-query": { + "context.json": { + "sha256": "5f8a32a755e065dec2dbcb5b7f2a8b1dcd539391255514de714704e33916a2f1", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": false,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "b1c4114a5cf0f64ba8d065abf28a614f4ea7a67ddbe77cd4f590a4f3aaeb5a73", + "content": "POST /?Param1=value1 HTTP/1.1\nHost:example.amazonaws.com\n" + }, + "header-canonical-request.txt": { + "sha256": "9d659678c1756bb3113e2ce898845a0a79dbbc57b740555917687f1b3340fbbd", + "content": "POST\n/\nParam1=value1\nhost:example.amazonaws.com\nx-amz-date:20150830T123600Z\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "header-string-to-sign.txt": { + "sha256": "13275c2dab349dbf6475d0edf1566e296001bb62ba7a9d9d9128d7ca1b945190", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\n9d659678c1756bb3113e2ce898845a0a79dbbc57b740555917687f1b3340fbbd" + }, + "header-signature.txt": { + "sha256": "1c9e8fe0b2558073972b690c2cc279a3551df00eade950cec79e6c97d2f4fa3a", + "content": "28038455d6de14eafc1f9222cf5aa6f1a96197d7deb8263271d420d138af7f11" + }, + "header-signed-request.txt": { + "sha256": "ffbdb86069931f4d792e5d587537b196c2a898b6bf8a66a484a49a32cdb2d713", + "content": "POST /?Param1=value1 HTTP/1.1\nHost:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=28038455d6de14eafc1f9222cf5aa6f1a96197d7deb8263271d420d138af7f11\n\n" + } + }, + "post-x-www-form-urlencoded": { + "context.json": { + "sha256": "c94708386cb3f2b7ab4337aa7ec85a7cdcfb7a0d4d2f22be66495b18a0d7ba21", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": true,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "ac60f842802c8efa6ddb25b8cda8e4380354552a5c376073ff489ec583b2d905", + "content": "POST / HTTP/1.1\nContent-Type:application/x-www-form-urlencoded\nHost:example.amazonaws.com\nContent-Length:13\n\nParam1=value1" + }, + "header-canonical-request.txt": { + "sha256": "b1edd1d03544c25390e32085d55b57acc9a3961bb59415ff86c45c3d89d16cfb", + "content": "POST\n/\n\ncontent-length:13\ncontent-type:application/x-www-form-urlencoded\nhost:example.amazonaws.com\nx-amz-content-sha256:9095672bbd1f56dfc5b65f3e153adc8731a4a654192329106275f4c7b24d0b6e\nx-amz-date:20150830T123600Z\n\ncontent-length;content-type;host;x-amz-content-sha256;x-amz-date\n9095672bbd1f56dfc5b65f3e153adc8731a4a654192329106275f4c7b24d0b6e" + }, + "header-string-to-sign.txt": { + "sha256": "5c809c698c26205ff574ae3d4a78bdfd40ec4770ab777350a531e1b7c283939a", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\nb1edd1d03544c25390e32085d55b57acc9a3961bb59415ff86c45c3d89d16cfb" + }, + "header-signature.txt": { + "sha256": "a1509139e088b49fa03e4ca91bb43c66a39eb1e60705f11296eae3c2a90ee780", + "content": "d3875051da38690788ef43de4db0d8f280229d82040bfac253562e56c3f20e0b" + }, + "header-signed-request.txt": { + "sha256": "e389a8c47210b6e2499534f30d80994b34da047fe1ed9bfdca1748868c4fafa4", + "content": "POST / HTTP/1.1\nContent-Type:application/x-www-form-urlencoded\nHost:example.amazonaws.com\nContent-Length:13\nX-Amz-Date:20150830T123600Z\nx-amz-content-sha256:9095672bbd1f56dfc5b65f3e153adc8731a4a654192329106275f4c7b24d0b6e\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-content-sha256;x-amz-date, Signature=d3875051da38690788ef43de4db0d8f280229d82040bfac253562e56c3f20e0b\n\nParam1=value1" + } + }, + "post-x-www-form-urlencoded-parameters": { + "context.json": { + "sha256": "c94708386cb3f2b7ab4337aa7ec85a7cdcfb7a0d4d2f22be66495b18a0d7ba21", + "content": "{\n \"credentials\": {\n \"access_key_id\": \"AKIDEXAMPLE\",\n \"secret_access_key\": \"wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY\"\n },\n \"expiration_in_seconds\": 3600,\n \"normalize\": true,\n \"region\": \"us-east-1\",\n \"service\": \"service\",\n \"sign_body\": true,\n \"timestamp\": \"2015-08-30T12:36:00Z\"\n}" + }, + "request.txt": { + "sha256": "2160e0b03d09382c1b0819a9da7e6845f12d3810a31e68d1e173fa15580399af", + "content": "POST / HTTP/1.1\nContent-Type:application/x-www-form-urlencoded; charset=utf-8\nHost:example.amazonaws.com\nContent-Length:13\n\nParam1=value1" + }, + "header-canonical-request.txt": { + "sha256": "a89f1a5b53e37702ee6363ce1da3ce8f54386f3c8f352ae652153c2982a0bc4d", + "content": "POST\n/\n\ncontent-length:13\ncontent-type:application/x-www-form-urlencoded; charset=utf-8\nhost:example.amazonaws.com\nx-amz-content-sha256:9095672bbd1f56dfc5b65f3e153adc8731a4a654192329106275f4c7b24d0b6e\nx-amz-date:20150830T123600Z\n\ncontent-length;content-type;host;x-amz-content-sha256;x-amz-date\n9095672bbd1f56dfc5b65f3e153adc8731a4a654192329106275f4c7b24d0b6e" + }, + "header-string-to-sign.txt": { + "sha256": "588ad1662bb89a68652332c6e5d194a1a399da007ee96de3df47a1246e5ef150", + "content": "AWS4-HMAC-SHA256\n20150830T123600Z\n20150830/us-east-1/service/aws4_request\na89f1a5b53e37702ee6363ce1da3ce8f54386f3c8f352ae652153c2982a0bc4d" + }, + "header-signature.txt": { + "sha256": "41d26efc617710bd5a2b41c28ff8c3db656b8679b6342d5d559e13fa597c20d0", + "content": "328d1b9eaadca9f5818ef05e8392801e091653bafec24fcab71e7344e7f51422" + }, + "header-signed-request.txt": { + "sha256": "b169fa2ffc821a7058310139c30c36a8ec2132f72e2d84f95e84c8b92e7eae12", + "content": "POST / HTTP/1.1\nContent-Type:application/x-www-form-urlencoded; charset=utf-8\nHost:example.amazonaws.com\nContent-Length:13\nX-Amz-Date:20150830T123600Z\nx-amz-content-sha256:9095672bbd1f56dfc5b65f3e153adc8731a4a654192329106275f4c7b24d0b6e\nAuthorization:AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-content-sha256;x-amz-date, Signature=328d1b9eaadca9f5818ef05e8392801e091653bafec24fcab71e7344e7f51422\n\nParam1=value1" + } + } + } +} diff --git a/tests/fixtures/openapi/brevo-account.json b/tests/fixtures/openapi/brevo-account.json new file mode 100644 index 0000000..711a9cb --- /dev/null +++ b/tests/fixtures/openapi/brevo-account.json @@ -0,0 +1,609 @@ +{ + "openapi": "3.1.0", + "info": { + "title": "Accounts and Settings", + "version": "1.0.0" + }, + "servers": [ + { + "url": "https://api.brevo.com/v3", + "description": "https://api.brevo.com/v3" + } + ], + "paths": { + "/account": { + "get": { + "operationId": "account_getAccount", + "summary": "Get account details", + "description": "Retrieves details of your Brevo account.\n\n**Use this to:**\n- Get account information (email, name, company, address)\n- Check plan details (type, credits, expiration)\n- Get relay information (for transactional emails)\n- Check Marketing Automation status\n- Access organization and user identifiers\n\n**Key information returned:**\n- Complete account details (organization ID, user ID, company information)\n- Address and contact information\n- Plan configurations and credit allocations across different verticals\n- Marketing Automation settings and tracker key (when enabled)\n- SMTP relay configuration for transactional emails\n- Enterprise features availability status\n\n**Important considerations:**\n- Provides comprehensive account overview for billing and configuration management\n- Essential for understanding current plan limitations and feature availability\n- Marketing Automation key is only returned when Marketing Automation is enabled on the account\n- Plan verticals show detailed breakdown across Marketing, Chat, and CRM categories (only returned when plan verticals are available)\n- Relay configuration crucial for transactional email setup and deliverability\n- Enterprise status determines access to advanced features and sub-account management\n", + "tags": ["account"], + "responses": { + "200": { + "description": "Account information retrieved successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Account_getAccount_Response_200" + } + } + } + }, + "400": { + "description": "bad request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetAccountRequestBadRequestError" + } + } + } + } + }, + "security": [ + { + "api-key": [] + } + ] + } + }, + "/webhooks": { + "post": { + "operationId": "webhooks_createWebhook", + "summary": "Create a webhook", + "description": "Creates a new webhook to receive real-time notifications for specified events.\n\nUse this to:\n- Set up event notifications for transactional or marketing emails\n- Configure webhook endpoints for campaign tracking\n- Enable real-time monitoring of email delivery status\n- Subscribe to contact list changes and updates\n- Implement custom event handling and automation\n\nKey information returned:\n- Created webhook ID and configuration\n- Success confirmation and setup details", + "tags": ["webhooks"], + "responses": { + "201": { + "description": "successfully created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Webhooks_createWebhook_Response_201" + } + } + } + }, + "400": { + "description": "bad request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateWebhookRequestBadRequestError" + } + } + } + } + }, + "requestBody": { + "description": "Values to create a webhook", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "auth": { + "$ref": "#/components/schemas/WebhooksPostRequestBodyContentApplicationJsonSchemaAuth", + "description": "Add authentication on webhook url" + }, + "batched": { + "type": "boolean", + "description": "To send batched webhooks" + }, + "channel": { + "$ref": "#/components/schemas/WebhooksPostRequestBodyContentApplicationJsonSchemaChannel", + "default": "email", + "description": "Channel of the webhook" + }, + "description": { + "type": "string", + "description": "Description of the webhook" + }, + "domain": { + "type": "string", + "description": "Inbound domain of webhook, required in case of event type\n`inbound`" + }, + "events": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WebhooksPostRequestBodyContentApplicationJsonSchemaEventsItems" + }, + "description": "Events triggering the webhook. Required for transactional and\nmarketing types, optional for inbound type (defaults to\n`inboundEmailProcessed`). Possible values for **Transactional**\ntype webhook: `sent` OR `request`, `delivered`, `hardBounce`,\n`softBounce`, `blocked`, `spam`, `invalid`, `deferred`, `click`,\n`opened`, `uniqueOpened` and `unsubscribed`. Possible values for\n**Marketing** type webhook: `spam`, `opened`, `click`,\n`hardBounce`, `softBounce`, `unsubscribed`, `listAddition`,\n`delivered`, `contactUpdated` & `contactDeleted`. Possible values\nfor **Inbound** type webhook: `inboundEmailProcessed`." + }, + "headers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WebhooksPostRequestBodyContentApplicationJsonSchemaHeadersItems" + }, + "description": "Custom headers to be send with webhooks" + }, + "type": { + "$ref": "#/components/schemas/WebhooksPostRequestBodyContentApplicationJsonSchemaType", + "default": "transactional", + "description": "Type of the webhook" + }, + "url": { + "type": "string", + "format": "url", + "description": "URL of the webhook" + } + }, + "required": ["url"] + } + } + } + }, + "security": [ + { + "api-key": [] + } + ] + } + } + }, + "components": { + "schemas": { + "Account_getAccount_Response_200": { + "type": "object", + "properties": { + "organization_id": { + "type": "string", + "description": "Unique identifier for the organization" + }, + "user_id": { + "type": "integer", + "description": "Unique identifier for the user" + }, + "enterprise": { + "type": "boolean", + "description": "Indicates if the account has enterprise features" + }, + "companyName": { + "type": "string", + "description": "Name of the company" + }, + "email": { + "type": "string", + "format": "email", + "description": "Login Email" + }, + "firstName": { + "type": "string", + "description": "First Name" + }, + "lastName": { + "type": "string", + "description": "Last Name" + }, + "address": { + "$ref": "#/components/schemas/AccountGetResponsesContentApplicationJsonSchemaAddress", + "description": "Address informations" + }, + "marketingAutomation": { + "$ref": "#/components/schemas/AccountGetResponsesContentApplicationJsonSchemaMarketingAutomation" + }, + "plan": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AccountGetResponsesContentApplicationJsonSchemaPlanItems" + }, + "description": "Information about your plans and credits" + }, + "planVerticals": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AccountGetResponsesContentApplicationJsonSchemaPlanVerticalsItems" + }, + "description": "Detailed information about different plan categories" + }, + "relay": { + "$ref": "#/components/schemas/AccountGetResponsesContentApplicationJsonSchemaRelay", + "description": "Information about your transactional email account" + } + }, + "required": [ + "organization_id", + "user_id", + "enterprise", + "companyName", + "email", + "firstName", + "lastName", + "plan", + "relay" + ], + "title": "Account_getAccount_Response_200" + }, + "GetAccountRequestBadRequestError": { + "type": "object", + "properties": { + "code": { + "$ref": "#/components/schemas/AccountGetResponsesContentApplicationJsonSchemaCode", + "description": "Error code displayed in case of a failure" + }, + "message": { + "type": "string", + "description": "Readable message associated to the failure" + } + }, + "required": ["code", "message"], + "title": "GetAccountRequestBadRequestError" + }, + "Webhooks_createWebhook_Response_201": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64", + "description": "ID of the object created" + } + }, + "required": ["id"], + "title": "Webhooks_createWebhook_Response_201" + }, + "CreateWebhookRequestBadRequestError": { + "type": "object", + "properties": { + "code": { + "$ref": "#/components/schemas/WebhooksPostResponsesContentApplicationJsonSchemaCode", + "description": "Error code displayed in case of a failure" + }, + "message": { + "type": "string", + "description": "Readable message associated to the failure" + } + }, + "required": ["code", "message"], + "title": "CreateWebhookRequestBadRequestError" + }, + "WebhooksPostRequestBodyContentApplicationJsonSchemaAuth": { + "type": "object", + "properties": { + "token": { + "type": "string", + "description": "Webhook authentication token" + }, + "type": { + "type": "string", + "description": "Type of authentication" + } + }, + "description": "Add authentication on webhook url", + "title": "WebhooksPostRequestBodyContentApplicationJsonSchemaAuth" + }, + "WebhooksPostRequestBodyContentApplicationJsonSchemaChannel": { + "type": "string", + "enum": ["email", "sms"], + "default": "email", + "description": "Channel of the webhook", + "title": "WebhooksPostRequestBodyContentApplicationJsonSchemaChannel" + }, + "WebhooksPostRequestBodyContentApplicationJsonSchemaEventsItems": { + "type": "string", + "enum": [ + "sent", + "hardBounce", + "softBounce", + "blocked", + "spam", + "delivered", + "request", + "click", + "invalid", + "deferred", + "opened", + "uniqueOpened", + "unsubscribed", + "listAddition", + "contactUpdated", + "contactDeleted", + "inboundEmailProcessed", + "reply" + ], + "title": "WebhooksPostRequestBodyContentApplicationJsonSchemaEventsItems" + }, + "WebhooksPostRequestBodyContentApplicationJsonSchemaHeadersItems": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Header key name" + }, + "value": { + "type": "string", + "description": "Header value" + } + }, + "title": "WebhooksPostRequestBodyContentApplicationJsonSchemaHeadersItems" + }, + "WebhooksPostRequestBodyContentApplicationJsonSchemaType": { + "type": "string", + "enum": ["transactional", "marketing", "inbound"], + "default": "transactional", + "description": "Type of the webhook", + "title": "WebhooksPostRequestBodyContentApplicationJsonSchemaType" + }, + "AccountGetResponsesContentApplicationJsonSchemaAddress": { + "type": "object", + "properties": { + "city": { + "type": "string", + "description": "City information" + }, + "country": { + "type": "string", + "description": "Country information" + }, + "street": { + "type": "string", + "description": "Street information" + }, + "zipCode": { + "type": "string", + "description": "Zip Code information" + } + }, + "required": ["city", "country", "street", "zipCode"], + "description": "Address informations", + "title": "AccountGetResponsesContentApplicationJsonSchemaAddress" + }, + "AccountGetResponsesContentApplicationJsonSchemaMarketingAutomation": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Status of Marketing Automation Plateform activation\nfor your account (true=enabled, false=disabled)" + }, + "key": { + "type": "string", + "description": "Marketing Automation Tracker ID" + } + }, + "required": ["enabled"], + "title": "AccountGetResponsesContentApplicationJsonSchemaMarketingAutomation" + }, + "AccountGetResponsesContentApplicationJsonSchemaPlanItems": { + "type": "object", + "properties": { + "credits": { + "type": "string", + "title": "float", + "description": "Remaining credits of the user" + }, + "creditsType": { + "$ref": "#/components/schemas/AccountGetResponsesContentApplicationJsonSchemaPlanItemsCreditsType", + "description": "This is the type of the credit, \"Send Limit\" is one\nof the possible types of credit of a user. \"Send\nLimit\" implies the total number of emails you can\nsend to the subscribers in your account." + }, + "endDate": { + "type": "string", + "description": "Date of the period from which the plan will end\n(Unix timestamp format)" + }, + "startDate": { + "type": "string", + "description": "Date of the period from which the plan will start\n(Unix timestamp format)" + }, + "type": { + "$ref": "#/components/schemas/AccountGetResponsesContentApplicationJsonSchemaPlanItemsType", + "description": "Displays the plan type of the user" + } + }, + "required": ["credits", "creditsType", "type"], + "title": "AccountGetResponsesContentApplicationJsonSchemaPlanItems" + }, + "AccountGetResponsesContentApplicationJsonSchemaPlanVerticalsItems": { + "type": "object", + "properties": { + "planCategory": { + "$ref": "#/components/schemas/AccountGetResponsesContentApplicationJsonSchemaPlanVerticalsItemsPlanCategory", + "description": "Category of the plan" + }, + "planType": { + "type": "string", + "description": "Type of plan within the category" + }, + "name": { + "type": "string", + "description": "Name of the plan" + }, + "status": { + "$ref": "#/components/schemas/AccountGetResponsesContentApplicationJsonSchemaPlanVerticalsItemsStatus", + "description": "Current status of the plan" + }, + "startDate": { + "type": "string", + "description": "Plan start date (Unix timestamp)" + }, + "endDate": { + "type": "string", + "description": "Plan end date (Unix timestamp)" + }, + "users": { + "oneOf": [ + { + "$ref": "#/components/schemas/AccountGetResponsesContentApplicationJsonSchemaPlanVerticalsItemsUsers" + }, + { + "type": "null" + } + ], + "description": "User seat information for the plan" + }, + "credits": { + "type": "string", + "description": "Credits allocated for this plan category (optional, may not be present for all plan categories)" + } + }, + "required": ["planCategory", "planType", "name", "status"], + "title": "AccountGetResponsesContentApplicationJsonSchemaPlanVerticalsItems" + }, + "AccountGetResponsesContentApplicationJsonSchemaRelay": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/AccountGetResponsesContentApplicationJsonSchemaRelayData", + "description": "Data regarding the transactional email account" + }, + "enabled": { + "type": "boolean", + "description": "Status of your transactional email Account\n(true=Enabled, false=Disabled)" + } + }, + "required": ["data", "enabled"], + "description": "Information about your transactional email account", + "title": "AccountGetResponsesContentApplicationJsonSchemaRelay" + }, + "AccountGetResponsesContentApplicationJsonSchemaCode": { + "type": "string", + "enum": [ + "invalid_parameter", + "missing_parameter", + "out_of_range", + "campaign_processing", + "campaign_sent", + "document_not_found", + "not_enough_credits", + "permission_denied", + "duplicate_parameter", + "duplicate_request", + "method_not_allowed", + "unauthorized", + "account_under_validation", + "not_acceptable", + "bad_request", + "unprocessable_entity", + "Domain does not exist", + "Contact email not found", + "Attribute not found", + "Category id not found", + "Invalid parameters passed", + "Record(s) for identifier not found", + "Returned when query params are invalid", + "Returned when invalid data posted", + "Feed not found", + "Campaign ID not found", + "api-key not found", + "DMARC policy requires domain authentication", + "DNS records not properly configured", + "Invalid OTP code provided", + "OTP code has expired", + "Domain already exists in your account", + "The sum of all IP weights must equal 100", + "Authentication failed", + "Insufficient credits", + "Request already processed" + ], + "description": "Error code displayed in case of a failure", + "title": "AccountGetResponsesContentApplicationJsonSchemaCode" + }, + "WebhooksPostResponsesContentApplicationJsonSchemaCode": { + "type": "string", + "enum": [ + "invalid_parameter", + "missing_parameter", + "out_of_range", + "campaign_processing", + "campaign_sent", + "document_not_found", + "not_enough_credits", + "permission_denied", + "duplicate_parameter", + "duplicate_request", + "method_not_allowed", + "unauthorized", + "account_under_validation", + "not_acceptable", + "bad_request", + "unprocessable_entity", + "Domain does not exist", + "Contact email not found", + "Attribute not found", + "Category id not found", + "Invalid parameters passed", + "Record(s) for identifier not found", + "Returned when query params are invalid", + "Returned when invalid data posted", + "Feed not found", + "Campaign ID not found", + "api-key not found", + "DMARC policy requires domain authentication", + "DNS records not properly configured", + "Invalid OTP code provided", + "OTP code has expired", + "Domain already exists in your account", + "The sum of all IP weights must equal 100", + "Authentication failed", + "Insufficient credits", + "Request already processed" + ], + "description": "Error code displayed in case of a failure", + "title": "WebhooksPostResponsesContentApplicationJsonSchemaCode" + }, + "AccountGetResponsesContentApplicationJsonSchemaPlanItemsCreditsType": { + "type": "string", + "enum": ["sendLimit"], + "description": "This is the type of the credit, \"Send Limit\" is one\nof the possible types of credit of a user. \"Send\nLimit\" implies the total number of emails you can\nsend to the subscribers in your account.", + "title": "AccountGetResponsesContentApplicationJsonSchemaPlanItemsCreditsType" + }, + "AccountGetResponsesContentApplicationJsonSchemaPlanItemsType": { + "type": "string", + "enum": ["payAsYouGo", "free", "subscription", "sms"], + "description": "Displays the plan type of the user", + "title": "AccountGetResponsesContentApplicationJsonSchemaPlanItemsType" + }, + "AccountGetResponsesContentApplicationJsonSchemaPlanVerticalsItemsPlanCategory": { + "type": "string", + "enum": ["Marketing", "Chat", "CRM"], + "description": "Category of the plan", + "title": "AccountGetResponsesContentApplicationJsonSchemaPlanVerticalsItemsPlanCategory" + }, + "AccountGetResponsesContentApplicationJsonSchemaPlanVerticalsItemsStatus": { + "type": "string", + "enum": ["active", "inactive"], + "description": "Current status of the plan", + "title": "AccountGetResponsesContentApplicationJsonSchemaPlanVerticalsItemsStatus" + }, + "AccountGetResponsesContentApplicationJsonSchemaPlanVerticalsItemsUsers": { + "type": "object", + "properties": { + "purchasedSeats": { + "type": "string", + "description": "Number of purchased user seats" + }, + "usedSeats": { + "type": "string", + "description": "Number of used user seats" + } + }, + "required": ["purchasedSeats", "usedSeats"], + "description": "User seat information for the plan", + "title": "AccountGetResponsesContentApplicationJsonSchemaPlanVerticalsItemsUsers" + }, + "AccountGetResponsesContentApplicationJsonSchemaRelayData": { + "type": "object", + "properties": { + "port": { + "type": "integer", + "description": "Port used for SMTP Relay" + }, + "relay": { + "type": "string", + "description": "URL of the SMTP Relay" + }, + "userName": { + "type": "string", + "format": "email", + "description": "Email to use as login on transactional platform" + } + }, + "required": ["port", "relay", "userName"], + "description": "Data regarding the transactional email account", + "title": "AccountGetResponsesContentApplicationJsonSchemaRelayData" + } + } + }, + "x-magic-mail-source": { + "url": "https://developers.brevo.com/openapi/accounts-and-settings.json", + "sha256": "e9f90329fafc6955a003f8e36987ab5142eb0cdd3fe4d512fa88257642faf736", + "retrieved": "2026-11-18", + "operations": ["GET /account", "POST /webhooks"] + } +} diff --git a/tests/fixtures/openapi/brevo-email.json b/tests/fixtures/openapi/brevo-email.json new file mode 100644 index 0000000..d617929 --- /dev/null +++ b/tests/fixtures/openapi/brevo-email.json @@ -0,0 +1,919 @@ +{ + "openapi": "3.1.0", + "info": { + "title": "Email API", + "version": "1.0.0" + }, + "servers": [ + { + "url": "https://api.brevo.com/v3", + "description": "https://api.brevo.com/v3" + } + ], + "paths": { + "/smtp/email": { + "post": { + "operationId": "transactionalEmails_sendTransacEmail", + "summary": "Send a transactional email", + "description": "Send a transactional email to one or more recipients, either using inline HTML content or a pre-built template via `templateId`. You can schedule emails for future delivery using `scheduledAt` (UTC, up to 5-minute delay), send multiple personalized versions with `messageVersions` (max 2000 total recipients, 99 per version), and attach files via URL or base64-encoded content. A `sender` and `subject` are required when no `templateId` is provided; when a `templateId` is used, the template''s sender and subject are applied unless overridden.", + "tags": ["transactionalEmails"], + "responses": { + "201": { + "description": "Transactional email sent successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Transactional_emails_sendTransacEmail_Response_201" + } + } + } + }, + "400": { + "description": "bad request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SendTransacEmailRequestBadRequestError" + } + } + } + } + }, + "requestBody": { + "description": "Request body parameters for sending a transactional email", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "attachment": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SmtpEmailPostRequestBodyContentApplicationJsonSchemaAttachmentItems" + }, + "description": "Array of attachment objects. Each attachment must include either an absolute URL (no local file paths) or base64-encoded content, along with the attachment filename. The `name` field is required when `content` is provided. Supported file extensions: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg, wmv, pkpass, xlsm. When `templateId` is specified: if the template uses the New Template Language format, both `url` and `content` attachment types are supported; if the template uses the Old Template Language format, the `attachment` parameter is ignored.\n" + }, + "batchId": { + "type": "string", + "description": "UUIDv4 identifier for the scheduled batch of transactional emails. If omitted, a valid UUIDv4 batch identifier is automatically generated." + }, + "bcc": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SmtpEmailPostRequestBodyContentApplicationJsonSchemaBccItems" + }, + "description": "Array of BCC recipient objects. Each object contains an email address and an optional name.\n" + }, + "cc": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SmtpEmailPostRequestBodyContentApplicationJsonSchemaCcItems" + }, + "description": "Array of CC recipient objects. Each object contains an email address and an optional name.\n" + }, + "headers": { + "type": "object", + "additionalProperties": { + "description": "Any type" + }, + "description": "Custom email headers (non-standard headers) to include in the email. The `sender.ip` header can be set to specify the IP address used for sending transactional emails (dedicated IP users only). Header names must use Title-Case-Format (words separated by hyphens with the first letter of each word capitalized). Headers not in this format are automatically converted. Standard email headers are not supported. Example: `{\"sender.ip\":\"1.2.3.4\", \"X-Mailin-custom\":\"some_custom_value\", \"IdempotencyKey\":\"abc-123\"}`\n" + }, + "htmlContent": { + "type": "string", + "description": "HTML body content of the email. Required when `templateId` is not provided. Ignored when `templateId` is provided.\n" + }, + "messageVersions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SmtpEmailPostRequestBodyContentApplicationJsonSchemaMessageVersionsItems" + }, + "description": "Array of message version objects for sending customized email variants. The `templateId` can be customized per version only if a global `templateId` is provided. The `htmlContent` and `textContent` can be customized per version only if at least one of these is present in the global parameters. Global parameters such as `to` (required), `bcc`, `cc`, `replyTo`, and `subject` can be customized per version. Maximum total recipients per API request is 2000. Maximum recipients per message version is 99. Individual `params` objects must not exceed 100 KB. Cumulative `params` across all versions must not exceed 1000 KB. See https://developers.brevo.com/docs/batch-send-transactional-emails for detailed usage instructions.\n" + }, + "params": { + "type": "object", + "additionalProperties": { + "description": "Any type" + }, + "description": "Key-value pairs for template variable substitution. Only applicable when the template uses the New Template Language format.\n" + }, + "replyTo": { + "$ref": "#/components/schemas/SmtpEmailPostRequestBodyContentApplicationJsonSchemaReplyTo", + "description": "Reply-to email address (required) and optional display name. Recipients will use this address when replying to the email.\n" + }, + "scheduledAt": { + "type": "string", + "format": "date-time", + "description": "UTC date-time when the email should be sent (format: YYYY-MM-DDTHH:mm:ss.SSSZ). Include timezone information in the date-time value. Scheduled emails may be delayed by up to 5 minutes." + }, + "sender": { + "$ref": "#/components/schemas/SmtpEmailPostRequestBodyContentApplicationJsonSchemaSender", + "description": "Sender information. Required when `templateId` is not provided. Specify either an email address (with optional name) or a sender ID. The `name` field is ignored when `id` is provided.\n" + }, + "subject": { + "type": "string", + "description": "Email subject line. Required when `templateId` is not provided.\n" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of tags for categorizing and filtering emails" + }, + "templateId": { + "type": "integer", + "format": "int64", + "description": "Template identifier" + }, + "textContent": { + "type": "string", + "description": "Plain text body content of the email. Ignored when `templateId` is provided.\n" + }, + "to": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SmtpEmailPostRequestBodyContentApplicationJsonSchemaToItems" + }, + "description": "Array of recipient objects. Each object contains an email address and an optional display name. Required when `messageVersions` is not provided. Ignored when `messageVersions` is provided. Example: `[{\"name\":\"Jimmy\", \"email\":\"jimmy@example.com\"}, {\"name\":\"Joe\", \"email\":\"joe@example.com\"}]`\n" + } + } + } + } + } + }, + "security": [ + { + "api-key": [] + } + ] + } + }, + "/smtp/templates": { + "get": { + "operationId": "transactionalEmails_getSmtpTemplates", + "summary": "Get the list of email templates", + "description": "Retrieve a paginated list of all transactional email templates (including automation templates) with their details such as name, subject, sender, status, HTML content, and timestamps. Results default to 50 per page (max 1000) and are sorted in descending creation order unless overridden. You can filter by active/inactive status using `templateStatus` and by editor type using `editorType` (currently only `richTextEditor` is supported).", + "tags": ["transactionalEmails"], + "parameters": [ + { + "name": "templateStatus", + "in": "query", + "description": "Filter on the status of the template. Active = true, inactive = false", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "name": "limit", + "in": "query", + "description": "Number of documents returned per page", + "required": false, + "schema": { + "type": "integer", + "format": "int64", + "minimum": 0, + "maximum": 1000, + "default": 50 + } + }, + { + "name": "offset", + "in": "query", + "description": "Index of the first document in the page", + "required": false, + "schema": { + "type": "integer", + "format": "int64", + "default": 0 + } + }, + { + "name": "sort", + "in": "query", + "description": "Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed", + "required": false, + "schema": { + "$ref": "#/components/schemas/SmtpTemplatesGetParametersSort", + "default": "desc" + } + }, + { + "name": "editorType", + "in": "query", + "description": "Filter on the editor type used to create the template. Currently only `richTextEditor` is supported as a filter value.", + "required": false, + "schema": { + "$ref": "#/components/schemas/SmtpTemplatesGetParametersEditorType" + } + } + ], + "responses": { + "200": { + "description": "transactional email templates informations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Transactional_emails_getSmtpTemplates_Response_200" + } + } + } + }, + "400": { + "description": "bad request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetSmtpTemplatesRequestBadRequestError" + } + } + } + } + }, + "security": [ + { + "api-key": [] + } + ] + } + }, + "/smtp/templates/{templateId}": { + "get": { + "operationId": "transactionalEmails_getSmtpTemplate", + "summary": "Returns the template information", + "description": "Retrieve the full details of a specific transactional email template by its numeric ID or custom template identifier string. The response includes the template name, subject, sender information, HTML content, active status, creation and modification timestamps, reply-to address, tag, and a `doiTemplate` flag indicating whether the template is a double opt-in template (detected by the presence of optin-related tags or variables in the content).", + "tags": ["transactionalEmails"], + "parameters": [ + { + "name": "templateId", + "in": "path", + "description": "ID of the template. Can be a numeric template ID or a custom template identifier string (alphanumeric, hyphens, and underscores only, max 64 characters, must start with a letter).", + "required": true, + "schema": { + "$ref": "#/components/schemas/SmtpTemplatesTemplateIdGetParametersTemplateId" + } + } + ], + "responses": { + "200": { + "description": "Email template informations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/getSmtpTemplateOverview" + } + } + } + }, + "400": { + "description": "bad request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetSmtpTemplateRequestBadRequestError" + } + } + } + }, + "404": { + "description": "Template ID not found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/errorModel" + } + } + } + } + }, + "security": [ + { + "api-key": [] + } + ] + } + } + }, + "components": { + "schemas": { + "Transactional_emails_sendTransacEmail_Response_201": { + "type": "object", + "properties": { + "messageId": { + "type": "string", + "description": "Message ID of the transactional email sent" + }, + "messageIds": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "title": "Transactional emails_sendTransacEmail_Response_201" + }, + "SendTransacEmailRequestBadRequestError": { + "type": "object", + "properties": { + "code": { + "$ref": "#/components/schemas/SmtpEmailPostResponsesContentApplicationJsonSchemaCode", + "description": "Error code displayed in case of a failure" + }, + "message": { + "type": "string", + "description": "Readable message associated to the failure" + } + }, + "required": ["code", "message"], + "title": "SendTransacEmailRequestBadRequestError" + }, + "SmtpEmailPostRequestBodyContentApplicationJsonSchemaAttachmentItems": { + "type": "object", + "properties": { + "content": { + "type": "string", + "format": "byte", + "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$", + "description": "Base64-encoded attachment data" + }, + "name": { + "type": "string", + "description": "Attachment filename. Required when `content` is provided.\n" + }, + "url": { + "type": "string", + "format": "url", + "description": "Absolute URL of the attachment. Local file paths are not supported.\n" + } + }, + "title": "SmtpEmailPostRequestBodyContentApplicationJsonSchemaAttachmentItems" + }, + "SmtpEmailPostRequestBodyContentApplicationJsonSchemaBccItems": { + "type": "object", + "properties": { + "contactPixelTrackingConsent": { + "type": "boolean", + "description": "Consent of the recipient in bcc for open (pixel) and click tracking, resolved by the sender at send time. Considered only if the per-contact pixel tracking consent feature is enabled for your account. Pass `true` if this recipient has consented to open and click tracking, in which case the open pixel and tracked links identify the recipient. Pass `false` to anonymise the open and click events (counted in aggregate statistics only). If it is not passed, the recipient is treated as unknown consent status and the email is still sent (the open and click are anonymised unless your account tracks unknown-consent contacts). A value other than `true`/`false` is rejected. Ignored when the feature is not enabled for your account.\n" + }, + "email": { + "type": "string", + "format": "email", + "description": "BCC recipient email address" + }, + "name": { + "type": "string", + "description": "Display name of the BCC recipient. Maximum length is 70 characters.\n" + }, + "removeTrackingPixel": { + "type": "boolean", + "description": "Pass `true` to send the recipient in bcc no open pixel, so no open is recorded for them, not even in aggregate statistics. Only available to Enterprise plans: for other accounts the field is accepted but ignored. Considered only if the recipient is not tracked: `contactPixelTrackingConsent` is `false`, or not passed and your account does not track unknown-consent contacts. Click tracking is unchanged. If `false` or not passed, the open pixel is added as usual. A value other than `true`/`false` is rejected.\n" + } + }, + "required": ["email"], + "title": "SmtpEmailPostRequestBodyContentApplicationJsonSchemaBccItems" + }, + "SmtpEmailPostRequestBodyContentApplicationJsonSchemaCcItems": { + "type": "object", + "properties": { + "contactPixelTrackingConsent": { + "type": "boolean", + "description": "Consent of the recipient in cc for open (pixel) and click tracking, resolved by the sender at send time. Considered only if the per-contact pixel tracking consent feature is enabled for your account. Pass `true` if this recipient has consented to open and click tracking, in which case the open pixel and tracked links identify the recipient. Pass `false` to anonymise the open and click events (counted in aggregate statistics only). If it is not passed, the recipient is treated as unknown consent status and the email is still sent (the open and click are anonymised unless your account tracks unknown-consent contacts). A value other than `true`/`false` is rejected. Ignored when the feature is not enabled for your account.\n" + }, + "email": { + "type": "string", + "format": "email", + "description": "CC recipient email address" + }, + "name": { + "type": "string", + "description": "Display name of the CC recipient. Maximum length is 70 characters.\n" + }, + "removeTrackingPixel": { + "type": "boolean", + "description": "Pass `true` to send the recipient in cc no open pixel, so no open is recorded for them, not even in aggregate statistics. Only available to Enterprise plans: for other accounts the field is accepted but ignored. Considered only if the recipient is not tracked: `contactPixelTrackingConsent` is `false`, or not passed and your account does not track unknown-consent contacts. Click tracking is unchanged. If `false` or not passed, the open pixel is added as usual. A value other than `true`/`false` is rejected.\n" + } + }, + "required": ["email"], + "title": "SmtpEmailPostRequestBodyContentApplicationJsonSchemaCcItems" + }, + "SmtpEmailPostRequestBodyContentApplicationJsonSchemaMessageVersionsItems": { + "type": "object", + "properties": { + "bcc": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SmtpEmailPostRequestBodyContentApplicationJsonSchemaMessageVersionsItemsBccItems" + }, + "description": "Array of BCC recipient objects. Each object contains an email address and an optional name.\n" + }, + "cc": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SmtpEmailPostRequestBodyContentApplicationJsonSchemaMessageVersionsItemsCcItems" + }, + "description": "Array of CC recipient objects. Each object contains an email address and an optional name.\n" + }, + "htmlContent": { + "type": "string", + "description": "HTML body content of the email. Required when `templateId` is not provided. Ignored when `templateId` is provided.\n" + }, + "params": { + "type": "object", + "additionalProperties": { + "description": "Any type" + }, + "description": "Key-value pairs for template variable substitution. Only applicable when the template uses the New Template Language format.\n" + }, + "replyTo": { + "$ref": "#/components/schemas/SmtpEmailPostRequestBodyContentApplicationJsonSchemaMessageVersionsItemsReplyTo", + "description": "Reply-to email address (required) and optional display name. Recipients will use this address when replying to the email.\n" + }, + "subject": { + "type": "string", + "description": "Email subject line for this message version\n" + }, + "textContent": { + "type": "string", + "description": "Plain text body content of the email. Ignored when `templateId` is provided.\n" + }, + "to": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SmtpEmailPostRequestBodyContentApplicationJsonSchemaMessageVersionsItemsToItems" + }, + "description": "Array of recipient objects. Each object contains an email address and an optional display name.\n" + } + }, + "required": ["to"], + "title": "SmtpEmailPostRequestBodyContentApplicationJsonSchemaMessageVersionsItems" + }, + "SmtpEmailPostRequestBodyContentApplicationJsonSchemaReplyTo": { + "type": "object", + "properties": { + "email": { + "type": "string", + "format": "email", + "description": "Email address in reply to" + }, + "name": { + "type": "string", + "description": "Display name for the reply-to address. Maximum length is 70 characters.\n" + } + }, + "required": ["email"], + "description": "Reply-to email address (required) and optional display name. Recipients will use this address when replying to the email.\n", + "title": "SmtpEmailPostRequestBodyContentApplicationJsonSchemaReplyTo" + }, + "SmtpEmailPostRequestBodyContentApplicationJsonSchemaSender": { + "type": "object", + "properties": { + "email": { + "type": "string", + "format": "email", + "description": "Sender email address. Required when `id` is not provided." + }, + "id": { + "type": "integer", + "format": "int64", + "description": "Sender identifier. Required when `email` is not provided. Use this field to select a sender with a specific IP pool (dedicated IP users only)." + }, + "name": { + "type": "string", + "description": "Display name of the sender. Maximum length is 70 characters. Only applicable when `email` is provided.\n" + } + }, + "description": "Sender information. Required when `templateId` is not provided. Specify either an email address (with optional name) or a sender ID. The `name` field is ignored when `id` is provided.\n", + "title": "SmtpEmailPostRequestBodyContentApplicationJsonSchemaSender" + }, + "SmtpEmailPostRequestBodyContentApplicationJsonSchemaToItems": { + "type": "object", + "properties": { + "contactPixelTrackingConsent": { + "type": "boolean", + "description": "Consent of the recipient for open (pixel) and click tracking, resolved by the sender at send time. Considered only if the per-contact pixel tracking consent feature is enabled for your account. Pass `true` if this recipient has consented to open and click tracking, in which case the open pixel and tracked links identify the recipient. Pass `false` to anonymise the open and click events (counted in aggregate statistics only). If it is not passed, the recipient is treated as unknown consent status and the email is still sent (the open and click are anonymised unless your account tracks unknown-consent contacts). A value other than `true`/`false` is rejected. Ignored when the feature is not enabled for your account.\n" + }, + "email": { + "type": "string", + "format": "email", + "description": "Email address of the recipient" + }, + "name": { + "type": "string", + "description": "Display name of the recipient. Maximum length is 70 characters.\n" + }, + "removeTrackingPixel": { + "type": "boolean", + "description": "Pass `true` to send the recipient no open pixel, so no open is recorded for them, not even in aggregate statistics. Only available to Enterprise plans: for other accounts the field is accepted but ignored. Considered only if the recipient is not tracked: `contactPixelTrackingConsent` is `false`, or not passed and your account does not track unknown-consent contacts. Click tracking is unchanged. If `false` or not passed, the open pixel is added as usual. A value other than `true`/`false` is rejected.\n" + } + }, + "required": ["email"], + "title": "SmtpEmailPostRequestBodyContentApplicationJsonSchemaToItems" + }, + "SmtpTemplatesGetParametersSort": { + "type": "string", + "enum": ["asc", "desc"], + "default": "desc", + "title": "SmtpTemplatesGetParametersSort" + }, + "SmtpTemplatesGetParametersEditorType": { + "type": "string", + "enum": ["richTextEditor"], + "title": "SmtpTemplatesGetParametersEditorType" + }, + "Transactional_emails_getSmtpTemplates_Response_200": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int64", + "description": "Count of transactional email templates" + }, + "templates": { + "type": "array", + "items": { + "$ref": "#/components/schemas/getSmtpTemplateOverview" + } + } + }, + "title": "Transactional emails_getSmtpTemplates_Response_200" + }, + "GetSmtpTemplatesRequestBadRequestError": { + "type": "object", + "properties": { + "code": { + "$ref": "#/components/schemas/SmtpTemplatesGetResponsesContentApplicationJsonSchemaCode", + "description": "Error code displayed in case of a failure" + }, + "message": { + "type": "string", + "description": "Readable message associated to the failure" + } + }, + "required": ["code", "message"], + "title": "GetSmtpTemplatesRequestBadRequestError" + }, + "SmtpTemplatesTemplateIdGetParametersTemplateId": { + "oneOf": [ + { + "type": "integer", + "format": "int64" + }, + { + "type": "string" + } + ], + "title": "SmtpTemplatesTemplateIdGetParametersTemplateId" + }, + "getSmtpTemplateOverview": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "description": "Creation UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ)" + }, + "doiTemplate": { + "type": "boolean", + "description": "It is true if template is a valid Double opt-in (DOI) template, otherwise it is false. This field will be available only in case of single template detail call." + }, + "htmlContent": { + "type": "string", + "description": "HTML content of the template" + }, + "id": { + "type": "integer", + "format": "int64", + "description": "ID of the template" + }, + "isActive": { + "type": "boolean", + "description": "Status of template (true=active, false=inactive)" + }, + "modifiedAt": { + "type": "string", + "description": "Last modification UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ)" + }, + "name": { + "type": "string", + "description": "Name of the template" + }, + "replyTo": { + "type": "string", + "format": "email", + "description": "Email defined as the \"Reply to\" for the template" + }, + "sender": { + "$ref": "#/components/schemas/GetSmtpTemplateOverviewSender" + }, + "subject": { + "type": "string", + "description": "Subject of the template" + }, + "tag": { + "type": "string", + "description": "Tag of the template" + }, + "testSent": { + "type": "boolean", + "description": "Status of test sending for the template (true=test email has been sent, false=test email has not been sent)" + }, + "toField": { + "type": "string", + "description": "Customisation of the \"to\" field for the template" + }, + "customTemplateId": { + "type": "string", + "description": "Custom template identifier, if one was assigned during template creation. Only present when the template has a custom ID." + } + }, + "required": [ + "createdAt", + "htmlContent", + "id", + "isActive", + "modifiedAt", + "name", + "replyTo", + "sender", + "subject", + "tag", + "testSent", + "toField" + ], + "title": "getSmtpTemplateOverview" + }, + "GetSmtpTemplateRequestBadRequestError": { + "type": "object", + "properties": { + "code": { + "$ref": "#/components/schemas/SmtpTemplatesTemplateIdGetResponsesContentApplicationJsonSchemaCode", + "description": "Error code displayed in case of a failure" + }, + "message": { + "type": "string", + "description": "Readable message associated to the failure" + } + }, + "required": ["code", "message"], + "title": "GetSmtpTemplateRequestBadRequestError" + }, + "errorModel": { + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "Error code displayed in case of a failure" + }, + "message": { + "type": "string", + "description": "Readable message associated to the failure" + } + }, + "required": ["message"], + "title": "errorModel" + }, + "SmtpEmailPostResponsesContentApplicationJsonSchemaCode": { + "type": "string", + "enum": [ + "invalid_parameter", + "missing_parameter", + "out_of_range", + "campaign_processing", + "campaign_sent", + "document_not_found", + "not_enough_credits", + "permission_denied", + "duplicate_parameter", + "duplicate_request", + "method_not_allowed", + "unauthorized", + "account_under_validation", + "not_acceptable", + "bad_request", + "unprocessable_entity", + "Domain does not exist", + "Contact email not found", + "Attribute not found", + "Category id not found", + "Invalid parameters passed", + "Record(s) for identifier not found", + "Returned when query params are invalid", + "Returned when invalid data posted", + "Feed not found", + "Campaign ID not found", + "api-key not found", + "DMARC policy requires domain authentication", + "DNS records not properly configured", + "Invalid OTP code provided", + "OTP code has expired", + "Domain already exists in your account", + "The sum of all IP weights must equal 100", + "Authentication failed", + "Insufficient credits", + "Request already processed" + ], + "description": "Error code displayed in case of a failure", + "title": "SmtpEmailPostResponsesContentApplicationJsonSchemaCode" + }, + "SmtpEmailPostRequestBodyContentApplicationJsonSchemaMessageVersionsItemsBccItems": { + "type": "object", + "properties": { + "contactPixelTrackingConsent": { + "type": "boolean", + "description": "Consent of the recipient in bcc for open (pixel) and click tracking, resolved by the sender at send time. Considered only if the per-contact pixel tracking consent feature is enabled for your account. Pass `true` if this recipient has consented to open and click tracking, in which case the open pixel and tracked links identify the recipient. Pass `false` to anonymise the open and click events (counted in aggregate statistics only). If it is not passed, the recipient is treated as unknown consent status and the email is still sent (the open and click are anonymised unless your account tracks unknown-consent contacts). A value other than `true`/`false` is rejected. Ignored when the feature is not enabled for your account.\n" + }, + "email": { + "type": "string", + "format": "email", + "description": "BCC recipient email address" + }, + "name": { + "type": "string", + "description": "Display name of the BCC recipient. Maximum length is 70 characters.\n" + }, + "removeTrackingPixel": { + "type": "boolean", + "description": "Pass `true` to send the recipient in bcc no open pixel, so no open is recorded for them, not even in aggregate statistics. Only available to Enterprise plans: for other accounts the field is accepted but ignored. Considered only if the recipient is not tracked: `contactPixelTrackingConsent` is `false`, or not passed and your account does not track unknown-consent contacts. Click tracking is unchanged. If `false` or not passed, the open pixel is added as usual. A value other than `true`/`false` is rejected.\n" + } + }, + "required": ["email"], + "title": "SmtpEmailPostRequestBodyContentApplicationJsonSchemaMessageVersionsItemsBccItems" + }, + "SmtpEmailPostRequestBodyContentApplicationJsonSchemaMessageVersionsItemsCcItems": { + "type": "object", + "properties": { + "contactPixelTrackingConsent": { + "type": "boolean", + "description": "Consent of the recipient in cc for open (pixel) and click tracking, resolved by the sender at send time. Considered only if the per-contact pixel tracking consent feature is enabled for your account. Pass `true` if this recipient has consented to open and click tracking, in which case the open pixel and tracked links identify the recipient. Pass `false` to anonymise the open and click events (counted in aggregate statistics only). If it is not passed, the recipient is treated as unknown consent status and the email is still sent (the open and click are anonymised unless your account tracks unknown-consent contacts). A value other than `true`/`false` is rejected. Ignored when the feature is not enabled for your account.\n" + }, + "email": { + "type": "string", + "format": "email", + "description": "CC recipient email address" + }, + "name": { + "type": "string", + "description": "Display name of the CC recipient. Maximum length is 70 characters.\n" + }, + "removeTrackingPixel": { + "type": "boolean", + "description": "Pass `true` to send the recipient in cc no open pixel, so no open is recorded for them, not even in aggregate statistics. Only available to Enterprise plans: for other accounts the field is accepted but ignored. Considered only if the recipient is not tracked: `contactPixelTrackingConsent` is `false`, or not passed and your account does not track unknown-consent contacts. Click tracking is unchanged. If `false` or not passed, the open pixel is added as usual. A value other than `true`/`false` is rejected.\n" + } + }, + "required": ["email"], + "title": "SmtpEmailPostRequestBodyContentApplicationJsonSchemaMessageVersionsItemsCcItems" + }, + "SmtpEmailPostRequestBodyContentApplicationJsonSchemaMessageVersionsItemsReplyTo": { + "type": "object", + "properties": { + "email": { + "type": "string", + "format": "email", + "description": "Email address in reply to" + }, + "name": { + "type": "string", + "description": "Display name for the reply-to address. Maximum length is 70 characters.\n" + } + }, + "required": ["email"], + "description": "Reply-to email address (required) and optional display name. Recipients will use this address when replying to the email.\n", + "title": "SmtpEmailPostRequestBodyContentApplicationJsonSchemaMessageVersionsItemsReplyTo" + }, + "SmtpEmailPostRequestBodyContentApplicationJsonSchemaMessageVersionsItemsToItems": { + "type": "object", + "properties": { + "contactPixelTrackingConsent": { + "type": "boolean", + "description": "Consent of the recipient for open (pixel) and click tracking, resolved by the sender at send time. Considered only if the per-contact pixel tracking consent feature is enabled for your account. Pass `true` if this recipient has consented to open and click tracking, in which case the open pixel and tracked links identify the recipient. Pass `false` to anonymise the open and click events (counted in aggregate statistics only). If it is not passed, the recipient is treated as unknown consent status and the email is still sent (the open and click are anonymised unless your account tracks unknown-consent contacts). A value other than `true`/`false` is rejected. Ignored when the feature is not enabled for your account.\n" + }, + "email": { + "type": "string", + "format": "email", + "description": "Email address of the recipient" + }, + "name": { + "type": "string", + "description": "Display name of the recipient. Maximum length is 70 characters.\n" + }, + "removeTrackingPixel": { + "type": "boolean", + "description": "Pass `true` to send the recipient no open pixel, so no open is recorded for them, not even in aggregate statistics. Only available to Enterprise plans: for other accounts the field is accepted but ignored. Considered only if the recipient is not tracked: `contactPixelTrackingConsent` is `false`, or not passed and your account does not track unknown-consent contacts. Click tracking is unchanged. If `false` or not passed, the open pixel is added as usual. A value other than `true`/`false` is rejected.\n" + } + }, + "required": ["email"], + "title": "SmtpEmailPostRequestBodyContentApplicationJsonSchemaMessageVersionsItemsToItems" + }, + "SmtpTemplatesGetResponsesContentApplicationJsonSchemaCode": { + "type": "string", + "enum": [ + "invalid_parameter", + "missing_parameter", + "out_of_range", + "campaign_processing", + "campaign_sent", + "document_not_found", + "not_enough_credits", + "permission_denied", + "duplicate_parameter", + "duplicate_request", + "method_not_allowed", + "unauthorized", + "account_under_validation", + "not_acceptable", + "bad_request", + "unprocessable_entity", + "Domain does not exist", + "Contact email not found", + "Attribute not found", + "Category id not found", + "Invalid parameters passed", + "Record(s) for identifier not found", + "Returned when query params are invalid", + "Returned when invalid data posted", + "Feed not found", + "Campaign ID not found", + "api-key not found", + "DMARC policy requires domain authentication", + "DNS records not properly configured", + "Invalid OTP code provided", + "OTP code has expired", + "Domain already exists in your account", + "The sum of all IP weights must equal 100", + "Authentication failed", + "Insufficient credits", + "Request already processed" + ], + "description": "Error code displayed in case of a failure", + "title": "SmtpTemplatesGetResponsesContentApplicationJsonSchemaCode" + }, + "GetSmtpTemplateOverviewSender": { + "type": "object", + "properties": { + "email": { + "type": "string", + "format": "email", + "description": "From email for the template" + }, + "id": { + "type": "string", + "description": "Sender id of the template" + }, + "name": { + "type": "string", + "description": "Sender name for the template" + } + }, + "title": "GetSmtpTemplateOverviewSender" + }, + "SmtpTemplatesTemplateIdGetResponsesContentApplicationJsonSchemaCode": { + "type": "string", + "enum": [ + "invalid_parameter", + "missing_parameter", + "out_of_range", + "campaign_processing", + "campaign_sent", + "document_not_found", + "not_enough_credits", + "permission_denied", + "duplicate_parameter", + "duplicate_request", + "method_not_allowed", + "unauthorized", + "account_under_validation", + "not_acceptable", + "bad_request", + "unprocessable_entity", + "Domain does not exist", + "Contact email not found", + "Attribute not found", + "Category id not found", + "Invalid parameters passed", + "Record(s) for identifier not found", + "Returned when query params are invalid", + "Returned when invalid data posted", + "Feed not found", + "Campaign ID not found", + "api-key not found", + "DMARC policy requires domain authentication", + "DNS records not properly configured", + "Invalid OTP code provided", + "OTP code has expired", + "Domain already exists in your account", + "The sum of all IP weights must equal 100", + "Authentication failed", + "Insufficient credits", + "Request already processed" + ], + "description": "Error code displayed in case of a failure", + "title": "SmtpTemplatesTemplateIdGetResponsesContentApplicationJsonSchemaCode" + } + } + }, + "x-magic-mail-source": { + "url": "https://developers.brevo.com/openapi/email-api.json", + "sha256": "d56adf661e413abc2436312fce0e83ee4219635bec4066c562ea6c9f5f77d43c", + "retrieved": "2026-11-18", + "operations": ["POST /smtp/email", "GET /smtp/templates", "GET /smtp/templates/{templateId}"] + } +} diff --git a/tests/fixtures/ses/README.md b/tests/fixtures/ses/README.md new file mode 100644 index 0000000..67da2d1 --- /dev/null +++ b/tests/fixtures/ses/README.md @@ -0,0 +1,25 @@ +# Amazon SES event and Amazon SNS message examples + +`aws-doc-examples.json` holds the JSON examples from the AWS documentation, +copied verbatim on 2026-11-18. No AWS API was called. + +`sesEvents`, one record per `eventType`, from "Examples of event data that +Amazon SES publishes to Amazon SNS": + +(field meanings: "Contents of event data that Amazon SES publishes to Amazon +SNS", ). + +`snsMessages`, the HTTP POST body examples from: + +| Key | Page | +| -------------------------- | ------------------------------------------------------------------------------------ | +| `Notification` | | +| `SubscriptionConfirmation` | | +| `UnsubscribeConfirmation` | | + +The documentation signatures are placeholders (`EXAMPLE...`) and the +certificate URLs no longer resolve, and AWS publishes no signed test message. +The tests therefore re-sign these messages with a key pair and a self-signed +certificate generated at test time (`tests/helpers/test-certificate.js`), +building the string to sign exactly as the SNS page "Verifying the signature +of an Amazon SNS message" defines it. diff --git a/tests/fixtures/ses/aws-doc-examples.json b/tests/fixtures/ses/aws-doc-examples.json new file mode 100644 index 0000000..d95872b --- /dev/null +++ b/tests/fixtures/ses/aws-doc-examples.json @@ -0,0 +1,587 @@ +{ + "x-source": { + "retrieved": "2026-11-18", + "note": "Copied verbatim from the AWS documentation pages named in README.md" + }, + "sesEvents": { + "Bounce": { + "eventType": "Bounce", + "bounce": { + "bounceType": "Permanent", + "bounceSubType": "General", + "bouncedRecipients": [ + { + "emailAddress": "recipient@example.com", + "action": "failed", + "status": "5.1.1", + "diagnosticCode": "smtp; 550 5.1.1 user unknown" + } + ], + "timestamp": "2017-08-05T00:41:02.669Z", + "feedbackId": "01000157c44f053b-61b59c11-9236-11e6-8f96-7be8aexample-000000", + "reportingMTA": "dsn; mta.example.com" + }, + "mail": { + "timestamp": "2017-08-05T00:40:02.012Z", + "source": "Sender Name ", + "sourceArn": "arn:aws:ses:us-east-1:123456789012:identity/sender@example.com", + "sendingAccountId": "123456789012", + "messageId": "EXAMPLE7c191be45-e9aedb9a-02f9-4d12-a87d-dd0099a07f8a-000000", + "destination": ["recipient@example.com"], + "headersTruncated": false, + "headers": [ + { + "name": "From", + "value": "Sender Name " + }, + { + "name": "To", + "value": "recipient@example.com" + }, + { + "name": "Subject", + "value": "Message sent from Amazon SES" + }, + { + "name": "MIME-Version", + "value": "1.0" + }, + { + "name": "Content-Type", + "value": "multipart/alternative; boundary=\"----=_Part_7307378_1629847660.1516840721503\"" + } + ], + "commonHeaders": { + "from": ["Sender Name "], + "to": ["recipient@example.com"], + "messageId": "EXAMPLE7c191be45-e9aedb9a-02f9-4d12-a87d-dd0099a07f8a-000000", + "subject": "Message sent from Amazon SES" + }, + "tags": { + "ses:configuration-set": ["ConfigSet"], + "ses:source-ip": ["192.0.2.0"], + "ses:from-domain": ["example.com"], + "ses:caller-identity": ["ses_user"] + } + } + }, + "Complaint": { + "eventType": "Complaint", + "complaint": { + "complainedRecipients": [ + { + "emailAddress": "recipient@example.com" + } + ], + "timestamp": "2017-08-05T00:41:02.669Z", + "feedbackId": "01000157c44f053b-61b59c11-9236-11e6-8f96-7be8aexample-000000", + "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36", + "complaintFeedbackType": "abuse", + "arrivalDate": "2017-08-05T00:41:02.669Z" + }, + "mail": { + "timestamp": "2017-08-05T00:40:01.123Z", + "source": "Sender Name ", + "sourceArn": "arn:aws:ses:us-east-1:123456789012:identity/sender@example.com", + "sendingAccountId": "123456789012", + "messageId": "EXAMPLE7c191be45-e9aedb9a-02f9-4d12-a87d-dd0099a07f8a-000000", + "destination": ["recipient@example.com"], + "headersTruncated": false, + "headers": [ + { + "name": "From", + "value": "Sender Name " + }, + { + "name": "To", + "value": "recipient@example.com" + }, + { + "name": "Subject", + "value": "Message sent from Amazon SES" + }, + { + "name": "MIME-Version", + "value": "1.0" + }, + { + "name": "Content-Type", + "value": "multipart/alternative; boundary=\"----=_Part_7298998_679725522.1516840859643\"" + } + ], + "commonHeaders": { + "from": ["Sender Name "], + "to": ["recipient@example.com"], + "messageId": "EXAMPLE7c191be45-e9aedb9a-02f9-4d12-a87d-dd0099a07f8a-000000", + "subject": "Message sent from Amazon SES" + }, + "tags": { + "ses:configuration-set": ["ConfigSet"], + "ses:source-ip": ["192.0.2.0"], + "ses:from-domain": ["example.com"], + "ses:caller-identity": ["ses_user"] + } + } + }, + "Delivery": { + "eventType": "Delivery", + "mail": { + "timestamp": "2016-10-19T23:20:52.240Z", + "source": "sender@example.com", + "sourceArn": "arn:aws:ses:us-east-1:123456789012:identity/sender@example.com", + "sendingAccountId": "123456789012", + "messageId": "EXAMPLE7c191be45-e9aedb9a-02f9-4d12-a87d-dd0099a07f8a-000000", + "destination": ["recipient@example.com"], + "headersTruncated": false, + "headers": [ + { + "name": "From", + "value": "sender@example.com" + }, + { + "name": "To", + "value": "recipient@example.com" + }, + { + "name": "Subject", + "value": "Message sent from Amazon SES" + }, + { + "name": "MIME-Version", + "value": "1.0" + }, + { + "name": "Content-Type", + "value": "text/html; charset=UTF-8" + }, + { + "name": "Content-Transfer-Encoding", + "value": "7bit" + } + ], + "commonHeaders": { + "from": ["sender@example.com"], + "to": ["recipient@example.com"], + "messageId": "EXAMPLE7c191be45-e9aedb9a-02f9-4d12-a87d-dd0099a07f8a-000000", + "subject": "Message sent from Amazon SES" + }, + "tags": { + "ses:configuration-set": ["ConfigSet"], + "ses:source-ip": ["192.0.2.0"], + "ses:from-domain": ["example.com"], + "ses:caller-identity": ["ses_user"], + "ses:outgoing-ip": ["192.0.2.0"], + "myCustomTag1": ["myCustomTagValue1"], + "myCustomTag2": ["myCustomTagValue2"] + } + }, + "delivery": { + "timestamp": "2016-10-19T23:21:04.133Z", + "processingTimeMillis": 11893, + "recipients": ["recipient@example.com"], + "smtpResponse": "250 2.6.0 Message received", + "remoteMtaIp": "123.456.789.012", + "reportingMTA": "mta.example.com" + } + }, + "Send": { + "eventType": "Send", + "mail": { + "timestamp": "2016-10-14T05:02:16.645Z", + "source": "sender@example.com", + "sourceArn": "arn:aws:ses:us-east-1:123456789012:identity/sender@example.com", + "sendingAccountId": "123456789012", + "messageId": "EXAMPLE7c191be45-e9aedb9a-02f9-4d12-a87d-dd0099a07f8a-000000", + "destination": ["recipient@example.com"], + "headersTruncated": false, + "headers": [ + { + "name": "From", + "value": "sender@example.com" + }, + { + "name": "To", + "value": "recipient@example.com" + }, + { + "name": "Subject", + "value": "Message sent from Amazon SES" + }, + { + "name": "MIME-Version", + "value": "1.0" + }, + { + "name": "Content-Type", + "value": "multipart/mixed; boundary=\"----=_Part_0_716996660.1476421336341\"" + }, + { + "name": "X-SES-MESSAGE-TAGS", + "value": "myCustomTag1=myCustomTagValue1, myCustomTag2=myCustomTagValue2" + } + ], + "commonHeaders": { + "from": ["sender@example.com"], + "to": ["recipient@example.com"], + "messageId": "EXAMPLE7c191be45-e9aedb9a-02f9-4d12-a87d-dd0099a07f8a-000000", + "subject": "Message sent from Amazon SES" + }, + "tags": { + "ses:configuration-set": ["ConfigSet"], + "ses:source-ip": ["192.0.2.0"], + "ses:from-domain": ["example.com"], + "ses:caller-identity": ["ses_user"], + "myCustomTag1": ["myCustomTagValue1"], + "myCustomTag2": ["myCustomTagValue2"] + } + }, + "send": {} + }, + "Reject": { + "eventType": "Reject", + "mail": { + "timestamp": "2016-10-14T17:38:15.211Z", + "source": "sender@example.com", + "sourceArn": "arn:aws:ses:us-east-1:123456789012:identity/sender@example.com", + "sendingAccountId": "123456789012", + "messageId": "EXAMPLE7c191be45-e9aedb9a-02f9-4d12-a87d-dd0099a07f8a-000000", + "destination": ["sender@example.com"], + "headersTruncated": false, + "headers": [ + { + "name": "From", + "value": "sender@example.com" + }, + { + "name": "To", + "value": "recipient@example.com" + }, + { + "name": "Subject", + "value": "Message sent from Amazon SES" + }, + { + "name": "MIME-Version", + "value": "1.0" + }, + { + "name": "Content-Type", + "value": "multipart/mixed; boundary=\"qMm9M+Fa2AknHoGS\"" + }, + { + "name": "X-SES-MESSAGE-TAGS", + "value": "myCustomTag1=myCustomTagValue1, myCustomTag2=myCustomTagValue2" + } + ], + "commonHeaders": { + "from": ["sender@example.com"], + "to": ["recipient@example.com"], + "messageId": "EXAMPLE7c191be45-e9aedb9a-02f9-4d12-a87d-dd0099a07f8a-000000", + "subject": "Message sent from Amazon SES" + }, + "tags": { + "ses:configuration-set": ["ConfigSet"], + "ses:source-ip": ["192.0.2.0"], + "ses:from-domain": ["example.com"], + "ses:caller-identity": ["ses_user"], + "myCustomTag1": ["myCustomTagValue1"], + "myCustomTag2": ["myCustomTagValue2"] + } + }, + "reject": { + "reason": "Bad content" + } + }, + "Open": { + "eventType": "Open", + "mail": { + "commonHeaders": { + "from": ["sender@example.com"], + "messageId": "EXAMPLE7c191be45-e9aedb9a-02f9-4d12-a87d-dd0099a07f8a-000000", + "subject": "Message sent from Amazon SES", + "to": ["recipient@example.com"] + }, + "destination": ["recipient@example.com"], + "headers": [ + { + "name": "X-SES-CONFIGURATION-SET", + "value": "ConfigSet" + }, + { + "name": "X-SES-MESSAGE-TAGS", + "value": "myCustomTag1=myCustomValue1, myCustomTag2=myCustomValue2" + }, + { + "name": "From", + "value": "sender@example.com" + }, + { + "name": "To", + "value": "recipient@example.com" + }, + { + "name": "Subject", + "value": "Message sent from Amazon SES" + }, + { + "name": "MIME-Version", + "value": "1.0" + }, + { + "name": "Content-Type", + "value": "multipart/alternative; boundary=\"XBoundary\"" + } + ], + "headersTruncated": false, + "messageId": "EXAMPLE7c191be45-e9aedb9a-02f9-4d12-a87d-dd0099a07f8a-000000", + "sendingAccountId": "123456789012", + "source": "sender@example.com", + "tags": { + "myCustomTag1": ["myCustomValue1"], + "myCustomTag2": ["myCustomValue2"], + "ses:caller-identity": ["IAM_user_or_role_name"], + "ses:configuration-set": ["ConfigSet"], + "ses:from-domain": ["example.com"], + "ses:source-ip": ["192.0.2.0"] + }, + "timestamp": "2017-08-09T21:59:49.927Z" + }, + "open": { + "ipAddress": "192.0.2.1", + "timestamp": "2017-08-09T22:00:19.652Z", + "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60", + "isBotEvent": "Unlikely" + } + }, + "Click": { + "eventType": "Click", + "click": { + "ipAddress": "192.0.2.1", + "link": "http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-smtp.html", + "linkTags": { + "samplekey0": ["samplevalue0"], + "samplekey1": ["samplevalue1"] + }, + "timestamp": "2017-08-09T23:51:25.570Z", + "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36", + "isBotEvent": "Likely" + }, + "mail": { + "commonHeaders": { + "from": ["sender@example.com"], + "messageId": "EXAMPLE7c191be45-e9aedb9a-02f9-4d12-a87d-dd0099a07f8a-000000", + "subject": "Message sent from Amazon SES", + "to": ["recipient@example.com"] + }, + "destination": ["recipient@example.com"], + "headers": [ + { + "name": "X-SES-CONFIGURATION-SET", + "value": "ConfigSet" + }, + { + "name": "X-SES-MESSAGE-TAGS", + "value": "myCustomTag1=myCustomValue1, myCustomTag2=myCustomValue2" + }, + { + "name": "From", + "value": "sender@example.com" + }, + { + "name": "To", + "value": "recipient@example.com" + }, + { + "name": "Subject", + "value": "Message sent from Amazon SES" + }, + { + "name": "MIME-Version", + "value": "1.0" + }, + { + "name": "Content-Type", + "value": "multipart/alternative; boundary=\"XBoundary\"" + }, + { + "name": "Message-ID", + "value": "EXAMPLE7c191be45-e9aedb9a-02f9-4d12-a87d-dd0099a07f8a-000000" + } + ], + "headersTruncated": false, + "messageId": "EXAMPLE7c191be45-e9aedb9a-02f9-4d12-a87d-dd0099a07f8a-000000", + "sendingAccountId": "123456789012", + "source": "sender@example.com", + "tags": { + "myCustomTag1": ["myCustomValue1"], + "myCustomTag2": ["myCustomValue2"], + "ses:caller-identity": ["ses_user"], + "ses:configuration-set": ["ConfigSet"], + "ses:from-domain": ["example.com"], + "ses:source-ip": ["192.0.2.0"] + }, + "timestamp": "2017-08-09T23:50:05.795Z" + } + }, + "Rendering Failure": { + "eventType": "Rendering Failure", + "mail": { + "timestamp": "2018-01-22T18:43:06.197Z", + "source": "sender@example.com", + "sourceArn": "arn:aws:ses:us-east-1:123456789012:identity/sender@example.com", + "sendingAccountId": "123456789012", + "messageId": "EXAMPLE7c191be45-e9aedb9a-02f9-4d12-a87d-dd0099a07f8a-000000", + "destination": ["recipient@example.com"], + "headersTruncated": false, + "tags": { + "ses:configuration-set": ["ConfigSet"] + } + }, + "failure": { + "errorMessage": "Attribute 'attributeName' is not present in the rendering data.", + "templateName": "MyTemplate" + } + }, + "DeliveryDelay": { + "eventType": "DeliveryDelay", + "mail": { + "timestamp": "2020-06-16T00:15:40.641Z", + "source": "sender@example.com", + "sourceArn": "arn:aws:ses:us-east-1:123456789012:identity/sender@example.com", + "sendingAccountId": "123456789012", + "messageId": "EXAMPLE7c191be45-e9aedb9a-02f9-4d12-a87d-dd0099a07f8a-000000", + "destination": ["recipient@example.com"], + "headersTruncated": false, + "tags": { + "ses:configuration-set": ["ConfigSet"] + } + }, + "deliveryDelay": { + "timestamp": "2020-06-16T00:25:40.095Z", + "delayType": "TransientCommunicationFailure", + "expirationTime": "2020-06-16T00:25:40.914Z", + "delayedRecipients": [ + { + "emailAddress": "recipient@example.com", + "status": "4.4.1", + "diagnosticCode": "smtp; 421 4.4.1 Unable to connect to remote host" + } + ] + } + }, + "Subscription": { + "eventType": "Subscription", + "mail": { + "timestamp": "2022-01-12T01:00:14.340Z", + "source": "sender@example.com", + "sourceArn": "arn:aws:ses:us-east-1:123456789012:identity/sender@example.com", + "sendingAccountId": "123456789012", + "messageId": "EXAMPLEe4bccb684-777bc8de-afa7-4970-92b0-f515137b1497-000000", + "destination": ["recipient@example.com"], + "headersTruncated": false, + "headers": [ + { + "name": "From", + "value": "sender@example.com" + }, + { + "name": "To", + "value": "recipient@example.com" + }, + { + "name": "Subject", + "value": "Message sent from Amazon SES" + }, + { + "name": "MIME-Version", + "value": "1.0" + }, + { + "name": "Content-Type", + "value": "text/html; charset=UTF-8" + }, + { + "name": "Content-Transfer-Encoding", + "value": "7bit" + } + ], + "commonHeaders": { + "from": ["sender@example.com"], + "to": ["recipient@example.com"], + "messageId": "EXAMPLEe4bccb684-777bc8de-afa7-4970-92b0-f515137b1497-000000", + "subject": "Message sent from Amazon SES" + }, + "tags": { + "ses:operation": ["SendEmail"], + "ses:configuration-set": ["ConfigSet"], + "ses:source-ip": ["192.0.2.0"], + "ses:from-domain": ["example.com"], + "ses:caller-identity": ["ses_user"], + "myCustomTag1": ["myCustomValue1"], + "myCustomTag2": ["myCustomValue2"] + } + }, + "subscription": { + "contactList": "ContactListName", + "timestamp": "2022-01-12T01:00:17.910Z", + "source": "UnsubscribeHeader", + "newTopicPreferences": { + "unsubscribeAll": true, + "topicSubscriptionStatus": [ + { + "topicName": "ExampleTopicName", + "subscriptionStatus": "OptOut" + } + ] + }, + "oldTopicPreferences": { + "unsubscribeAll": false, + "topicSubscriptionStatus": [ + { + "topicName": "ExampleTopicName", + "subscriptionStatus": "OptOut" + } + ] + } + } + } + }, + "snsMessages": { + "Notification": { + "Type": "Notification", + "MessageId": "22b80b92-fdea-4c2c-8f9d-bdfb0c7bf324", + "TopicArn": "arn:aws:sns:us-west-2:123456789012:MyTopic", + "Subject": "My First Message", + "Message": "Hello world!", + "Timestamp": "2012-05-02T00:54:06.655Z", + "SignatureVersion": "1", + "Signature": "EXAMPLEw6JRN...", + "SigningCertURL": "https://sns.us-west-2.amazonaws.com/SimpleNotificationService-f3ecfb7224c7233fe7bb5f59f96de52f.pem", + "UnsubscribeURL": "https://sns.us-west-2.amazonaws.com/?Action=Unsubscribe&SubscriptionArn=arn:aws:sns:us-west-2:123456789012:MyTopic:c9135db0-26c4-47ec-8998-413945fb5a96" + }, + "SubscriptionConfirmation": { + "Type": "SubscriptionConfirmation", + "MessageId": "165545c9-2a5c-472c-8df2-7ff2be2b3b1b", + "Token": "2336412f37...", + "TopicArn": "arn:aws:sns:us-west-2:123456789012:MyTopic", + "Message": "You have chosen to subscribe to the topic arn:aws:sns:us-west-2:123456789012:MyTopic.\nTo confirm the subscription, visit the SubscribeURL included in this message.", + "SubscribeURL": "https://sns.us-west-2.amazonaws.com/?Action=ConfirmSubscription&TopicArn=arn:aws:sns:us-west-2:123456789012:MyTopic&Token=2336412f37...", + "Timestamp": "2012-04-26T20:45:04.751Z", + "SignatureVersion": "1", + "Signature": "EXAMPLEpH+DcEwjAPg8O9mY8dReBSwksfg2S7WKQcikcNKWLQjwu6A4VbeS0QHVCkhRS7fUQvi2egU3N858fiTDN6bkkOxYDVrY0Ad8L10Hs3zH81mtnPk5uvvolIC1CXGu43obcgFxeL3khZl8IKvO61GWB6jI9b5+gLPoBc1Q=", + "SigningCertURL": "https://sns.us-west-2.amazonaws.com/SimpleNotificationService-f3ecfb7224c7233fe7bb5f59f96de52f.pem" + }, + "UnsubscribeConfirmation": { + "Type": "UnsubscribeConfirmation", + "MessageId": "47138184-6831-46b8-8f7c-afc488602d7d", + "Token": "2336412f37...", + "TopicArn": "arn:aws:sns:us-west-2:123456789012:MyTopic", + "Message": "You have chosen to deactivate subscription arn:aws:sns:us-west-2:123456789012:MyTopic:2bcfbf39-05c3-41de-beaa-fcfcc21c8f55.\nTo cancel this operation and restore the subscription, visit the SubscribeURL included in this message.", + "SubscribeURL": "https://sns.us-west-2.amazonaws.com/?Action=ConfirmSubscription&TopicArn=arn:aws:sns:us-west-2:123456789012:MyTopic&Token=2336412f37fb6...", + "Timestamp": "2012-04-26T20:06:41.581Z", + "SignatureVersion": "1", + "Signature": "EXAMPLEHXgJm...", + "SigningCertURL": "https://sns.us-west-2.amazonaws.com/SimpleNotificationService-f3ecfb7224c7233fe7bb5f59f96de52f.pem" + } + } +} diff --git a/tests/fixtures/smithy/README.md b/tests/fixtures/smithy/README.md new file mode 100644 index 0000000..8bf437c --- /dev/null +++ b/tests/fixtures/smithy/README.md @@ -0,0 +1,25 @@ +# Amazon SES v2 Smithy model (subset) + +`sesv2.json` is a subset of the official Smithy JSON model of Amazon SES API v2: + +- Repository: +- File: `models/sesv2/service/2019-09-27/sesv2-2019-09-27.json` +- Commit: `9f371492a21b16552652248af39cb2efa4abcfc0` (retrieved 2026-11-18) +- SHA-256 of the full file: `f34aeda95c11bd696714f5ff2be180ecb5b48ad3bfdfd6fb73de31aa3d42b891` +- License: Apache-2.0 + +Kept: the operations `SendEmail`, `GetAccount`, `ListEmailTemplates` and +`GetEmailTemplate`, every shape reachable from their input, output and error +shapes, and the service's `aws.api#service`, `aws.auth#sigv4` and +`aws.protocols#restJson1` traits. Removed: documentation traits. + +`tests/helpers/smithy-contract.js` validates the request bodies Magic Mail +builds and the fake SES responses against these shapes +(`tests/ses-contract.test.js`). + +Re-generate (development only): + +```sh +node tests/helpers/vendor-aws-fixtures.js smithy /sesv2-2019-09-27.json +npx prettier --write tests/fixtures/smithy/sesv2.json +``` diff --git a/tests/fixtures/smithy/sesv2.json b/tests/fixtures/smithy/sesv2.json new file mode 100644 index 0000000..ae3679d --- /dev/null +++ b/tests/fixtures/smithy/sesv2.json @@ -0,0 +1,1441 @@ +{ + "x-magic-mail-source": { + "repository": "https://github.com/aws/api-models-aws", + "path": "models/sesv2/service/2019-09-27/sesv2-2019-09-27.json", + "commit": "9f371492a21b16552652248af39cb2efa4abcfc0", + "sha256": "f34aeda95c11bd696714f5ff2be180ecb5b48ad3bfdfd6fb73de31aa3d42b891", + "license": "Apache-2.0", + "retrieved": "2026-11-18", + "note": "Subset: shapes reachable from the operations below; documentation traits removed.", + "operations": ["SendEmail", "GetAccount", "ListEmailTemplates", "GetEmailTemplate"] + }, + "smithy": "2.0", + "service": { + "aws.api#service": { + "sdkId": "SESv2", + "arnNamespace": "ses", + "cloudFormationName": "SESv2", + "cloudTrailEventSource": "sesv2.amazonaws.com", + "endpointPrefix": "email" + }, + "aws.auth#sigv4": { + "name": "ses" + }, + "aws.protocols#restJson1": {} + }, + "shapes": { + "com.amazonaws.sesv2#AccountDetails": { + "type": "structure", + "members": { + "MailType": { + "target": "com.amazonaws.sesv2#MailType", + "traits": {} + }, + "WebsiteURL": { + "target": "com.amazonaws.sesv2#WebsiteURL", + "traits": {} + }, + "ContactLanguage": { + "target": "com.amazonaws.sesv2#ContactLanguage", + "traits": {} + }, + "UseCaseDescription": { + "target": "com.amazonaws.sesv2#UseCaseDescription", + "traits": {} + }, + "AdditionalContactEmailAddresses": { + "target": "com.amazonaws.sesv2#AdditionalContactEmailAddresses", + "traits": {} + }, + "ReviewDetails": { + "target": "com.amazonaws.sesv2#ReviewDetails", + "traits": {} + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#AccountSharedPoolDeliveryMode": { + "type": "enum", + "members": { + "GLOBAL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "GLOBAL" + } + }, + "REGIONAL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "REGIONAL" + } + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#AccountSuspendedException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.sesv2#ErrorMessage" + } + }, + "traits": { + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.sesv2#AdditionalContactEmailAddress": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 6, + "max": 254 + }, + "smithy.api#pattern": "^(.+)@(.+)$", + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.sesv2#AdditionalContactEmailAddresses": { + "type": "list", + "member": { + "target": "com.amazonaws.sesv2#AdditionalContactEmailAddress" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 4 + }, + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.sesv2#AmazonResourceName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1 + } + } + }, + "com.amazonaws.sesv2#Attachment": { + "type": "structure", + "members": { + "RawContent": { + "target": "com.amazonaws.sesv2#RawAttachmentData", + "traits": { + "smithy.api#required": {} + } + }, + "ContentDisposition": { + "target": "com.amazonaws.sesv2#AttachmentContentDisposition", + "traits": {} + }, + "FileName": { + "target": "com.amazonaws.sesv2#AttachmentFileName", + "traits": { + "smithy.api#required": {} + } + }, + "ContentDescription": { + "target": "com.amazonaws.sesv2#AttachmentContentDescription", + "traits": {} + }, + "ContentId": { + "target": "com.amazonaws.sesv2#AttachmentContentId", + "traits": {} + }, + "ContentTransferEncoding": { + "target": "com.amazonaws.sesv2#AttachmentContentTransferEncoding", + "traits": {} + }, + "ContentType": { + "target": "com.amazonaws.sesv2#AttachmentContentType", + "traits": {} + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#AttachmentContentDescription": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 1000 + } + } + }, + "com.amazonaws.sesv2#AttachmentContentDisposition": { + "type": "enum", + "members": { + "ATTACHMENT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ATTACHMENT" + } + }, + "INLINE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INLINE" + } + } + } + }, + "com.amazonaws.sesv2#AttachmentContentId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 78 + } + } + }, + "com.amazonaws.sesv2#AttachmentContentTransferEncoding": { + "type": "enum", + "members": { + "BASE64": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "BASE64" + } + }, + "QUOTED_PRINTABLE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "QUOTED_PRINTABLE" + } + }, + "SEVEN_BIT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "SEVEN_BIT" + } + } + } + }, + "com.amazonaws.sesv2#AttachmentContentType": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 78 + } + } + }, + "com.amazonaws.sesv2#AttachmentFileName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 255 + } + } + }, + "com.amazonaws.sesv2#AttachmentList": { + "type": "list", + "member": { + "target": "com.amazonaws.sesv2#Attachment" + } + }, + "com.amazonaws.sesv2#BadRequestException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.sesv2#ErrorMessage" + } + }, + "traits": { + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.sesv2#Body": { + "type": "structure", + "members": { + "Text": { + "target": "com.amazonaws.sesv2#Content", + "traits": {} + }, + "Html": { + "target": "com.amazonaws.sesv2#Content", + "traits": {} + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#CaseId": { + "type": "string" + }, + "com.amazonaws.sesv2#Charset": { + "type": "string" + }, + "com.amazonaws.sesv2#ConfigurationOverrides": { + "type": "structure", + "members": { + "Tracking": { + "target": "com.amazonaws.sesv2#TrackingConfigurationOverrides", + "traits": {} + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#ConfigurationSetName": { + "type": "string", + "traits": {} + }, + "com.amazonaws.sesv2#ContactLanguage": { + "type": "enum", + "members": { + "EN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "EN" + } + }, + "JA": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "JA" + } + } + } + }, + "com.amazonaws.sesv2#ContactListName": { + "type": "string" + }, + "com.amazonaws.sesv2#Content": { + "type": "structure", + "members": { + "Data": { + "target": "com.amazonaws.sesv2#MessageData", + "traits": { + "smithy.api#required": {} + } + }, + "Charset": { + "target": "com.amazonaws.sesv2#Charset", + "traits": {} + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#DashboardAttributes": { + "type": "structure", + "members": { + "EngagementMetrics": { + "target": "com.amazonaws.sesv2#FeatureStatus", + "traits": {} + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#DeliveryAttributes": { + "type": "structure", + "members": { + "SharedPoolDeliveryMode": { + "target": "com.amazonaws.sesv2#AccountSharedPoolDeliveryMode", + "traits": {} + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#Destination": { + "type": "structure", + "members": { + "ToAddresses": { + "target": "com.amazonaws.sesv2#EmailAddressList", + "traits": {} + }, + "CcAddresses": { + "target": "com.amazonaws.sesv2#EmailAddressList", + "traits": {} + }, + "BccAddresses": { + "target": "com.amazonaws.sesv2#EmailAddressList", + "traits": {} + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#EmailAddress": { + "type": "string" + }, + "com.amazonaws.sesv2#EmailAddressList": { + "type": "list", + "member": { + "target": "com.amazonaws.sesv2#EmailAddress" + } + }, + "com.amazonaws.sesv2#EmailContent": { + "type": "structure", + "members": { + "Simple": { + "target": "com.amazonaws.sesv2#Message", + "traits": {} + }, + "Raw": { + "target": "com.amazonaws.sesv2#RawMessage", + "traits": {} + }, + "Template": { + "target": "com.amazonaws.sesv2#Template", + "traits": {} + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#EmailTemplateContent": { + "type": "structure", + "members": { + "Subject": { + "target": "com.amazonaws.sesv2#EmailTemplateSubject", + "traits": {} + }, + "Text": { + "target": "com.amazonaws.sesv2#EmailTemplateText", + "traits": {} + }, + "Html": { + "target": "com.amazonaws.sesv2#EmailTemplateHtml", + "traits": {} + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#EmailTemplateData": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 0, + "max": 262144 + } + } + }, + "com.amazonaws.sesv2#EmailTemplateHtml": { + "type": "string", + "traits": {} + }, + "com.amazonaws.sesv2#EmailTemplateMetadata": { + "type": "structure", + "members": { + "TemplateName": { + "target": "com.amazonaws.sesv2#EmailTemplateName", + "traits": {} + }, + "CreatedTimestamp": { + "target": "com.amazonaws.sesv2#Timestamp", + "traits": {} + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#EmailTemplateMetadataList": { + "type": "list", + "member": { + "target": "com.amazonaws.sesv2#EmailTemplateMetadata" + }, + "traits": {} + }, + "com.amazonaws.sesv2#EmailTemplateName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1 + } + } + }, + "com.amazonaws.sesv2#EmailTemplateSubject": { + "type": "string", + "traits": {} + }, + "com.amazonaws.sesv2#EmailTemplateText": { + "type": "string", + "traits": {} + }, + "com.amazonaws.sesv2#Enabled": { + "type": "boolean", + "traits": { + "smithy.api#default": false + } + }, + "com.amazonaws.sesv2#EndpointId": { + "type": "string", + "traits": {} + }, + "com.amazonaws.sesv2#ErrorMessage": { + "type": "string" + }, + "com.amazonaws.sesv2#FeatureStatus": { + "type": "enum", + "members": { + "ENABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLED" + } + }, + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + } + } + }, + "com.amazonaws.sesv2#GeneralEnforcementStatus": { + "type": "string" + }, + "com.amazonaws.sesv2#GetAccount": { + "type": "operation", + "input": { + "target": "com.amazonaws.sesv2#GetAccountRequest" + }, + "output": { + "target": "com.amazonaws.sesv2#GetAccountResponse" + }, + "errors": [ + { + "target": "com.amazonaws.sesv2#BadRequestException" + }, + { + "target": "com.amazonaws.sesv2#TooManyRequestsException" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v2/email/account", + "code": 200 + } + } + }, + "com.amazonaws.sesv2#GetAccountRequest": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.sesv2#GetAccountResponse": { + "type": "structure", + "members": { + "DedicatedIpAutoWarmupEnabled": { + "target": "com.amazonaws.sesv2#Enabled", + "traits": { + "smithy.api#default": false + } + }, + "EnforcementStatus": { + "target": "com.amazonaws.sesv2#GeneralEnforcementStatus", + "traits": {} + }, + "ProductionAccessEnabled": { + "target": "com.amazonaws.sesv2#Enabled", + "traits": { + "smithy.api#default": false + } + }, + "SendQuota": { + "target": "com.amazonaws.sesv2#SendQuota", + "traits": {} + }, + "SendingEnabled": { + "target": "com.amazonaws.sesv2#Enabled", + "traits": { + "smithy.api#default": false + } + }, + "SuppressionAttributes": { + "target": "com.amazonaws.sesv2#SuppressionAttributes", + "traits": {} + }, + "Details": { + "target": "com.amazonaws.sesv2#AccountDetails", + "traits": {} + }, + "VdmAttributes": { + "target": "com.amazonaws.sesv2#VdmAttributes", + "traits": {} + }, + "PricingAttributes": { + "target": "com.amazonaws.sesv2#PricingAttributes", + "traits": {} + }, + "DeliveryAttributes": { + "target": "com.amazonaws.sesv2#DeliveryAttributes", + "traits": {} + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.sesv2#GetEmailTemplate": { + "type": "operation", + "input": { + "target": "com.amazonaws.sesv2#GetEmailTemplateRequest" + }, + "output": { + "target": "com.amazonaws.sesv2#GetEmailTemplateResponse" + }, + "errors": [ + { + "target": "com.amazonaws.sesv2#BadRequestException" + }, + { + "target": "com.amazonaws.sesv2#NotFoundException" + }, + { + "target": "com.amazonaws.sesv2#TooManyRequestsException" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v2/email/templates/{TemplateName}", + "code": 200 + } + } + }, + "com.amazonaws.sesv2#GetEmailTemplateRequest": { + "type": "structure", + "members": { + "TemplateName": { + "target": "com.amazonaws.sesv2#EmailTemplateName", + "traits": { + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.sesv2#GetEmailTemplateResponse": { + "type": "structure", + "members": { + "TemplateName": { + "target": "com.amazonaws.sesv2#EmailTemplateName", + "traits": { + "smithy.api#required": {} + } + }, + "TemplateContent": { + "target": "com.amazonaws.sesv2#EmailTemplateContent", + "traits": { + "smithy.api#required": {} + } + }, + "Tags": { + "target": "com.amazonaws.sesv2#TagList", + "traits": {} + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.sesv2#GuardianAttributes": { + "type": "structure", + "members": { + "OptimizedSharedDelivery": { + "target": "com.amazonaws.sesv2#FeatureStatus", + "traits": {} + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#LimitExceededException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.sesv2#ErrorMessage" + } + }, + "traits": { + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.sesv2#ListEmailTemplates": { + "type": "operation", + "input": { + "target": "com.amazonaws.sesv2#ListEmailTemplatesRequest" + }, + "output": { + "target": "com.amazonaws.sesv2#ListEmailTemplatesResponse" + }, + "errors": [ + { + "target": "com.amazonaws.sesv2#BadRequestException" + }, + { + "target": "com.amazonaws.sesv2#TooManyRequestsException" + } + ], + "traits": { + "smithy.api#http": { + "method": "GET", + "uri": "/v2/email/templates", + "code": 200 + }, + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "PageSize" + } + } + }, + "com.amazonaws.sesv2#ListEmailTemplatesRequest": { + "type": "structure", + "members": { + "NextToken": { + "target": "com.amazonaws.sesv2#NextToken", + "traits": { + "smithy.api#httpQuery": "NextToken" + } + }, + "PageSize": { + "target": "com.amazonaws.sesv2#MaxItems", + "traits": { + "smithy.api#httpQuery": "PageSize" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.sesv2#ListEmailTemplatesResponse": { + "type": "structure", + "members": { + "TemplatesMetadata": { + "target": "com.amazonaws.sesv2#EmailTemplateMetadataList", + "traits": {} + }, + "NextToken": { + "target": "com.amazonaws.sesv2#NextToken", + "traits": {} + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.sesv2#ListManagementOptions": { + "type": "structure", + "members": { + "ContactListName": { + "target": "com.amazonaws.sesv2#ContactListName", + "traits": { + "smithy.api#required": {} + } + }, + "TopicName": { + "target": "com.amazonaws.sesv2#TopicName", + "traits": {} + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#MailFromDomainNotVerifiedException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.sesv2#ErrorMessage" + } + }, + "traits": { + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.sesv2#MailType": { + "type": "enum", + "members": { + "MARKETING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MARKETING" + } + }, + "TRANSACTIONAL": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TRANSACTIONAL" + } + } + } + }, + "com.amazonaws.sesv2#Max24HourSend": { + "type": "double", + "traits": { + "smithy.api#default": 0 + } + }, + "com.amazonaws.sesv2#MaxItems": { + "type": "integer" + }, + "com.amazonaws.sesv2#MaxSendRate": { + "type": "double", + "traits": { + "smithy.api#default": 0 + } + }, + "com.amazonaws.sesv2#Message": { + "type": "structure", + "members": { + "Subject": { + "target": "com.amazonaws.sesv2#Content", + "traits": { + "smithy.api#required": {} + } + }, + "Body": { + "target": "com.amazonaws.sesv2#Body", + "traits": { + "smithy.api#required": {} + } + }, + "Headers": { + "target": "com.amazonaws.sesv2#MessageHeaderList", + "traits": {} + }, + "Attachments": { + "target": "com.amazonaws.sesv2#AttachmentList", + "traits": {} + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#MessageData": { + "type": "string" + }, + "com.amazonaws.sesv2#MessageHeader": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.sesv2#MessageHeaderName", + "traits": { + "smithy.api#required": {} + } + }, + "Value": { + "target": "com.amazonaws.sesv2#MessageHeaderValue", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#MessageHeaderList": { + "type": "list", + "member": { + "target": "com.amazonaws.sesv2#MessageHeader" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 15 + } + } + }, + "com.amazonaws.sesv2#MessageHeaderName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 126 + }, + "smithy.api#pattern": "^[!-9;-@A-~]+$" + } + }, + "com.amazonaws.sesv2#MessageHeaderValue": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 995 + }, + "smithy.api#pattern": "^[ -~]*$" + } + }, + "com.amazonaws.sesv2#MessageRejected": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.sesv2#ErrorMessage" + } + }, + "traits": { + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.sesv2#MessageTag": { + "type": "structure", + "members": { + "Name": { + "target": "com.amazonaws.sesv2#MessageTagName", + "traits": { + "smithy.api#required": {} + } + }, + "Value": { + "target": "com.amazonaws.sesv2#MessageTagValue", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#MessageTagList": { + "type": "list", + "member": { + "target": "com.amazonaws.sesv2#MessageTag" + }, + "traits": {} + }, + "com.amazonaws.sesv2#MessageTagName": { + "type": "string", + "traits": {} + }, + "com.amazonaws.sesv2#MessageTagValue": { + "type": "string", + "traits": {} + }, + "com.amazonaws.sesv2#NextToken": { + "type": "string" + }, + "com.amazonaws.sesv2#NotFoundException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.sesv2#ErrorMessage" + } + }, + "traits": { + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, + "com.amazonaws.sesv2#OutboundMessageId": { + "type": "string" + }, + "com.amazonaws.sesv2#PricingAttributes": { + "type": "structure", + "members": { + "CurrentPlan": { + "target": "com.amazonaws.sesv2#PricingPlan", + "traits": {} + }, + "NextPlan": { + "target": "com.amazonaws.sesv2#PricingPlan", + "traits": {} + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#PricingPlan": { + "type": "enum", + "members": { + "NONE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NONE" + } + }, + "ESSENTIALS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ESSENTIALS" + } + }, + "PRO": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PRO" + } + }, + "ENTERPRISE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENTERPRISE" + } + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#RawAttachmentData": { + "type": "blob" + }, + "com.amazonaws.sesv2#RawMessage": { + "type": "structure", + "members": { + "Data": { + "target": "com.amazonaws.sesv2#RawMessageData", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#RawMessageData": { + "type": "blob", + "traits": {} + }, + "com.amazonaws.sesv2#ReviewDetails": { + "type": "structure", + "members": { + "Status": { + "target": "com.amazonaws.sesv2#ReviewStatus", + "traits": {} + }, + "CaseId": { + "target": "com.amazonaws.sesv2#CaseId", + "traits": {} + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#ReviewStatus": { + "type": "enum", + "members": { + "PENDING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PENDING" + } + }, + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FAILED" + } + }, + "GRANTED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "GRANTED" + } + }, + "DENIED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DENIED" + } + } + } + }, + "com.amazonaws.sesv2#SendEmail": { + "type": "operation", + "input": { + "target": "com.amazonaws.sesv2#SendEmailRequest" + }, + "output": { + "target": "com.amazonaws.sesv2#SendEmailResponse" + }, + "errors": [ + { + "target": "com.amazonaws.sesv2#AccountSuspendedException" + }, + { + "target": "com.amazonaws.sesv2#BadRequestException" + }, + { + "target": "com.amazonaws.sesv2#LimitExceededException" + }, + { + "target": "com.amazonaws.sesv2#MailFromDomainNotVerifiedException" + }, + { + "target": "com.amazonaws.sesv2#MessageRejected" + }, + { + "target": "com.amazonaws.sesv2#NotFoundException" + }, + { + "target": "com.amazonaws.sesv2#SendingPausedException" + }, + { + "target": "com.amazonaws.sesv2#TooManyRequestsException" + } + ], + "traits": { + "smithy.api#http": { + "method": "POST", + "uri": "/v2/email/outbound-emails", + "code": 200 + } + } + }, + "com.amazonaws.sesv2#SendEmailRequest": { + "type": "structure", + "members": { + "FromEmailAddress": { + "target": "com.amazonaws.sesv2#EmailAddress", + "traits": {} + }, + "FromEmailAddressIdentityArn": { + "target": "com.amazonaws.sesv2#AmazonResourceName", + "traits": {} + }, + "Destination": { + "target": "com.amazonaws.sesv2#Destination", + "traits": {} + }, + "ReplyToAddresses": { + "target": "com.amazonaws.sesv2#EmailAddressList", + "traits": {} + }, + "FeedbackForwardingEmailAddress": { + "target": "com.amazonaws.sesv2#EmailAddress", + "traits": {} + }, + "FeedbackForwardingEmailAddressIdentityArn": { + "target": "com.amazonaws.sesv2#AmazonResourceName", + "traits": {} + }, + "Content": { + "target": "com.amazonaws.sesv2#EmailContent", + "traits": { + "smithy.api#required": {} + } + }, + "EmailTags": { + "target": "com.amazonaws.sesv2#MessageTagList", + "traits": {} + }, + "ConfigurationSetName": { + "target": "com.amazonaws.sesv2#ConfigurationSetName", + "traits": {} + }, + "EndpointId": { + "target": "com.amazonaws.sesv2#EndpointId", + "traits": { + "smithy.rules#contextParam": { + "name": "EndpointId" + } + } + }, + "TenantName": { + "target": "com.amazonaws.sesv2#TenantName", + "traits": {} + }, + "ListManagementOptions": { + "target": "com.amazonaws.sesv2#ListManagementOptions", + "traits": {} + }, + "ConfigurationOverrides": { + "target": "com.amazonaws.sesv2#ConfigurationOverrides", + "traits": {} + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.sesv2#SendEmailResponse": { + "type": "structure", + "members": { + "MessageId": { + "target": "com.amazonaws.sesv2#OutboundMessageId", + "traits": {} + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.sesv2#SendQuota": { + "type": "structure", + "members": { + "Max24HourSend": { + "target": "com.amazonaws.sesv2#Max24HourSend", + "traits": { + "smithy.api#default": 0 + } + }, + "MaxSendRate": { + "target": "com.amazonaws.sesv2#MaxSendRate", + "traits": { + "smithy.api#default": 0 + } + }, + "SentLast24Hours": { + "target": "com.amazonaws.sesv2#SentLast24Hours", + "traits": { + "smithy.api#default": 0 + } + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#SendingPausedException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.sesv2#ErrorMessage" + } + }, + "traits": { + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.sesv2#SentLast24Hours": { + "type": "double", + "traits": { + "smithy.api#default": 0 + } + }, + "com.amazonaws.sesv2#SuppressionAttributes": { + "type": "structure", + "members": { + "SuppressedReasons": { + "target": "com.amazonaws.sesv2#SuppressionListReasons", + "traits": {} + }, + "ValidationAttributes": { + "target": "com.amazonaws.sesv2#SuppressionValidationAttributes" + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#SuppressionConditionThreshold": { + "type": "structure", + "members": { + "ConditionThresholdEnabled": { + "target": "com.amazonaws.sesv2#FeatureStatus", + "traits": { + "smithy.api#required": {} + } + }, + "OverallConfidenceThreshold": { + "target": "com.amazonaws.sesv2#SuppressionConfidenceThreshold", + "traits": {} + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#SuppressionConfidenceThreshold": { + "type": "structure", + "members": { + "ConfidenceVerdictThreshold": { + "target": "com.amazonaws.sesv2#SuppressionConfidenceVerdictThreshold", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#SuppressionConfidenceVerdictThreshold": { + "type": "enum", + "members": { + "MEDIUM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MEDIUM" + } + }, + "HIGH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "HIGH" + } + }, + "MANAGED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MANAGED" + } + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#SuppressionListReason": { + "type": "enum", + "members": { + "BOUNCE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "BOUNCE" + } + }, + "COMPLAINT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "COMPLAINT" + } + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#SuppressionListReasons": { + "type": "list", + "member": { + "target": "com.amazonaws.sesv2#SuppressionListReason" + } + }, + "com.amazonaws.sesv2#SuppressionValidationAttributes": { + "type": "structure", + "members": { + "ConditionThreshold": { + "target": "com.amazonaws.sesv2#SuppressionConditionThreshold", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#Tag": { + "type": "structure", + "members": { + "Key": { + "target": "com.amazonaws.sesv2#TagKey", + "traits": { + "smithy.api#required": {} + } + }, + "Value": { + "target": "com.amazonaws.sesv2#TagValue", + "traits": { + "smithy.api#required": {} + } + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#TagKey": { + "type": "string" + }, + "com.amazonaws.sesv2#TagList": { + "type": "list", + "member": { + "target": "com.amazonaws.sesv2#Tag" + } + }, + "com.amazonaws.sesv2#TagValue": { + "type": "string" + }, + "com.amazonaws.sesv2#Template": { + "type": "structure", + "members": { + "TemplateName": { + "target": "com.amazonaws.sesv2#EmailTemplateName", + "traits": {} + }, + "TemplateArn": { + "target": "com.amazonaws.sesv2#AmazonResourceName", + "traits": {} + }, + "TemplateContent": { + "target": "com.amazonaws.sesv2#EmailTemplateContent", + "traits": {} + }, + "TemplateData": { + "target": "com.amazonaws.sesv2#EmailTemplateData", + "traits": {} + }, + "Headers": { + "target": "com.amazonaws.sesv2#MessageHeaderList", + "traits": {} + }, + "Attachments": { + "target": "com.amazonaws.sesv2#AttachmentList", + "traits": {} + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#TenantName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1 + } + } + }, + "com.amazonaws.sesv2#Timestamp": { + "type": "timestamp" + }, + "com.amazonaws.sesv2#TooManyRequestsException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.sesv2#ErrorMessage" + } + }, + "traits": { + "smithy.api#error": "client", + "smithy.api#httpError": 429 + } + }, + "com.amazonaws.sesv2#TopicName": { + "type": "string" + }, + "com.amazonaws.sesv2#TrackingConfigurationOverrides": { + "type": "structure", + "members": { + "OpenTrackingEnabled": { + "target": "com.amazonaws.sesv2#FeatureStatus", + "traits": {} + }, + "ClickTrackingEnabled": { + "target": "com.amazonaws.sesv2#FeatureStatus", + "traits": {} + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#UseCaseDescription": { + "type": "string", + "traits": { + "smithy.api#deprecated": { + "message": "Use case description is optional and deprecated" + }, + "smithy.api#length": { + "min": 0, + "max": 5000 + }, + "smithy.api#sensitive": {} + } + }, + "com.amazonaws.sesv2#VdmAttributes": { + "type": "structure", + "members": { + "VdmEnabled": { + "target": "com.amazonaws.sesv2#FeatureStatus", + "traits": { + "smithy.api#required": {} + } + }, + "DashboardAttributes": { + "target": "com.amazonaws.sesv2#DashboardAttributes", + "traits": {} + }, + "GuardianAttributes": { + "target": "com.amazonaws.sesv2#GuardianAttributes", + "traits": {} + } + }, + "traits": {} + }, + "com.amazonaws.sesv2#WebsiteURL": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 1000 + }, + "smithy.api#pattern": "^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$", + "smithy.api#sensitive": {} + } + } + } +} diff --git a/tests/fixtures/webhooks/README.md b/tests/fixtures/webhooks/README.md index a337320..a317dbb 100644 --- a/tests/fixtures/webhooks/README.md +++ b/tests/fixtures/webhooks/README.md @@ -63,3 +63,34 @@ from the official sendgrid-nodejs test suite (). It keeps SendGrid's sample address, because changing a byte would break the signature. + +## `brevo-events.json` + +One event object per key, copied on 2026-11-18 from the JSON examples of the +"Transactional Email" section of the Brevo transactional webhooks page +(, `.md` variant). +Keys are the section titles (Sent, Clicked, Deferred, Delivered, Soft bounced, +Hard bounced, Spam, First opening, Opened, Invalid email, Blocked, Error, +Unsubscribed, Proxy open, Unique proxy open). Used by +`tests/brevo-adapter.test.js` and `tests/brevo-integration.test.js`. + +Changes from the published examples: + +- The examples are not valid JSON (`"id": xxxxx`); `xxxxx` became `26224`, the + webhook id of the example on . +- Addresses became `recipient@example.test` / `sender@example.test`, the IP + placeholder `xxx.xxx.xxx.xxx` became `192.0.2.1`, `relay.domain.com` became + `relay.example.test` and `https://domain.com/product` became + `https://shop.example.test/product`. Nothing else was changed. + +Documentation quirks the tests keep visible: + +- The "Error" example carries `"event": "invalid_email"` although the table + above it names the event `error`; the tests build the `error` case from it. +- `ts_epoch` is documented in milliseconds, but most examples show seconds + (Proxy open shows milliseconds). +- `id` is the webhook id, not an event id; Brevo events have no event id. + +Brevo transactional webhooks are not signed. They are authenticated with the +account's random webhook token (bearer `auth` or a custom header), see +. diff --git a/tests/fixtures/webhooks/brevo-events.json b/tests/fixtures/webhooks/brevo-events.json new file mode 100644 index 0000000..1cd22b8 --- /dev/null +++ b/tests/fixtures/webhooks/brevo-events.json @@ -0,0 +1,292 @@ +{ + "Sent": { + "event": "request", + "email": "recipient@example.test", + "id": 26224, + "date": "2020-10-09 00:00:00", + "ts": 1604933619, + "message-id": "201798300811.5787683@relay.example.test", + "ts_event": 1604933654, + "subject": "My first Transactional", + "X-Mailin-custom": "some_custom_header", + "sending_ip": "192.0.2.1", + "ts_epoch": 1604933654, + "template_id": 22, + "mirror_link": "https://app-smtp.brevo.com/log/preview/1a2000f4-4e33-23aa-ab68-900dxxx9152c", + "contact_id": 8, + "tags": ["transac_messages"], + "source": "automation", + "step_id": 2, + "workflow_id": 120 + }, + "Clicked": { + "event": "click", + "email": "recipient@example.test", + "id": 26224, + "date": "2020-10-09 00:00:00", + "ts": 1604933619, + "message-id": "201798300811.5787683@relay.example.test", + "ts_event": 1604933654, + "subject": "My first Transactional", + "X-Mailin-custom": "some_custom_header", + "sending_ip": "192.0.2.1", + "ts_epoch": 1604933654, + "template_id": 22, + "tags": ["transac_messages"], + "user_agent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)", + "device_used": "DESKTOP", + "mirror_link": "https://app-smtp.brevo.com/log/preview/1a2000f4-4e33-23aa-ab68-900dxxx9152c", + "contact_id": 8, + "link": "https://shop.example.test/product", + "source": "automation", + "step_id": 2, + "workflow_id": 120 + }, + "Deferred": { + "event": "deferred", + "email": "recipient@example.test", + "id": 26224, + "date": "2020-10-09 00:00:00", + "ts": 1604933619, + "message-id": "201798300811.5787683@relay.example.test", + "ts_event": 1604933654, + "subject": "My first Transactional", + "X-Mailin-custom": "some_custom_header", + "sending_ip": "192.0.2.1", + "ts_epoch": 1604933654, + "template_id": 22, + "tags": ["transac_messages"], + "reason": "spam", + "source": "automation", + "step_id": 2, + "workflow_id": 120 + }, + "Delivered": { + "event": "delivered", + "email": "recipient@example.test", + "id": 26224, + "date": "2020-10-09 00:00:00", + "ts": 1604933619, + "message-id": "201798300811.5787683@relay.example.test", + "ts_event": 1604933654, + "subject": "My first Transactional", + "X-Mailin-custom": "some_custom_header", + "sending_ip": "192.0.2.1", + "template_id": 22, + "tags": ["transac_messages"], + "source": "automation", + "step_id": 2, + "workflow_id": 120 + }, + "Soft bounced": { + "event": "soft_bounce", + "email": "recipient@example.test", + "id": 26224, + "date": "2020-10-09 00:00:00", + "ts": 1604933619, + "message-id": "201798300811.5787683@relay.example.test", + "ts_event": 1604933654, + "subject": "My first Transactional", + "X-Mailin-custom": "some_custom_header", + "sending_ip": "192.0.2.1", + "template_id": 22, + "tags": ["transac_messages"], + "reason": "server is down", + "source": "automation", + "step_id": 2, + "workflow_id": 120 + }, + "Hard bounced": { + "event": "hard_bounce", + "email": "recipient@example.test", + "id": 26224, + "date": "2020-10-09 00:00:00", + "ts": 1604933619, + "message-id": "201798300811.5787683@relay.example.test", + "ts_event": 1604933654, + "subject": "My first Transactional", + "X-Mailin-custom": "some_custom_header", + "sending_ip": "192.0.2.1", + "template_id": 22, + "tags": ["transac_messages"], + "reason": "server is down", + "ts_epoch": 1604933653, + "source": "automation", + "step_id": 2, + "workflow_id": 120 + }, + "Spam": { + "event": "spam", + "email": "recipient@example.test", + "id": 26224, + "date": "2020-10-09 00:00:00", + "ts": 1604933619, + "message-id": "201798300811.5787683@relay.example.test", + "ts_event": 1604933654, + "X-Mailin-custom": "some_custom_header", + "tags": ["transac_messages"], + "source": "automation", + "step_id": 2, + "workflow_id": 120 + }, + "First opening": { + "event": "unique_opened", + "email": "recipient@example.test", + "id": 26224, + "date": "2020-10-09 00:00:00", + "ts": 1604933619, + "message-id": "201798300811.5787683@relay.example.test", + "ts_event": 1604933654, + "subject": "My first Transactional", + "X-Mailin-custom": "some_custom_header", + "sending_ip": "192.0.2.1", + "template_id": 22, + "tags": ["transac_messages"], + "user_agent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)", + "device_used": "DESKTOP", + "mirror_link": "https://app-smtp.brevo.com/log/preview/1a2000f4-4e33-23aa-ab68-900dxxx9152c", + "contact_id": 8, + "ts_epoch": 1604933623, + "source": "automation", + "step_id": 2, + "workflow_id": 120 + }, + "Opened": { + "event": "opened", + "email": "recipient@example.test", + "id": 26224, + "date": "2020-10-09 00:00:00", + "ts": 1604933619, + "message-id": "201798300811.5787683@relay.example.test", + "ts_event": 1604933654, + "subject": "My first Transactional", + "X-Mailin-custom": "some_custom_header", + "sending_ip": "192.0.2.1", + "template_id": 22, + "user_agent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)", + "device_used": "DESKTOP", + "mirror_link": "https://app-smtp.brevo.com/log/preview/1a2000f4-4e33-23aa-ab68-900dxxx9152c", + "contact_id": 8, + "tags": ["transac_messages"], + "ts_epoch": 1604933623, + "source": "automation", + "step_id": 2, + "workflow_id": 120 + }, + "Invalid email": { + "event": "invalid_email", + "email": "recipient@example.test", + "id": 26224, + "date": "2020-10-09 00:00:00", + "ts": 1604933619, + "message-id": "201798300811.5787683@relay.example.test", + "ts_event": 1604933654, + "subject": "My first Transactional", + "X-Mailin-custom": "some_custom_header", + "template_id": 22, + "tags": ["transac_messages"], + "ts_epoch": 1604933623, + "source": "automation", + "step_id": 2, + "workflow_id": 120 + }, + "Blocked": { + "event": "blocked", + "email": "recipient@example.test", + "id": 26224, + "date": "2020-10-09 00:00:00", + "ts": 1604933619, + "message-id": "201798300811.5787683@relay.example.test", + "ts_event": 1604933654, + "subject": "My first Transactional", + "X-Mailin-custom": "some_custom_header", + "template_id": 22, + "tags": ["transac_messages"], + "ts_epoch": 1604933623, + "source": "automation", + "step_id": 2, + "workflow_id": 120 + }, + "Error": { + "event": "invalid_email", + "email": "recipient@example.test", + "id": 26224, + "date": "2020-10-09 00:00:00", + "ts": 1604933619, + "message-id": "201798300811.5787683@relay.example.test", + "ts_event": 1604933654, + "subject": "My first Transactional", + "X-Mailin-custom": "some_custom_header", + "template_id": 22, + "tags": ["transac_messages"], + "ts_epoch": 1604933623, + "source": "automation", + "step_id": 2, + "workflow_id": 120 + }, + "Unsubscribed": { + "event": "unsubscribed", + "email": "recipient@example.test", + "id": 26224, + "date": "2020-10-09 00:00:00", + "ts": 1604933619, + "message-id": "201798300811.5787683@relay.example.test", + "ts_event": 1604933654, + "subject": "My first Transactional", + "X-Mailin-custom": "some_custom_header", + "template_id": 22, + "tag": "[\"transactionalTag\"]", + "user_agent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)", + "device_used": "MOBILE", + "mirror_link": "https://app-smtp.brevo.com/log/preview/1a2000f4-4e33-23aa-ab68-900dxxx9152c", + "contact_id": 8, + "ts_epoch": 1604933623, + "sending_ip": "192.0.2.1", + "source": "automation", + "step_id": 2, + "workflow_id": 120 + }, + "Proxy open": { + "event": "proxy_open", + "email": "recipient@example.test", + "id": 1, + "date": "2020-10-09 00:00:00", + "message-id": "201798300811.5787683@relay.example.test", + "subject": "My first Transactional", + "tag": "[\"transactionalTag\"]", + "sending_ip": "192.0.2.1", + "ts_epoch": 1534486682000, + "user_agent": "Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)", + "device_used": "DESKTOP", + "mirror_link": "https://app-smtp.brevo.com/log/preview/1a2000f4-4e33-23aa-ab68-900dxxx9152c", + "contact_id": 8, + "template_id": 1, + "source": "automation", + "step_id": 2, + "workflow_id": 120 + }, + "Unique proxy open": { + "id": 25290, + "email": "", + "message-id": "an#2705147202202651768", + "date": "2024-08-22 16:03:29", + "tags": ["this_tag", "tag_thos"], + "tag": "[\"this_tag\", \"tag_thos\"]", + "event": "unique_proxy_open", + "subject": "this is required subject", + "sending ip": "::", + "ts": 1724322809, + "template_id": 660, + "ts_epoch": 1724322809710, + "ts_event": 1724322809, + "link": "", + "sender_email": "sender@example.test", + "mirror_link": "https://app-smtp.brevo.com/log/preview/1a2000f4-4e33-23aa-ab68-900dxxx9152c", + "user_agent": "Mozilla/5.0", + "device_used": "DESKTOP", + "contact_id": 4816445214646337536, + "source": "automation", + "step_id": 2, + "workflow_id": 120 + } +} diff --git a/tests/helpers/fake-brevo.js b/tests/helpers/fake-brevo.js new file mode 100644 index 0000000..97eabcc --- /dev/null +++ b/tests/helpers/fake-brevo.js @@ -0,0 +1,208 @@ +'use strict'; + +/** + * Fake Brevo API server for integration tests, plus a fetch redirect that + * sends requests for https://api.brevo.com to it and blocks every other host. + * + * Implements the documented operations Magic Mail calls (pinned OpenAPI: + * tests/fixtures/openapi/brevo-email.json and brevo-account.json): + * - POST /v3/smtp/email -> 201 { messageId } + * - GET /v3/smtp/templates?limit&offset&sort -> { count, templates } + * - GET /v3/account -> account object + * + * Every request the plugin sends and every success response this fake + * returns is checked against the pinned spec; violations are collected in + * `state.violations`, so a test can assert that there are none. Forced + * failures (`state.failures`) answer with a Brevo-style `{ code, message }` + * body that contains a synthetic address, to prove bodies never leak. + * Synthetic data only. + */ + +const http = require('node:http'); +const { OpenApiContract } = require('./openapi-contract'); + +const BREVO_HOST = 'api.brevo.com'; +const emailContract = new OpenApiContract('brevo-email'); +const accountContract = new OpenApiContract('brevo-account'); + +/** @returns {object} Empty fake state */ +function createBrevoState() { + return { + requests: [], + violations: [], + failures: [], + templates: [], + account: { + organization_id: 'org-synthetic', + user_id: 1, + enterprise: false, + companyName: 'Synthetic Company', + email: 'owner@example.test', + firstName: 'Synthetic', + lastName: 'Owner', + address: { city: 'Town', country: 'Nowhere', street: '1 Example Street', zipCode: '00000' }, + plan: [{ type: 'free', creditsType: 'sendLimit', credits: '300' }], + relay: { + enabled: true, + data: { userName: 'owner@example.test', relay: 'smtp-relay.example.test', port: 587 }, + }, + }, + nextMessage: 1, + }; +} + +/** + * Validates and records one request; returns the matching contract. + * + * @param {object} state + * @param {object} entry + * @returns {OpenApiContract} + */ +function check(state, entry) { + const contract = entry.path === '/v3/account' ? accountContract : emailContract; + const url = `https://${BREVO_HOST}${entry.path}${entry.search}`; + const errors = contract.checkRequest({ method: entry.method, url, json: entry.json }); + if (entry.apiKey !== 'present') errors.push('api-key header missing'); + if (entry.authorization) errors.push('unexpected Authorization header'); + for (const error of errors) state.violations.push(`${entry.method} ${entry.path}: ${error}`); + return contract; +} + +/** + * Starts the fake server. + * + * @param {object} state - From createBrevoState() + * @returns {Promise<{port: number, close: () => Promise}>} + */ +async function startFakeBrevo(state) { + const server = http.createServer(async (req, res) => { + const chunks = []; + for await (const chunk of req) chunks.push(chunk); + const raw = Buffer.concat(chunks).toString('utf8'); + const url = new URL(req.url, `https://${BREVO_HOST}`); + const entry = { + method: req.method, + path: url.pathname, + search: url.search, + query: Object.fromEntries(url.searchParams), + apiKey: req.headers['api-key'] ? 'present' : 'missing', + apiKeyValue: req.headers['api-key'], + authorization: req.headers.authorization || null, + json: raw ? JSON.parse(raw) : undefined, + }; + state.requests.push(entry); + const contract = check(state, entry); + + const reply = (status, body, headers = {}) => { + if (status < 300) { + for (const error of contract.checkResponse({ + method: entry.method, + url: `https://${BREVO_HOST}${entry.path}`, + status, + json: body, + })) { + state.violations.push(`response ${entry.method} ${entry.path}: ${error}`); + } + } + res.writeHead(status, { 'content-type': 'application/json', ...headers }); + res.end(body === undefined ? '' : JSON.stringify(body)); + }; + + const forced = state.failures.find( + (f) => f.times > 0 && f.method === req.method && entry.path.startsWith(f.pathPrefix) + ); + if (forced) { + forced.times -= 1; + return reply( + forced.status, + forced.body || { + code: 'invalid_parameter', + message: 'synthetic failure for leak@example.test', + }, + forced.headers || {} + ); + } + + if (req.method === 'POST' && entry.path === '/v3/smtp/email') { + const id = state.nextMessage; + state.nextMessage += 1; + return reply(201, { messageId: `<202611181200.${id}@smtp-relay.mailin.fr>` }); + } + if (req.method === 'GET' && entry.path === '/v3/smtp/templates') { + const limit = Number(entry.query.limit ?? 50); + const offset = Number(entry.query.offset ?? 0); + const sorted = [...state.templates].sort((a, b) => + entry.query.sort === 'desc' ? b.id - a.id : a.id - b.id + ); + return reply(200, { + count: sorted.length, + templates: sorted.slice(offset, offset + limit), + }); + } + if (req.method === 'GET' && entry.path === '/v3/account') { + return reply(200, state.account); + } + return reply(404, { code: 'document_not_found', message: 'not found' }); + }); + await new Promise((resolve) => server.listen(0, '127.0.0.1', resolve)); + return { + port: server.address().port, + close: () => new Promise((resolve) => server.close(resolve)), + }; +} + +/** + * Redirects fetch() for api.brevo.com to the fake server; every other host + * is blocked. + * + * @param {number} port + * @returns {() => void} restore + */ +function redirectBrevoFetch(port) { + const original = global.fetch; + global.fetch = (input, init = {}) => { + const url = new URL(typeof input === 'string' ? input : input.url); + if (url.hostname !== BREVO_HOST || url.protocol !== 'https:') { + return Promise.reject(new TypeError(`blocked host ${url.hostname}`)); + } + return original(`http://127.0.0.1:${port}${url.pathname}${url.search}`, init); + }; + return () => { + global.fetch = original; + }; +} + +/** + * A template list item in the documented getSmtpTemplateOverview shape. + * + * @param {number} id + * @param {string} name + * @param {{isActive?: boolean, subject?: string, htmlContent?: string}} [options] + * @returns {object} + */ +function brevoTemplate(id, name, { isActive = true, subject, htmlContent } = {}) { + return { + id, + name, + subject: subject ?? 'Hello {{ params.name }}', + isActive, + testSent: false, + sender: { name: 'Synthetic', email: 'noreply@brevo.example.test', id: '1' }, + replyTo: 'reply@example.test', + toField: '', + tag: '', + htmlContent: + htmlContent ?? + '

    Hi {{ params.name }}

    {% if params.vip %}VIP{% endif %}', + createdAt: '2026-11-10T08:30:00.000Z', + modifiedAt: '2026-11-11T09:00:00.000Z', + }; +} + +module.exports = { + BREVO_HOST, + brevoTemplate, + createBrevoState, + redirectBrevoFetch, + startFakeBrevo, +}; diff --git a/tests/helpers/fake-ses.js b/tests/helpers/fake-ses.js new file mode 100644 index 0000000..d256576 --- /dev/null +++ b/tests/helpers/fake-ses.js @@ -0,0 +1,359 @@ +'use strict'; + +/** + * Fake Amazon SES v2 HTTP server for integration tests (127.0.0.1 only). + * + * Every request is checked like SES would: the SigV4 Authorization header is + * parsed, the credential scope must name the request's region and the `ses` + * signing name, host / x-amz-date (and content-type for bodies) must be + * signed, the date must be within 5 minutes, and the signature is recomputed + * from the received request with the known secret. Bodies and query + * parameters are validated against the vendored Smithy model. Synthetic data + * only. + * + * Also: a fetch redirect for `email..amazonaws.com` and + * `sns..amazonaws.com`, and a signer for synthetic SNS messages. + */ + +const http = require('node:http'); +const crypto = require('node:crypto'); +const { signRequest } = require('../../server/src/utils/aws-sigv4'); +const { snsStringToSign } = require('../../server/src/utils/sns-verify'); +const smithy = require('./smithy-contract'); + +const SES_HOST = /^email\.([a-z0-9-]+)\.amazonaws\.com$/; +const SNS_HOST = /^sns\.([a-z0-9-]+)\.amazonaws\.com$/; +const MODEL = smithy.loadModel(); + +/** Synthetic credentials known to the fake server (not real AWS keys). */ +const FAKE_CREDENTIALS = Object.freeze({ + accessKeyId: 'FAKEKEYIDFORTESTS001', + secretAccessKey: 'fakeSecretForMagicMailTests/0123456789abc', +}); + +/** @returns {object} Fresh fake SES state */ +function createSesState() { + return { + requests: [], + /** accessKeyId -> secret (and optional session token) */ + keys: new Map([[FAKE_CREDENTIALS.accessKeyId, { secret: FAKE_CREDENTIALS.secretAccessKey }]]), + templates: new Map(), + account: { + ProductionAccessEnabled: false, + SendingEnabled: true, + SendQuota: { Max24HourSend: 200, MaxSendRate: 1, SentLast24Hours: 3 }, + EnforcementStatus: 'HEALTHY', + DedicatedIpAutoWarmupEnabled: false, + }, + /** Queue of forced failures: {status, type, message, viaHeader?, path?} */ + failures: [], + configurationSets: new Set(['magicmail-events']), + messageCounter: 0, + }; +} + +/** @param {object} state @param {string} pathPrefix @returns {object|null} */ +function takeFailure(state, path) { + const index = state.failures.findIndex((f) => !f.path || path.startsWith(f.path)); + return index === -1 ? null : state.failures.splice(index, 1)[0]; +} + +/** + * Sends an AWS-style JSON error. + * + * @param {http.ServerResponse} res + * @param {number} status + * @param {string} type + * @param {string} message + * @param {boolean} [viaHeader=true] - x-amzn-ErrorType header, else body `__type` + */ +function awsError(res, status, type, message, viaHeader = true) { + const headers = { 'content-type': 'application/json' }; + if (viaHeader) + headers['x-amzn-errortype'] = + `${type}:http://internal.amazon.com/coral/com.amazon.coral.service/`; + res.writeHead(status, headers); + res.end(JSON.stringify(viaHeader ? { message } : { __type: type, message })); +} + +/** + * Verifies the SigV4 signature of a received request. + * + * @param {object} state + * @param {{method: string, path: string, query: string, headers: object, body: string, host: string}} req + * @returns {{ok: true}|{ok: false, type: string, message: string}} + */ +function verifySignature(state, req) { + const auth = req.headers.authorization || ''; + const match = + /^AWS4-HMAC-SHA256 Credential=([^/]+)\/(\d{8})\/([a-z0-9-]+)\/([a-z0-9]+)\/aws4_request, SignedHeaders=([a-z0-9;-]+), Signature=([0-9a-f]{64})$/.exec( + auth + ); + if (!match) return { ok: false, type: 'IncompleteSignature', message: 'bad auth header' }; + const [, keyId, day, region, service, signedHeaders, signature] = match; + const key = state.keys.get(keyId); + if (!key) { + return { + ok: false, + type: 'UnrecognizedClientException', + message: 'The security token included in the request is invalid.', + }; + } + const hostRegion = SES_HOST.exec(req.host)?.[1]; + if (region !== hostRegion || service !== 'ses') { + return { + ok: false, + type: 'InvalidSignatureException', + message: 'Credential should be scoped to a valid region.', + }; + } + const signed = signedHeaders.split(';'); + const required = ['host', 'x-amz-date', ...(req.body ? ['content-type'] : [])]; + if (key.token) required.push('x-amz-security-token'); + for (const name of required) { + if (!signed.includes(name)) { + return { ok: false, type: 'IncompleteSignature', message: `${name} not signed` }; + } + } + const amzDate = req.headers['x-amz-date'] || ''; + const when = Date.parse( + amzDate.replace(/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2})Z$/, '$1-$2-$3T$4:$5:$6Z') + ); + if ( + !Number.isFinite(when) || + Math.abs(Date.now() - when) > 5 * 60_000 || + amzDate.slice(0, 8) !== day + ) { + return { + ok: false, + type: 'InvalidSignatureException', + message: 'Signature expired: is now earlier than', + }; + } + if (key.token && req.headers['x-amz-security-token'] !== key.token) { + return { ok: false, type: 'UnrecognizedClientException', message: 'token mismatch' }; + } + const headers = signed + .filter((name) => name !== 'x-amz-date' && name !== 'x-amz-security-token') + .map((name) => [name, name === 'host' ? req.host : req.headers[name]]); + const recomputed = signRequest( + { method: req.method, path: req.path, query: req.query, headers, body: req.body }, + { + credentials: { + accessKeyId: keyId, + secretAccessKey: key.secret, + ...(key.token ? { sessionToken: key.token } : {}), + }, + region, + service, + date: new Date(when), + } + ); + if (recomputed.signature !== signature) { + return { + ok: false, + type: 'InvalidSignatureException', + message: 'The request signature we calculated does not match the signature you provided.', + }; + } + return { ok: true }; +} + +/** @param {string} name @returns {object|null} */ +const templateOf = (state, name) => state.templates.get(name) || null; + +/** + * Starts the fake server. + * + * @param {object} state + * @returns {Promise<{port: number, close: () => Promise}>} + */ +async function startFakeSes(state) { + const server = http.createServer((req, res) => { + const chunks = []; + req.on('data', (chunk) => chunks.push(chunk)); + req.on('end', () => { + const url = new URL(req.url, 'http://127.0.0.1'); + const body = Buffer.concat(chunks).toString('utf8'); + const host = req.headers['x-original-host']; + const record = { + host, + method: req.method, + path: url.pathname, + query: url.searchParams, + rawQuery: url.search.slice(1), + headers: { ...req.headers }, + json: body ? JSON.parse(body) : undefined, + bodyBytes: Buffer.byteLength(body), + contractErrors: [], + }; + state.requests.push(record); + + const signature = verifySignature(state, { + method: req.method, + path: url.pathname, + query: record.rawQuery, + headers: req.headers, + body, + host, + }); + record.signatureOk = signature.ok; + if (!signature.ok) return awsError(res, 403, signature.type, signature.message); + + const failure = takeFailure(state, url.pathname); + if (failure) { + return awsError( + res, + failure.status, + failure.type, + failure.message || 'forced', + failure.viaHeader !== false + ); + } + + const json = (status, value) => { + res.writeHead(status, { 'content-type': 'application/json' }); + res.end(JSON.stringify(value)); + }; + + if (req.method === 'POST' && url.pathname === '/v2/email/outbound-emails') { + record.contractErrors = smithy.validateHttpRequest(MODEL, 'SendEmail', { + method: req.method, + path: url.pathname, + query: url.searchParams, + json: record.json, + }); + if (record.contractErrors.length > 0) { + return awsError(res, 400, 'BadRequestException', 'invalid request'); + } + const template = record.json.Content.Template; + if (template && !templateOf(state, template.TemplateName)) { + return awsError(res, 404, 'NotFoundException', 'Template does not exist'); + } + const set = record.json.ConfigurationSetName; + if (set && !state.configurationSets.has(set)) { + return awsError(res, 404, 'NotFoundException', 'Configuration set does not exist'); + } + state.messageCounter += 1; + return json(200, { + MessageId: `0100019a${String(state.messageCounter).padStart(8, '0')}-fake-000000`, + }); + } + if (req.method === 'GET' && url.pathname === '/v2/email/account') { + record.contractErrors = smithy.validateHttpRequest(MODEL, 'GetAccount', { + method: req.method, + path: url.pathname, + query: url.searchParams, + }); + return json(200, state.account); + } + if (req.method === 'GET' && url.pathname === '/v2/email/templates') { + record.contractErrors = smithy.validateHttpRequest(MODEL, 'ListEmailTemplates', { + method: req.method, + path: url.pathname, + query: url.searchParams, + }); + const names = [...state.templates.keys()].sort(); + const size = Number(url.searchParams.get('PageSize') || 10); + const start = Number( + Buffer.from(url.searchParams.get('NextToken') || 'MA==', 'base64').toString('utf8') + ); + const page = names.slice(start, start + size); + const next = + start + size < names.length + ? Buffer.from(String(start + size)).toString('base64') + : undefined; + return json(200, { + TemplatesMetadata: page.map((name) => ({ + TemplateName: name, + CreatedTimestamp: state.templates.get(name).CreatedTimestamp, + })), + ...(next ? { NextToken: next } : {}), + }); + } + const detail = /^\/v2\/email\/templates\/([^/]+)$/.exec(url.pathname); + if (req.method === 'GET' && detail) { + record.contractErrors = smithy.validateHttpRequest(MODEL, 'GetEmailTemplate', { + method: req.method, + path: url.pathname, + query: url.searchParams, + }); + const name = decodeURIComponent(detail[1]); + const template = templateOf(state, name); + if (!template) return awsError(res, 404, 'NotFoundException', 'Template does not exist'); + return json(200, { + TemplateName: name, + TemplateContent: { Subject: template.Subject, Html: template.Html, Text: template.Text }, + }); + } + return awsError(res, 404, 'UnknownOperationException', 'unknown'); + }); + }); + await new Promise((resolve) => server.listen(0, '127.0.0.1', resolve)); + return { + port: server.address().port, + close: () => new Promise((resolve) => server.close(resolve)), + }; +} + +/** + * Redirects fetch for SES hosts to the fake server and answers SNS hosts + * with `snsRoutes[url]` (a function returning a Response). Every other host + * is refused, so nothing leaves the machine. + * + * @param {number} port + * @param {{snsRoutes?: Map, snsCalls?: string[]}} [options] + * @returns {() => void} restore + */ +function redirectAwsFetch(port, { snsRoutes = new Map(), snsCalls = [] } = {}) { + const original = global.fetch; + global.fetch = async (input, init = {}) => { + const url = new URL(typeof input === 'string' ? input : input.url); + if (SES_HOST.test(url.hostname) && url.protocol === 'https:') { + const headers = new Headers(init.headers || {}); + headers.set('x-original-host', url.hostname); + return original(`http://127.0.0.1:${port}${url.pathname}${url.search}`, { + ...init, + headers, + }); + } + if (SNS_HOST.test(url.hostname)) { + snsCalls.push(url.href); + const route = snsRoutes.get(url.href); + if (route) return route(url, init); + return new Response('not found', { status: 404 }); + } + throw new TypeError(`blocked host ${url.hostname}`); + }; + return () => { + global.fetch = original; + }; +} + +/** + * Signs a synthetic SNS message like SNS does. + * + * @param {object} message - SNS fields (Type, MessageId, ...) + * @param {crypto.KeyObject} privateKey + * @param {'1'|'2'} [version='2'] + * @returns {object} The message with SignatureVersion and Signature set + */ +function signSnsMessage(message, privateKey, version = '2') { + const out = { ...message, SignatureVersion: version }; + out.Signature = crypto + .sign( + version === '1' ? 'sha1' : 'sha256', + Buffer.from(snsStringToSign(out), 'utf8'), + privateKey + ) + .toString('base64'); + return out; +} + +module.exports = { + FAKE_CREDENTIALS, + createSesState, + redirectAwsFetch, + signSnsMessage, + startFakeSes, +}; diff --git a/tests/helpers/live-env.js b/tests/helpers/live-env.js index 0961544..bf0028a 100644 --- a/tests/helpers/live-env.js +++ b/tests/helpers/live-env.js @@ -4,8 +4,8 @@ // in tests/live/. Values are only kept in memory and never printed: every // message built here names variables, never their values. // -// LIVE_PROVIDERS picks the providers a run covers: `sendgrid`, `mailgun` or -// `sendgrid,mailgun`. It is read from the process environment first, then +// LIVE_PROVIDERS picks the providers a run covers: a comma-separated list of +// `sendgrid`, `mailgun`, `brevo` and `ses`. It is read from the process environment first, then // from the credentials file. Without it, every provider whose required // variables are complete is selected; when none is complete, all providers // are selected so the missing variables are reported. @@ -16,6 +16,8 @@ const path = require('node:path'); const ENV_FILE = path.join(os.homedir(), '.config', 'magic-mail-live', '.env'); const PROVIDERS = ['sendgrid', 'mailgun']; +/** Every provider name LIVE_PROVIDERS may contain (Brevo and SES have their own suites). */ +const KNOWN_PROVIDERS = ['sendgrid', 'mailgun', 'brevo', 'ses']; const ALLOWED_HOSTS = new Set([ 'api.sendgrid.com', 'api.eu.sendgrid.com', @@ -66,9 +68,9 @@ function loadLiveConfig(requiredByProvider) { .split(',') .map((name) => name.trim().toLowerCase()) .filter(Boolean); - const unknown = names.filter((name) => !PROVIDERS.includes(name)); + const unknown = names.filter((name) => !KNOWN_PROVIDERS.includes(name)); if (unknown.length > 0) { - selectionError = `LIVE_PROVIDERS has unknown provider(s) ${unknown.join(', ')}; use sendgrid, mailgun or sendgrid,mailgun`; + selectionError = `LIVE_PROVIDERS has unknown provider(s) ${unknown.join(', ')}; use a comma-separated list of ${KNOWN_PROVIDERS.join(', ')}`; } selected = PROVIDERS.filter((provider) => names.includes(provider)); } else { @@ -165,9 +167,32 @@ function installLiveFetch() { }; } +/** + * Why a single-provider suite (Brevo, Amazon SES) is not selected by + * LIVE_PROVIDERS, or null when it runs. Without LIVE_PROVIDERS every suite + * whose variables are complete runs. + * + * @param {string} provider - 'brevo' or 'ses' + * @param {Record|null} env - from readLiveEnv() + * @returns {string|null} + */ +function providerNotSelected(provider, env) { + const raw = process.env.LIVE_PROVIDERS ?? (env ? env.LIVE_PROVIDERS : undefined); + if (raw === undefined || raw.trim() === '') return null; + const names = raw + .split(',') + .map((name) => name.trim().toLowerCase()) + .filter(Boolean); + return names.includes(provider) + ? null + : `${provider} not selected (LIVE_PROVIDERS=${names.join(',')})`; +} + module.exports = { ENV_FILE, + KNOWN_PROVIDERS, PROVIDERS, + providerNotSelected, ALLOWED_HOSTS, readLiveEnv, loadLiveConfig, diff --git a/tests/helpers/openapi-contract.js b/tests/helpers/openapi-contract.js index bb4876f..640a9d9 100644 --- a/tests/helpers/openapi-contract.js +++ b/tests/helpers/openapi-contract.js @@ -103,6 +103,15 @@ class OpenApiContract { this.strict.addSchema(this.spec, 'spec'); this.coercing.addSchema(this.spec, 'spec'); this.servers = (this.spec.servers || []).map((server) => new URL(server.url).host); + // Server URLs with a path (Brevo: https://api.brevo.com/v3) prefix every + // documented path; SendGrid and Mailgun servers have none. + this.basePaths = [ + ...new Set( + (this.spec.servers || []) + .map((server) => new URL(server.url).pathname.replace(/\/+$/, '')) + .filter(Boolean) + ), + ]; } /** @@ -113,10 +122,16 @@ class OpenApiContract { * @returns {{template: string, op: object, pathItem: object}|null} */ findOperation(method, url) { + const candidates = [url.pathname]; + for (const base of this.basePaths || []) { + if (url.pathname.startsWith(`${base}/`)) candidates.push(url.pathname.slice(base.length)); + } for (const [template, pathItem] of Object.entries(this.spec.paths)) { const pattern = new RegExp(`^${template.replace(/\{[^}]+\}/g, '[^/]+')}$`); const op = pathItem[method.toLowerCase()]; - if (op && pattern.test(url.pathname)) return { template, op, pathItem }; + if (op && candidates.some((candidate) => pattern.test(candidate))) { + return { template, op, pathItem }; + } } return null; } diff --git a/tests/helpers/provider-send-harness.js b/tests/helpers/provider-send-harness.js index c4b2aaa..486a9db 100644 --- a/tests/helpers/provider-send-harness.js +++ b/tests/helpers/provider-send-harness.js @@ -1,7 +1,7 @@ 'use strict'; /** - * Test harness for the SendGrid and Mailgun send paths: a minimal fake + * Test harness for the SendGrid, Mailgun and Brevo send paths: a minimal fake * Strapi with the real email-router service, in-memory accounts, a * deterministic delivery log and tracking, and a recording fake `fetch`. * Synthetic data only; nothing leaves the process. @@ -24,19 +24,32 @@ function withEncryptionKey() { }; } +/** Synthetic Brevo webhook token used by accountFor('brevo'). */ +const BREVO_WEBHOOK_TOKEN = 'brevo-webhook-token-synthetic-0123456789abcdef'; + +/** Synthetic Amazon SES config (fake key pair, not real AWS credentials). */ +const SES_TEST_CONFIG = Object.freeze({ + region: 'eu-west-1', + credentialSource: 'keys', + accessKeyId: 'FAKEKEYIDFORTESTS001', + secretAccessKey: 'fakeSecretForMagicMailTests/0123456789abc', +}); + /** - * Builds a SendGrid or Mailgun account with an encrypted config. + * Builds a SendGrid, Mailgun, Brevo or Amazon SES account with an encrypted config. * - * @param {'sendgrid'|'mailgun'} provider + * @param {'sendgrid'|'mailgun'|'brevo'|'ses'} provider * @param {object} [config] - Extra plain config (region, domain, ...) * @returns {object} */ function accountFor(provider, config = {}) { const { encryptCredentials } = require('../../server/src/utils/encryption'); - const plain = - provider === 'sendgrid' - ? { apiKey: 'SG.fake', ...config } - : { apiKey: 'key-fake', domain: 'mg.example.test', ...config }; + let plain; + if (provider === 'sendgrid') plain = { apiKey: 'SG.fake', ...config }; + else if (provider === 'brevo') { + plain = { apiKey: 'xkeysib-fake-synthetic-key', webhookToken: BREVO_WEBHOOK_TOKEN, ...config }; + } else if (provider === 'ses') plain = { ...SES_TEST_CONFIG, ...config }; + else plain = { apiKey: 'key-fake', domain: 'mg.example.test', ...config }; return { documentId: `acc${provider}`, name: `test-${provider}`, @@ -150,6 +163,9 @@ function fakeFetch(respond) { } calls.push(call); if (respond) return respond(call); + if (call.url.startsWith('https://api.brevo.com/')) { + return jsonResponse(201, { messageId: '<202611181200.12345678901@smtp-relay.mailin.fr>' }); + } return call.url.includes('mailgun') ? jsonResponse(200, { id: '<20261118.abc@mg.example.test>', message: 'Queued. Thank you.' }) : jsonResponse(202, undefined, { 'x-message-id': 'sg-message-1' }); @@ -182,7 +198,9 @@ const PIXEL_PNG = 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII='; module.exports = { + BREVO_WEBHOOK_TOKEN, PIXEL_PNG, + SES_TEST_CONFIG, accountFor, createHarness, fakeFetch, diff --git a/tests/helpers/smithy-contract.js b/tests/helpers/smithy-contract.js new file mode 100644 index 0000000..a326235 --- /dev/null +++ b/tests/helpers/smithy-contract.js @@ -0,0 +1,287 @@ +'use strict'; + +/** + * Small validator for restJson1 request and response bodies against the + * vendored official Smithy model of Amazon SES v2 + * (tests/fixtures/smithy/sesv2.json, extracted by vendor-aws-fixtures.js). + * + * Checks: structure members (required, undeclared), member names + * (`smithy.api#jsonName` when present), simple types, blobs as base64 + * strings, epoch-second timestamps (restJson1 default), enums, `length` + * (strings in Unicode code points, lists and maps in entries), `range` and + * `pattern` traits, lists and maps. Members bound to the URI, query or + * headers are not part of the body; `httpInput` validates them separately. + * + * Smithy references: https://smithy.io/2.0/spec/constraint-traits.html, + * https://smithy.io/2.0/aws/protocols/aws-restjson1-protocol.html + */ + +const fs = require('node:fs'); +const path = require('node:path'); + +const NS = 'com.amazonaws.sesv2#'; +const PRELUDE = { + 'smithy.api#String': { type: 'string' }, + 'smithy.api#Integer': { type: 'integer' }, + 'smithy.api#Boolean': { type: 'boolean' }, + 'smithy.api#Unit': { type: 'structure', members: {} }, +}; +const HTTP_BINDINGS = [ + 'smithy.api#httpLabel', + 'smithy.api#httpQuery', + 'smithy.api#httpHeader', + 'smithy.api#httpQueryParams', + 'smithy.api#httpPrefixHeaders', +]; + +/** @returns {object} The vendored model subset */ +function loadModel() { + return JSON.parse( + fs.readFileSync(path.join(__dirname, '..', 'fixtures', 'smithy', 'sesv2.json'), 'utf8') + ); +} + +/** + * @param {object} model + * @param {string} id - Shape id, with or without namespace + * @returns {object} + */ +function shapeOf(model, id) { + const full = id.includes('#') ? id : `${NS}${id}`; + const shape = model.shapes[full] || PRELUDE[full]; + if (!shape) throw new Error(`unknown shape ${full}`); + return shape; +} + +const isBound = (traits = {}) => HTTP_BINDINGS.some((name) => name in traits); +const codePoints = (value) => [...value].length; +const BASE64 = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/; + +/** + * Validates `value` against shape `id`. + * + * @param {object} model + * @param {string} id + * @param {unknown} value + * @param {{at?: string, bodyOnly?: boolean}} [options] - bodyOnly skips HTTP-bound members + * @returns {string[]} Problems ("path: message"); empty when valid + */ +function validate(model, id, value, { at = '$', bodyOnly = true } = {}) { + const errors = []; + const check = (shapeId, v, where, memberTraits = {}) => { + const shape = shapeOf(model, shapeId); + const traits = { ...(shape.traits || {}), ...memberTraits }; + const fail = (message) => errors.push(`${where}: ${message}`); + switch (shape.type) { + case 'structure': { + if (!v || typeof v !== 'object' || Array.isArray(v)) return fail('expected object'); + const members = shape.members || {}; + const byJsonName = new Map(); + for (const [name, member] of Object.entries(members)) { + if (bodyOnly && isBound(member.traits)) continue; + byJsonName.set(member.traits?.['smithy.api#jsonName'] || name, [name, member]); + } + for (const key of Object.keys(v)) { + if (!byJsonName.has(key)) fail(`undeclared member "${key}"`); + } + for (const [jsonName, [, member]] of byJsonName) { + const present = v[jsonName] !== undefined && v[jsonName] !== null; + if (!present) { + if (member.traits && 'smithy.api#required' in member.traits) { + fail(`missing required member "${jsonName}"`); + } + continue; + } + check(member.target, v[jsonName], `${where}.${jsonName}`, member.traits || {}); + } + return undefined; + } + case 'union': { + if (!v || typeof v !== 'object' || Array.isArray(v)) return fail('expected object'); + const keys = Object.keys(v); + if (keys.length !== 1) return fail('a union needs exactly one member'); + const member = shape.members?.[keys[0]]; + if (!member) return fail(`undeclared union member "${keys[0]}"`); + return check(member.target, v[keys[0]], `${where}.${keys[0]}`, member.traits || {}); + } + case 'list': + case 'set': { + if (!Array.isArray(v)) return fail('expected array'); + lengthCheck(traits, v.length, fail); + v.forEach((item, i) => check(shape.member.target, item, `${where}[${i}]`)); + return undefined; + } + case 'map': { + if (!v || typeof v !== 'object' || Array.isArray(v)) return fail('expected object'); + lengthCheck(traits, Object.keys(v).length, fail); + for (const [key, item] of Object.entries(v)) { + check(shape.key.target, key, `${where}{key}`); + check(shape.value.target, item, `${where}.${key}`); + } + return undefined; + } + case 'string': { + if (typeof v !== 'string') return fail('expected string'); + lengthCheck(traits, codePoints(v), fail); + const pattern = traits['smithy.api#pattern']; + if (pattern && !new RegExp(pattern, 'u').test(v)) fail(`does not match ${pattern}`); + const legacyEnum = traits['smithy.api#enum']; + if (Array.isArray(legacyEnum) && !legacyEnum.some((entry) => entry.value === v)) { + fail(`not an enum value: ${v}`); + } + return undefined; + } + case 'enum': { + const values = Object.entries(shape.members || {}).map( + ([name, member]) => member.traits?.['smithy.api#enumValue'] ?? name + ); + if (typeof v !== 'string' || !values.includes(v)) fail(`not one of ${values.join('|')}`); + return undefined; + } + case 'blob': { + if (typeof v !== 'string' || !BASE64.test(v)) fail('expected base64 string'); + return undefined; + } + case 'boolean': + if (typeof v !== 'boolean') fail('expected boolean'); + return undefined; + case 'byte': + case 'short': + case 'integer': + case 'long': + if (!Number.isInteger(v)) return fail('expected integer'); + return rangeCheck(traits, v, fail); + case 'float': + case 'double': + if (typeof v !== 'number' || !Number.isFinite(v)) return fail('expected number'); + return rangeCheck(traits, v, fail); + case 'timestamp': { + const format = traits['smithy.api#timestampFormat'] || 'epoch-seconds'; + if (format === 'epoch-seconds' && (typeof v !== 'number' || !Number.isFinite(v))) { + fail('expected epoch seconds'); + } else if ( + format === 'date-time' && + (typeof v !== 'string' || Number.isNaN(Date.parse(v))) + ) { + fail('expected date-time string'); + } + return undefined; + } + default: + return fail(`unsupported shape type ${shape.type}`); + } + }; + check(id, value, at); + return errors; +} + +function lengthCheck(traits, size, fail) { + const length = traits['smithy.api#length']; + if (!length) return; + if (length.min !== undefined && size < length.min) fail(`length ${size} < ${length.min}`); + if (length.max !== undefined && size > length.max) fail(`length ${size} > ${length.max}`); +} + +function rangeCheck(traits, value, fail) { + const range = traits['smithy.api#range']; + if (!range) return undefined; + if (range.min !== undefined && value < range.min) fail(`${value} < ${range.min}`); + if (range.max !== undefined && value > range.max) fail(`${value} > ${range.max}`); + return undefined; +} + +/** + * Checks a recorded HTTP request against an operation: method, URI pattern + * (labels), declared query parameters and the JSON body. + * + * @param {object} model + * @param {string} operation - e.g. 'SendEmail' + * @param {{method: string, path: string, query?: URLSearchParams, json?: unknown}} request + * @returns {string[]} Problems; empty when valid + */ +function validateHttpRequest(model, operation, request) { + const op = shapeOf(model, operation); + const http = op.traits['smithy.api#http']; + const errors = []; + if (request.method !== http.method) errors.push(`method ${request.method} != ${http.method}`); + const input = shapeOf(model, op.input.target); + const labels = {}; + const pattern = new RegExp( + `^${http.uri.replace(/\{([^}]+)\}/g, (_, name) => { + labels[name] = true; + return `(?<${name}>[^/]+)`; + })}$` + ); + const match = pattern.exec(request.path); + if (!match) errors.push(`path ${request.path} does not match ${http.uri}`); + const query = request.query || new URLSearchParams(); + const declaredQuery = new Map(); + for (const [name, member] of Object.entries(input.members || {})) { + const queryName = member.traits?.['smithy.api#httpQuery']; + if (queryName) declaredQuery.set(queryName, [name, member]); + if (member.traits && 'smithy.api#httpLabel' in member.traits) { + const raw = match?.groups?.[name]; + if (raw === undefined) errors.push(`missing label ${name}`); + else errors.push(...validate(model, member.target, decodeURIComponent(raw), { at: name })); + } + } + for (const [key, value] of query.entries()) { + const entry = declaredQuery.get(key); + if (!entry) { + errors.push(`undeclared query parameter ${key}`); + continue; + } + const target = shapeOf(model, entry[1].target); + const typed = ['integer', 'long'].includes(target.type) ? Number(value) : value; + errors.push(...validate(model, entry[1].target, typed, { at: `?${key}` })); + } + if (request.json !== undefined) { + errors.push(...validate(model, op.input.target, request.json, { at: 'body' })); + } else if ( + Object.values(input.members || {}).some( + (member) => member.traits?.['smithy.api#required'] && !isBound(member.traits) + ) + ) { + errors.push('missing JSON body'); + } + return errors; +} + +/** + * Validates a JSON response body for an operation's output. + * + * @param {object} model + * @param {string} operation + * @param {unknown} json + * @returns {string[]} + */ +function validateOutput(model, operation, json) { + const op = shapeOf(model, operation); + return validate(model, op.output.target, json, { at: 'response' }); +} + +/** + * Validates an error shape the operation declares, and returns its HTTP + * status from `smithy.api#httpError`. + * + * @param {object} model + * @param {string} operation + * @param {string} errorName - e.g. 'MessageRejected' + * @returns {number|null} Status, or null when the operation does not declare the error + */ +function declaredErrorStatus(model, operation, errorName) { + const op = shapeOf(model, operation); + const declared = (op.errors || []).some((entry) => entry.target === `${NS}${errorName}`); + if (!declared) return null; + return shapeOf(model, errorName).traits['smithy.api#httpError'] ?? null; +} + +module.exports = { + NS, + declaredErrorStatus, + loadModel, + shapeOf, + validate, + validateHttpRequest, + validateOutput, +}; diff --git a/tests/helpers/test-certificate.js b/tests/helpers/test-certificate.js new file mode 100644 index 0000000..9ed677a --- /dev/null +++ b/tests/helpers/test-certificate.js @@ -0,0 +1,96 @@ +'use strict'; + +/** + * Self-signed X.509 v3 certificates for tests, built with a minimal DER + * encoder and node:crypto (RSA 2048, sha256WithRSAEncryption). Used to sign + * synthetic Amazon SNS messages; nothing is written to disk and no private + * key is stored in the repository. + */ + +const crypto = require('node:crypto'); + +/** @param {number} length @returns {Buffer} DER length octets */ +function derLength(length) { + if (length < 0x80) return Buffer.from([length]); + const bytes = []; + for (let value = length; value > 0; value = Math.floor(value / 256)) bytes.unshift(value & 0xff); + return Buffer.from([0x80 | bytes.length, ...bytes]); +} + +/** @param {number} tag @param {Buffer[]|Buffer} content @returns {Buffer} */ +function tlv(tag, content) { + const body = Buffer.isBuffer(content) ? content : Buffer.concat(content); + return Buffer.concat([Buffer.from([tag]), derLength(body.length), body]); +} + +/** @param {string} dotted @returns {Buffer} */ +function oid(dotted) { + const parts = dotted.split('.').map(Number); + const bytes = [40 * parts[0] + parts[1]]; + for (const part of parts.slice(2)) { + const chunk = []; + let value = part; + do { + chunk.unshift(value & 0x7f); + value = Math.floor(value / 128); + } while (value > 0); + for (let i = 0; i < chunk.length - 1; i += 1) chunk[i] |= 0x80; + bytes.push(...chunk); + } + return tlv(0x06, Buffer.from(bytes)); +} + +/** @param {Date} date @returns {Buffer} UTCTime */ +function utcTime(date) { + const iso = date.toISOString(); + const text = `${iso.slice(2, 4)}${iso.slice(5, 7)}${iso.slice(8, 10)}${iso.slice(11, 13)}${iso.slice(14, 16)}${iso.slice(17, 19)}Z`; + return tlv(0x17, Buffer.from(text, 'ascii')); +} + +/** @param {string} commonName @returns {Buffer} X.501 Name with one CN */ +function name(commonName) { + return tlv(0x30, [ + tlv(0x31, [tlv(0x30, [oid('2.5.4.3'), tlv(0x0c, Buffer.from(commonName, 'utf8'))])]), + ]); +} + +/** + * Creates an RSA key pair and a self-signed certificate. + * + * @param {{commonName?: string, notBefore?: Date, notAfter?: Date}} [options] + * @returns {{pem: string, privateKey: crypto.KeyObject, publicKey: crypto.KeyObject}} + */ +function createSelfSignedCertificate({ + commonName = 'sns.amazonaws.com', + notBefore = new Date(Date.now() - 24 * 3600_000), + notAfter = new Date(Date.now() + 365 * 24 * 3600_000), +} = {}) { + const { privateKey, publicKey } = crypto.generateKeyPairSync('rsa', { modulusLength: 2048 }); + const algorithm = tlv(0x30, [oid('1.2.840.113549.1.1.11'), Buffer.from([0x05, 0x00])]); + const tbs = tlv(0x30, [ + tlv(0xa0, [tlv(0x02, Buffer.from([0x02]))]), + tlv(0x02, Buffer.concat([Buffer.from([0x01]), crypto.randomBytes(8)])), + algorithm, + name(commonName), + tlv(0x30, [utcTime(notBefore), utcTime(notAfter)]), + name(commonName), + publicKey.export({ type: 'spki', format: 'der' }), + ]); + const signature = crypto.sign('sha256', tbs, privateKey); + const der = tlv(0x30, [ + tbs, + algorithm, + tlv(0x03, Buffer.concat([Buffer.from([0x00]), signature])), + ]); + const body = der + .toString('base64') + .match(/.{1,64}/g) + .join('\n'); + return { + pem: `-----BEGIN CERTIFICATE-----\n${body}\n-----END CERTIFICATE-----\n`, + privateKey, + publicKey, + }; +} + +module.exports = { createSelfSignedCertificate }; diff --git a/tests/helpers/vendor-aws-fixtures.js b/tests/helpers/vendor-aws-fixtures.js new file mode 100644 index 0000000..cffc37e --- /dev/null +++ b/tests/helpers/vendor-aws-fixtures.js @@ -0,0 +1,138 @@ +'use strict'; + +/** + * Builds the vendored AWS fixtures from downloaded official sources + * (development only, never at runtime). + * + * node tests/helpers/vendor-aws-fixtures.js sigv4 + * node tests/helpers/vendor-aws-fixtures.js smithy + * + * - sigv4: every case directory of awslabs/aws-c-auth + * tests/aws-signing-test-suite/v4 becomes one entry of + * tests/fixtures/aws-sigv4/v4-vectors.json; each file is kept as a string + * together with the SHA-256 of the original file, so the copy is checkable. + * - smithy: the shapes reachable from the operations Magic Mail calls + * (SendEmail, GetAccount, ListEmailTemplates, GetEmailTemplate), with their + * documentation traits removed, plus the service's protocol and signing + * traits, written to tests/fixtures/smithy/sesv2.json together with the + * SHA-256 of the full model file. + * + * @sideeffect Writes the fixture files. + */ + +const crypto = require('node:crypto'); +const fs = require('node:fs'); +const path = require('node:path'); + +const FIXTURES = path.join(__dirname, '..', 'fixtures'); +const SIGV4_FILES = [ + 'context.json', + 'request.txt', + 'header-canonical-request.txt', + 'header-string-to-sign.txt', + 'header-signature.txt', + 'header-signed-request.txt', +]; +const SES_OPERATIONS = ['SendEmail', 'GetAccount', 'ListEmailTemplates', 'GetEmailTemplate']; +const NS = 'com.amazonaws.sesv2#'; + +const sha256 = (buffer) => crypto.createHash('sha256').update(buffer).digest('hex'); + +function vendorSigv4(dir, commit) { + const cases = {}; + for (const name of fs.readdirSync(dir).sort()) { + const caseDir = path.join(dir, name); + if (!fs.statSync(caseDir).isDirectory()) continue; + const files = {}; + for (const file of SIGV4_FILES) { + const buffer = fs.readFileSync(path.join(caseDir, file)); + files[file] = { sha256: sha256(buffer), content: buffer.toString('utf8') }; + } + cases[name] = files; + } + const out = { + source: { + repository: 'https://github.com/awslabs/aws-c-auth', + path: 'tests/aws-signing-test-suite/v4', + commit, + license: 'Apache-2.0 (aws-c-auth LICENSE); AWS published SigV4 test suite', + retrieved: new Date().toISOString().slice(0, 10), + }, + cases, + }; + const target = path.join(FIXTURES, 'aws-sigv4', 'v4-vectors.json'); + fs.mkdirSync(path.dirname(target), { recursive: true }); + fs.writeFileSync(target, `${JSON.stringify(out, null, 2)}\n`); +} + +const stripDocs = (value) => + JSON.parse( + JSON.stringify(value, (key, v) => (key === 'smithy.api#documentation' ? undefined : v)) + ); + +function vendorSmithy(file, commit) { + const buffer = fs.readFileSync(file); + const model = JSON.parse(buffer.toString('utf8')); + const shapes = {}; + const pending = SES_OPERATIONS.map((op) => `${NS}${op}`); + const add = (target) => { + if (typeof target === 'string' && target.startsWith(NS) && !shapes[target]) { + pending.push(target); + } + }; + while (pending.length > 0) { + const id = pending.pop(); + if (shapes[id]) continue; + const shape = model.shapes[id]; + if (!shape) throw new Error(`missing shape ${id}`); + shapes[id] = stripDocs(shape); + add(shape.input?.target); + add(shape.output?.target); + for (const error of shape.errors || []) add(error.target); + for (const member of Object.values(shape.members || {})) add(member.target); + add(shape.member?.target); + add(shape.key?.target); + add(shape.value?.target); + } + const service = model.shapes[`${NS}SimpleEmailService_v2`]; + const sorted = Object.fromEntries( + Object.keys(shapes) + .sort() + .map((id) => [id, shapes[id]]) + ); + const out = { + 'x-magic-mail-source': { + repository: 'https://github.com/aws/api-models-aws', + path: 'models/sesv2/service/2019-09-27/sesv2-2019-09-27.json', + commit, + sha256: sha256(buffer), + license: 'Apache-2.0', + retrieved: new Date().toISOString().slice(0, 10), + note: 'Subset: shapes reachable from the operations below; documentation traits removed.', + operations: SES_OPERATIONS, + }, + smithy: model.smithy, + service: { + 'aws.api#service': service.traits['aws.api#service'], + 'aws.auth#sigv4': service.traits['aws.auth#sigv4'], + 'aws.protocols#restJson1': service.traits['aws.protocols#restJson1'], + }, + shapes: sorted, + }; + const target = path.join(FIXTURES, 'smithy', 'sesv2.json'); + fs.mkdirSync(path.dirname(target), { recursive: true }); + fs.writeFileSync(target, `${JSON.stringify(out, null, 2)}\n`); +} + +if (require.main === module) { + const [kind, source, commit] = process.argv.slice(2); + if (!kind || !source || !/^[0-9a-f]{40}$/.test(commit || '')) { + console.error('usage: vendor-aws-fixtures.js sigv4|smithy '); + process.exit(1); + } + if (kind === 'sigv4') vendorSigv4(source, commit); + else if (kind === 'smithy') vendorSmithy(source, commit); + else process.exit(1); +} + +module.exports = { vendorSigv4, vendorSmithy }; diff --git a/tests/live-env-providers.test.js b/tests/live-env-providers.test.js new file mode 100644 index 0000000..6b3ee2d --- /dev/null +++ b/tests/live-env-providers.test.js @@ -0,0 +1,45 @@ +'use strict'; + +// LIVE_PROVIDERS selects the Brevo and Amazon SES live suites too, and the +// SendGrid/Mailgun suites accept those names instead of failing the run. + +const test = require('node:test'); +const assert = require('node:assert/strict'); +const { loadLiveConfig, providerNotSelected } = require('./helpers/live-env'); + +const withEnv = (value, fn) => { + const previous = process.env.LIVE_PROVIDERS; + if (value === undefined) delete process.env.LIVE_PROVIDERS; + else process.env.LIVE_PROVIDERS = value; + try { + fn(); + } finally { + if (previous === undefined) delete process.env.LIVE_PROVIDERS; + else process.env.LIVE_PROVIDERS = previous; + } +}; + +test('Brevo and SES run unless LIVE_PROVIDERS names other providers only', () => { + withEnv(undefined, () => assert.equal(providerNotSelected('brevo', {}), null)); + withEnv('sendgrid', () => assert.match(providerNotSelected('ses', {}), /ses not selected/)); + withEnv(' Brevo , ses ', () => { + assert.equal(providerNotSelected('brevo', {}), null); + assert.equal(providerNotSelected('ses', {}), null); + }); + withEnv(undefined, () => + assert.match(providerNotSelected('brevo', { LIVE_PROVIDERS: 'mailgun' }), /not selected/) + ); +}); + +test('the SendGrid/Mailgun suites skip, not fail, when only Brevo or SES is selected', () => { + const required = { sendgrid: ['SENDGRID_API_KEY'], mailgun: ['MAILGUN_API_KEY'] }; + withEnv('brevo,ses', () => { + const config = loadLiveConfig(required); + assert.equal(config.selectionError, null); + assert.deepEqual(config.selected, []); + assert.match(config.skipReason('sendgrid'), /sendgrid not selected/); + }); + withEnv('postmark', () => { + assert.match(loadLiveConfig(required).selectionError, /unknown provider\(s\) postmark/); + }); +}); diff --git a/tests/live/brevo.live.test.js b/tests/live/brevo.live.test.js new file mode 100644 index 0000000..6a4bd4e --- /dev/null +++ b/tests/live/brevo.live.test.js @@ -0,0 +1,279 @@ +'use strict'; + +// Opt-in live suite for the Brevo adapter against the REAL Brevo API. Not +// part of `npm test`. +// +// Run: npm run test:live (or: node --test tests/live/brevo.live.test.js) +// Needs: ~/.config/magic-mail-live/.env (created by the maintainer, never +// committed). Variable NAMES (values never appear in code or logs): +// Required +// BREVO_API_KEY Brevo API key (SMTP & API > API keys) +// BREVO_FROM a verified Brevo sender address +// BREVO_TO recipient address (nothing is delivered, see below) +// Optional +// BREVO_TEMPLATE_ID numeric id of an active transactional template that +// reads {{ params.name }}; enables the template tests +// +// Nothing is delivered: this file's fetch wrapper adds the header +// `X-Sib-Sandbox: drop` to every POST /v3/smtp/email body ("No emails are +// sent to recipients, no email logs are created", Brevo sandbox mode: +// https://developers.brevo.com/docs/using-sandbox-mode). The plugin itself +// drops X-Sib-* caller headers, so production callers can not switch sandbox +// mode on; the switch exists only in this test's fetch wrapper, and every +// send request is checked for it before it leaves the process. Requests may +// only go to api.brevo.com. +// +// Note: the connection check (GET /v3/account) counts against Brevo's +// "All other endpoints" hourly limit and the template list against the +// /v3/smtp/* limit (rate-limits page), so the suite makes few calls. +// +// Secrets and addresses are never printed: values stay in memory, assertion +// messages never include them and provider bodies are not logged. Without +// the file every test is skipped with a message (CI never has it). + +const test = require('node:test'); +const assert = require('node:assert/strict'); +const fs = require('node:fs'); +const os = require('node:os'); +const path = require('node:path'); +const crypto = require('node:crypto'); + +const ENV_FILE = path.join(os.homedir(), '.config', 'magic-mail-live', '.env'); +const REQUIRED = ['BREVO_API_KEY', 'BREVO_FROM', 'BREVO_TO']; + +/** + * Reads KEY=value lines (no expansion, no export, quotes stripped). + * + * @returns {Record|null} null when the file does not exist + */ +function readLiveEnv() { + if (!fs.existsSync(ENV_FILE)) return null; + const out = {}; + for (const line of fs.readFileSync(ENV_FILE, 'utf8').split(/\r?\n/)) { + const match = /^\s*([A-Z0-9_]+)\s*=\s*(.*)\s*$/.exec(line); + if (!match || line.trim().startsWith('#')) continue; + out[match[1]] = match[2].replace(/^(['"])(.*)\1$/, '$2'); + } + return out; +} + +const env = readLiveEnv(); +const missing = env ? REQUIRED.filter((key) => !env[key]) : REQUIRED; +const notSelected = require('../helpers/live-env').providerNotSelected('brevo', env); +const skipReason = notSelected + ? `Brevo live suite skipped: ${notSelected}` + : !env + ? `Brevo live suite skipped: ${ENV_FILE} does not exist (see the variable names at the top of this file)` + : missing.length > 0 + ? `Brevo live suite skipped: missing ${missing.join(', ')} in ${ENV_FILE}` + : null; +if (skipReason) console.log(skipReason); + +const templateId = + env && /^[1-9]\d{0,15}$/.test(env.BREVO_TEMPLATE_ID || '') ? env.BREVO_TEMPLATE_ID : null; + +/** Registers a live test; skipped with the reason when credentials are missing. */ +const live = (name, fn, { needsTemplate = false } = {}) => + test( + name, + { + skip: skipReason || (needsTemplate && !templateId ? 'BREVO_TEMPLATE_ID not set' : false), + }, + fn + ); + +const results = []; +let restoreFetch; +let restoreKey; + +test.before(() => { + if (skipReason) return; + const previousKey = process.env.MAGIC_MAIL_ENCRYPTION_KEY; + process.env.MAGIC_MAIL_ENCRYPTION_KEY = crypto.randomBytes(32).toString('hex'); + restoreKey = () => { + if (previousKey === undefined) delete process.env.MAGIC_MAIL_ENCRYPTION_KEY; + else process.env.MAGIC_MAIL_ENCRYPTION_KEY = previousKey; + }; + const original = global.fetch; + global.fetch = async (input, init = {}) => { + const url = new URL(typeof input === 'string' ? input : input.url); + if (url.hostname !== 'api.brevo.com' || url.protocol !== 'https:') { + throw new TypeError('live suite: host not allowed'); + } + let body = init.body; + if (init.method === 'POST' && url.pathname === '/v3/smtp/email') { + const json = JSON.parse(body); + json.headers = { ...(json.headers || {}), 'X-Sib-Sandbox': 'drop' }; + body = JSON.stringify(json); + if (JSON.parse(body).headers['X-Sib-Sandbox'] !== 'drop') { + throw new Error('live suite: sandbox header missing, request not sent'); + } + } + const response = await original(input, { ...init, body }); + results.push({ path: url.pathname, status: response.status }); + return response; + }; + restoreFetch = () => { + global.fetch = original; + }; +}); + +test.after(() => { + if (skipReason) return; + restoreFetch(); + restoreKey(); + // Request log without secrets or addresses: path and status only. + console.log(JSON.stringify({ liveRequests: results }, null, 1)); +}); + +/** + * Harness with one live Brevo account (config encrypted in memory). + * + * @param {object} [config] - Config overrides + * @returns {{router: object, account: object, h: object}} + */ +function harness(config = {}) { + const { encryptCredentials } = require('../../server/src/utils/encryption'); + const { createHarness } = require('../helpers/provider-send-harness'); + const account = { + documentId: 'livebrevo', + name: 'live-brevo', + provider: 'brevo', + fromEmail: env.BREVO_FROM, + isActive: true, + priority: 5, + config: encryptCredentials({ apiKey: env.BREVO_API_KEY, ...config }), + }; + const { router } = createHarness([account]); + const h = require('../../server/src/services/email-router').__test__.providerSendHelpers(router); + return { router, account, h }; +} + +const brevo = () => require('../../server/src/providers/brevo'); + +live('connection check: GET /v3/account answers with non-personal details', async () => { + const result = await brevo().checkConnection({ apiKey: env.BREVO_API_KEY }); + assert.equal(result.ok, true); + assert.deepEqual(Object.keys(result.details).sort(), [ + 'enterprise', + 'plans', + 'transactionalEnabled', + ]); + const text = JSON.stringify(result); + assert.ok(!text.includes('@'), 'no address in the details'); +}); + +live( + 'plain send through the router (sandbox): Brevo accepts and returns a message id', + async () => { + const { router } = harness(); + const result = await router.send({ + to: env.BREVO_TO, + subject: 'Magic Mail live Brevo test', + text: 'Magic Mail live test. Sandbox mode: not delivered.', + html: '

    Magic Mail live test. Sandbox mode: not delivered.

    ', + }); + assert.equal(result.success, true); + assert.equal(typeof result.messageId, 'string', 'a message id was returned'); + } +); + +live('marketing send with List-Unsubscribe and custom headers is accepted (sandbox)', async () => { + const { router } = harness(); + const result = await router.send({ + to: env.BREVO_TO, + subject: 'Magic Mail live Brevo header test', + text: 'Sandbox mode: not delivered.', + type: 'marketing', + unsubscribeUrl: 'https://example.com/unsubscribe', + headers: { 'X-Campaign': 'live-test' }, + attachments: [{ filename: 'note.txt', content: 'synthetic attachment' }], + }); + assert.equal(result.success, true); +}); + +live('template list reads the account templates', async () => { + const { templates, warning } = await brevo().templates.list({ apiKey: env.BREVO_API_KEY }); + assert.ok(Array.isArray(templates)); + assert.ok(warning === null || warning === 'TRUNCATED'); + for (const template of templates) { + assert.match(template.remoteId, /^\d+$/); + assert.equal(template.scope, 'default'); + } + if (templateId) { + const found = templates.find((t) => t.remoteId === templateId); + assert.ok(found, 'BREVO_TEMPLATE_ID is in the list'); + assert.ok(found.activeVersion, 'BREVO_TEMPLATE_ID is active'); + } +}); + +live( + 'template send with params (sandbox)', + async () => { + const { account, h } = harness(); + const result = await brevo().send({ + account, + config: { apiKey: env.BREVO_API_KEY }, + emailData: { + to: env.BREVO_TO, + __providerTemplate: { + rowsByAccount: { + [account.documentId]: { + remoteId: templateId, + name: 'live', + scope: 'default', + subject: '', + }, + }, + variables: { name: 'Live Test' }, + }, + }, + h, + }); + assert.equal(typeof result.messageId, 'string'); + }, + { needsTemplate: true } +); + +live('an unknown template id is refused with a fixed error', async (t) => { + const { account, h } = harness(); + const error = await brevo() + .send({ + account, + config: { apiKey: env.BREVO_API_KEY }, + emailData: { + to: env.BREVO_TO, + __providerTemplate: { + rowsByAccount: { + [account.documentId]: { remoteId: '999999999', name: 'missing', scope: 'default' }, + }, + variables: {}, + }, + }, + h, + }) + .catch((e) => e); + if (!(error instanceof Error)) { + // Sandbox mode "only validates the API request format"; it may accept + // an id that does not exist. Reported, not hidden. + t.skip('Brevo sandbox mode accepted the unknown template id (format-only validation)'); + return; + } + assert.ok([400, 404].includes(error.status), `status ${error.status}`); + assert.match(error.message, /^Brevo API request failed: \d{3}$/); +}); + +live('a bad API key gives 401 for the connection check and the send', async () => { + const bad = `xkeysib-${crypto.randomBytes(32).toString('hex')}-invalid`; + await assert.rejects(brevo().checkConnection({ apiKey: bad }), (error) => { + assert.equal(error.status, 401); + assert.ok(['AUTH', 'BREVO_IP_NOT_AUTHORIZED'].includes(error.code)); + return true; + }); + const { router, account } = harness({ apiKey: bad }); + const error = await router + .sendViaAccount(account, { to: env.BREVO_TO, subject: 's', text: 't' }) + .catch((e) => e); + assert.equal(error.status, 401); + assert.equal(brevo().hintFor(error.status, error.code), 'BREVO_INVALID_KEY'); +}); diff --git a/tests/live/ses.live.test.js b/tests/live/ses.live.test.js new file mode 100644 index 0000000..7ba700d --- /dev/null +++ b/tests/live/ses.live.test.js @@ -0,0 +1,231 @@ +'use strict'; + +// Opt-in live suite against the REAL Amazon SES v2 API. +// +// Run: npm run test:live +// Needs: ~/.config/magic-mail-live/.env (created by the maintainer, never +// committed) with SES_REGION, SES_ACCESS_KEY_ID, SES_SECRET_ACCESS_KEY, +// SES_FROM (a verified identity in that region), and optionally +// SES_CONFIGURATION_SET and SES_TEMPLATE_NAME (a stored template in that +// region). Without the file or the required keys every test is skipped +// with the path to create. +// +// Nothing reaches a real mailbox: every message goes to the SES mailbox +// simulator (success@, bounce@simulator.amazonses.com), which works in the +// sandbox ("Using the mailbox simulator", +// https://docs.aws.amazon.com/ses/latest/dg/send-an-email-from-console.html, +// checked 2026-11-18). Requests may only go to email..amazonaws.com. +// +// Secrets are never printed: values are read into memory only, assertion +// messages never include them and provider bodies are not logged. The final +// log line lists host, path and status of each request only. +// +// IAM permissions the key needs: ses:GetAccount, ses:SendEmail, +// ses:ListEmailTemplates, ses:GetEmailTemplate. + +const test = require('node:test'); +const assert = require('node:assert/strict'); +const crypto = require('node:crypto'); +const fs = require('node:fs'); +const os = require('node:os'); +const path = require('node:path'); + +const ENV_FILE = path.join(os.homedir(), '.config', 'magic-mail-live', '.env'); +const REQUIRED = ['SES_REGION', 'SES_ACCESS_KEY_ID', 'SES_SECRET_ACCESS_KEY', 'SES_FROM']; +const SIMULATOR = { + success: 'success@simulator.amazonses.com', + bounce: 'bounce@simulator.amazonses.com', +}; + +/** + * Reads KEY=value lines (no expansion, no export, quotes stripped). + * + * @returns {Record|null} null when the file does not exist + */ +function readLiveEnv() { + if (!fs.existsSync(ENV_FILE)) return null; + const out = {}; + for (const line of fs.readFileSync(ENV_FILE, 'utf8').split(/\r?\n/)) { + const match = /^\s*([A-Z0-9_]+)\s*=\s*(.*)\s*$/.exec(line); + if (!match || line.trim().startsWith('#')) continue; + out[match[1]] = match[2].replace(/^(['"])(.*)\1$/, '$2'); + } + return out; +} + +const env = readLiveEnv() || {}; +const missing = REQUIRED.filter((key) => !env[key]); +const notSelected = require('../helpers/live-env').providerNotSelected('ses', env); +const ready = missing.length === 0 && !notSelected; +const live = ready ? test : test.skip; +if (!ready) { + test.skip( + notSelected + ? `Amazon SES live suite: ${notSelected}` + : `Amazon SES live suite: create ${ENV_FILE} with ${missing.join(', ')}`, + () => {} + ); +} + +const results = []; +let restoreFetch; +let previousKey; +let ses; +let host; + +test.before(() => { + if (!ready) return; + ses = require('../../server/src/providers/ses'); + const region = ses.resolveRegion(env.SES_REGION); + assert.ok(region, 'SES_REGION is not a supported region code'); + host = ses.hostFor(region); + previousKey = process.env.MAGIC_MAIL_ENCRYPTION_KEY; + process.env.MAGIC_MAIL_ENCRYPTION_KEY = crypto.randomBytes(32).toString('hex'); + const original = global.fetch; + global.fetch = async (input, init = {}) => { + const url = new URL(typeof input === 'string' ? input : input.url); + if (url.hostname !== host) throw new TypeError('live suite: host not allowed'); + const response = await original(input, init); + results.push({ + host: url.hostname, + path: url.pathname.replace(/[^/]{40,}/g, ''), + status: response.status, + }); + return response; + }; + restoreFetch = () => { + global.fetch = original; + }; +}); + +test.after(() => { + if (!ready) return; + restoreFetch(); + if (previousKey === undefined) delete process.env.MAGIC_MAIL_ENCRYPTION_KEY; + else process.env.MAGIC_MAIL_ENCRYPTION_KEY = previousKey; + console.log(JSON.stringify({ liveRequests: results }, null, 1)); +}); + +/** Plain config from the live file (validated by the adapter). */ +const liveConfig = (overrides = {}) => + ses.normalizeConfig( + { + region: env.SES_REGION, + credentialSource: 'keys', + accessKeyId: env.SES_ACCESS_KEY_ID, + secretAccessKey: env.SES_SECRET_ACCESS_KEY, + ...(env.SES_CONFIGURATION_SET ? { configurationSetName: env.SES_CONFIGURATION_SET } : {}), + ...overrides, + }, + { creating: true } + ); + +/** Router harness with one live SES account. */ +function harness(configOverrides = {}) { + const { createHarness } = require('../helpers/provider-send-harness'); + const { encryptCredentials } = require('../../server/src/utils/encryption'); + const account = { + documentId: 'liveses', + name: 'live-ses', + provider: 'ses', + fromEmail: env.SES_FROM, + fromName: 'Magic Mail live test', + isActive: true, + isPrimary: true, + priority: 5, + config: encryptCredentials(liveConfig(configOverrides)), + }; + return { account, ...createHarness([account], { tracking: 'none' }) }; +} + +live('connection check: GetAccount answers with the sandbox flag and quota', async () => { + const result = await ses.checkConnection(liveConfig()); + assert.equal(result.ok, true); + assert.equal(typeof result.details.sandbox, 'boolean'); + assert.equal(typeof result.details.sendingEnabled, 'boolean'); + assert.equal(typeof result.details.sendQuota.max24HourSend, 'number'); +}); + +live('plain send to the success simulator returns an SES message id', async () => { + const { router, account } = harness(); + const result = await router.sendViaAccount(account, { + to: SIMULATOR.success, + subject: 'Magic Mail live test (plain)', + text: 'Synthetic live test message.', + html: '

    Synthetic live test message.

    ', + headers: { 'X-Magic-Mail-Live': 'plain' }, + attachments: [{ filename: 'note.txt', content: 'synthetic attachment' }], + __logDocumentId: 'livetest1', + }); + assert.match(String(result.messageId), /^[\x21-\x7e]{10,}$/); +}); + +live('send to the bounce simulator is accepted (the bounce arrives as an event)', async () => { + const { router, account } = harness(); + const result = await router.sendViaAccount(account, { + to: SIMULATOR.bounce, + subject: 'Magic Mail live test (bounce)', + text: 'Synthetic bounce test.', + }); + assert.ok(result.messageId); +}); + +live('template list reads the stored templates of the region', async () => { + const { templates, warning } = await ses.templates.list(liveConfig()); + assert.ok(Array.isArray(templates)); + assert.ok(warning === null || warning === 'TRUNCATED'); + if (env.SES_TEMPLATE_NAME) { + const found = templates.find((t) => t.remoteId === env.SES_TEMPLATE_NAME); + assert.ok(found, 'SES_TEMPLATE_NAME was listed'); + assert.match(found.activeVersion, /^sha256-[0-9a-f]{16}$/); + } +}); + +/** emailData for a provider-template send through one account. */ +const templateSend = (account, remoteId) => ({ + to: SIMULATOR.success, + __providerTemplate: { + rowsByAccount: { + [account.documentId]: { remoteId, name: remoteId, scope: 'default', subject: '' }, + }, + variables: { name: 'Ada', user: { email: 'ada@example.test' } }, + }, +}); + +(env.SES_TEMPLATE_NAME ? live : test.skip)( + 'template send with SES_TEMPLATE_NAME is accepted', + async () => { + const { router, account } = harness(); + const result = await router.sendViaAccount( + account, + templateSend(account, env.SES_TEMPLATE_NAME) + ); + assert.ok(result.messageId); + } +); + +live('an unknown template is refused with NotFoundException (404)', async () => { + const { router, account } = harness(); + const error = await router + .sendViaAccount( + account, + templateSend(account, `magic-mail-missing-${crypto.randomBytes(4).toString('hex')}`) + ) + .catch((err) => err); + assert.equal(error.status, 404, 'status of a send with an unknown template'); + assert.equal(error.providerReason, 'NotFoundException'); + assert.equal(error.code, 'SES_NOT_FOUND'); +}); + +live('an invalid secret is a 403 with the signature hint', async () => { + const wrong = crypto.randomBytes(30).toString('base64'); + const { router, account } = harness({ secretAccessKey: wrong }); + const error = await router + .sendViaAccount(account, { to: SIMULATOR.success, subject: 'x', text: 'y' }) + .catch((err) => err); + assert.equal(error.status, 403); + assert.equal(error.code, 'SES_SIGNATURE_MISMATCH'); + await assert.rejects(ses.checkConnection(liveConfig({ secretAccessKey: wrong })), { + code: 'SES_SIGNATURE_MISMATCH', + }); +}); diff --git a/tests/provider-locales-tracking.test.js b/tests/provider-locales-tracking.test.js new file mode 100644 index 0000000..d2f2b83 --- /dev/null +++ b/tests/provider-locales-tracking.test.js @@ -0,0 +1,709 @@ +'use strict'; + +// Per-locale provider templates (language versions), provider open/click +// tracking for provider-rendered bodies, the Brevo webhook token endpoint +// and the read-only connection check. Fake SendGrid/Mailgun servers on +// 127.0.0.1; synthetic data only. + +const test = require('node:test'); +const assert = require('node:assert/strict'); +const { + createState, + redirectProviderFetch, + startFakeProviders, +} = require('./helpers/fake-template-providers'); +const { createStrapi } = require('./helpers/provider-template-strapi'); +const { canonicalLocale, localeCandidates } = require('../server/src/utils/locale'); + +let fake; +let state; +let restoreFetch; +let previousKey; + +test.before(async () => { + previousKey = process.env.MAGIC_MAIL_ENCRYPTION_KEY; + process.env.MAGIC_MAIL_ENCRYPTION_KEY = 'q'.repeat(32); + state = createState(); + fake = await startFakeProviders(state); + restoreFetch = redirectProviderFetch(fake.port); +}); + +test.after(async () => { + restoreFetch(); + await fake.close(); + if (previousKey === undefined) delete process.env.MAGIC_MAIL_ENCRYPTION_KEY; + else process.env.MAGIC_MAIL_ENCRYPTION_KEY = previousKey; +}); + +const { encryptCredentials, decryptCredentials } = require('../server/src/utils/encryption'); + +function reset() { + const fresh = createState(); + for (const key of Object.keys(fresh)) state[key] = fresh[key]; +} + +function sendgridAccount(documentId) { + return { + documentId, + name: documentId, + provider: 'sendgrid', + fromEmail: `noreply@${documentId}.example.test`, + isActive: true, + priority: 5, + config: encryptCredentials({ apiKey: `SG.${documentId}` }), + }; +} + +function mailgunAccount(documentId) { + return { + documentId, + name: documentId, + provider: 'mailgun', + fromEmail: 'noreply@mg.example.test', + isActive: true, + priority: 4, + config: encryptCredentials({ apiKey: `key-${documentId}`, domain: 'mg.example.test' }), + }; +} + +function sgTemplate(id, name, { active = true } = {}) { + return { + id, + name, + updated_at: '2026-11-10 08:30:00', + versions: [ + { + id: `${id}-v1`, + template_id: id, + active: active ? 1 : 0, + name: 'v1', + subject: `${name} {{name}}`, + html_content: '

    Hello {{name}}

    ', + plain_content: 'Hello {{name}}', + updated_at: '2026-11-11 09:00:00', + }, + ], + }; +} + +const sendgridSends = () => + state.requests + .filter((r) => r.method === 'POST' && r.path === '/v3/mail/send') + .map((r) => JSON.parse(r.body.toString('utf8'))); + +/** Harness with three synced SendGrid templates (default, de, de-AT). */ +async function localizedHarness(options = {}) { + reset(); + state.sendgrid.us = [ + sgTemplate('d-0', 'Welcome'), + sgTemplate('d-1', 'Welcome DE'), + sgTemplate('d-2', 'Welcome AT'), + sgTemplate('d-3', 'Welcome FR'), + ]; + const h = createStrapi({ accounts: [sendgridAccount('sg1')], ...options }); + await h.service('provider-templates').sync({ force: true }); + return h; +} + +// ── Locale helpers ───────────────────────────────────────────────────────── + +test('locale tags are canonicalised and fall back from region to language', () => { + assert.equal(canonicalLocale('de-at'), 'de-AT'); + assert.equal(canonicalLocale('pt_br'), 'pt-BR'); + assert.equal(canonicalLocale(' EN '), 'en'); + assert.equal(canonicalLocale('x'), null); + assert.equal(canonicalLocale('de-AT-