Repository navigation
Add Cloudflare and Azure mail adapters - #15
Merged
Merged
Conversation
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the worker/ Identity composition to support host-selected mail delivery adapters, adding first-party adapters for Cloudflare Email Service and Azure Communication Services Email, and documenting the production Resend enablement sequence for safe rollout.
Changes:
- Add a Cloudflare Email Service adapter with explicit double-send risk acknowledgement and Queue event normalization.
- Add an Azure Communication Services Email REST adapter with deterministic operation IDs, repeatability fencing, HMAC signing, and Event Grid normalization.
- Update the Identity runtime composition to accept an injected
mailDeliveryadapter (while keeping Resend as the default) and document provider rollout steps.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| worker/src/identity-runtime.ts | Adds mailDelivery injection for a host-selected provider/reconciliation/classifier while preserving Resend fallback behavior. |
| worker/src/identity-runtime.test.ts | Adds coverage proving the composition can run with a non-Resend injected provider adapter. |
| worker/src/cloudflare-email-mail.ts | Introduces Cloudflare Email Service binding adapter + Queue event normalization + reconciliation port. |
| worker/src/cloudflare-email-mail.test.ts | Adds unit tests for Cloudflare adapter send behavior, event parsing hardening, reconciliation, and classification. |
| worker/src/azure-acs-mail.ts | Introduces Azure ACS REST adapter with request signing, deterministic operation IDs, repeatability headers, and Event Grid normalization. |
| worker/src/azure-acs-mail.test.ts | Adds unit tests for Azure adapter idempotency/repeatability behavior, event parsing hardening, reconciliation, and classification. |
| worker/README.md | Documents Resend production enablement order and summarizes available provider adapters and required host responsibilities. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification