# 3.8.1

**Release Date:** July 27, 2026

---

## 🐛 Bug Fixes

### Terraform Modules

#### Dedupe Front Door Custom Domain IDs to Fix Prod Deploy 🔗

**Module:** `saif-event-service`

**Commit:** [`981ee861`](https://github.com/saif-corp/forge/commit/981ee8612d5b494785f0c943404acfe089fc4395) · [#947](https://github.com/saif-corp/forge/pull/947)

Fixes a `terraform apply` failure that broke event-service deployments to `saif-production-corporate` on 3.8.0. Event services always associate both the base and app-specific internal Front Door custom domains, but in production the two resolve to the same custom domain ID. The resulting `for_each` map in `azurerm_cdn_frontdoor_custom_domain_association` then contained a duplicate key, and Terraform rejected the plan with a "Duplicate object key" error.

The fix wraps `fd_custom_domain_ids` in `distinct(...)` so the list is deduplicated before it's used both as the `frontdoor_route` module's `custom_domain_ids` input and in the `for_each` map. No state migration is needed — the `for_each` map keys are unchanged (still the domain ID string), so environments where the base and app domains differ see no resource churn.

---

## 🔄 Breaking Changes

None in this release ✅

---

## 📋 Additional Notes

- Total commits: 1
- Files changed: 1
- Contributors: jasyue

---

### Support

- 📧 Teams Support Channel: [Support](https://teams.microsoft.com/l/channel/19%3Acb611810fb0b42b080cfff5590bdd51c%40thread.tacv2/Support?groupId=514d2dac-2d62-48ce-bf99-0fa0ce39469c&tenantId=a86cb8ed-369b-4df5-ace5-43811f6e08cf)

---
