Skip to content

🔧 fix(auth-microservice, cognito-triggers) [OTP pre-PROD]: destination mask derived from the request username (no unknown-user tell) - #42

Merged
JuankCadavid merged 2 commits into
dev-authfrom
dev-auth-otp
Sep 12, 2026
Merged

JuankCadavid merged 2 commits into
dev-authfrom
dev-auth-otp

Conversation

@JuankCadavid

@JuankCadavid JuankCadavid commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Pre-PROD hardening #2 (docs/auth/center-email-code-login/prod-rollout-runbook.md, design §13 (m)).

  • auth-microservice (5a758fd): startEmailOtp now returns codeDeliveryDestination = maskEmail(username) computed locally and ignores Cognito's ChallengeParameters — for unknown users Cognito substitutes the username before invoking the triggers, so only the microservice can produce a mask identical to a real user's. 17 suites / 380 tests, tsc + eslint clean. Swagger + README updated.
  • cognito-triggers (76868c0): mask from event.userName (kept; already deployed to the TEST stack).

No env/pool changes. Merge → Jenkins deploys TEST.

🤖 Generated with Claude Code

JuankCadavid and others added 2 commits September 12, 2026 08:13
…nation mask from the submitted userName (design §13 m)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…on from the request username, never from Cognito's reply (design §13 m)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@JuankCadavid JuankCadavid changed the title 🔧 fix(cognito-triggers) [OTP pre-PROD]: unknown-user destination mask derived from the submitted userName 🔧 fix(auth-microservice, cognito-triggers) [OTP pre-PROD]: destination mask derived from the request username (no unknown-user tell) Sep 12, 2026
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
24.3% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@JuankCadavid
JuankCadavid merged commit 9a72464 into dev-auth Sep 12, 2026
2 of 3 checks passed
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