Skip to content

fix(notification): SES verification identity/message mismatch + reset on address change - #2165

Open
neerajhariyale wants to merge 1 commit into
mainfrom
fix/ses-verification-identity-message
Open

fix(notification): SES verification identity/message mismatch + reset on address change#2165
neerajhariyale wants to merge 1 commit into
mainfrom
fix/ses-verification-identity-message

Conversation

@neerajhariyale

Copy link
Copy Markdown
Contributor

Bugs

In the admin Notification Settings → Email SES sender verification:

  1. Wrong address in the status message. getStatus built its message from the from-address (email) instead of the identity AWS actually verified. After the sender was edited, the UI showed "AWS sent a confirmation email to " when it really went to the previously-submitted identity — the exact mismatch that caused confusion in testing.
  2. From-address and identity drift. Changing the from-address (updateEmailConfiguration) left the old verification_identity/verification_status in place, so the two silently diverged — a verified/pending badge would show for a different address than the one mail sends from, and sending would fall back to the platform default.

Fix

  1. EmailSenderVerificationService.getStatus → message uses identity (and its domain), not email.
  2. EmailConfigurationService.updateEmailConfiguration → when the from-address actually changes, reset verification_status/verified/verification_identity/verified_at so a fresh Verify sender re-establishes it for the new address.

Verify

mvn -o compile → 0 compilation errors. Merging auto-deploys (change under notification_service/** matches the deploy workflow's push path filter).

🤖 Generated with Claude Code

…verification on address change

Two bugs in SES sender verification that caused a confusing from-address vs
verified-identity mismatch in the admin Email settings:

1. getStatus built its message from the from-address (email) instead of the
   address AWS actually verified (identity), so after changing the sender the UI
   said 'AWS sent a confirmation email to <from-address>' when it really went to
   the previously-submitted identity. Use identity for the message.

2. Changing the from-address left the old verification_identity/status intact, so
   the from-address and verified identity silently drifted (verified badge for the
   wrong address; sending falls back to the platform default). Reset the
   verification fields when the from-address changes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codacy-production

Copy link
Copy Markdown
Contributor

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant