Skip to content

Dev worker: email allow-list holds exact addresses as a secret, no domains - #1319

Merged
neuromechanist merged 2 commits into
devfrom
fix/dev-email-allowlist
Sep 8, 2026
Merged

neuromechanist merged 2 commits into
devfrom
fix/dev-email-allowlist

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

One CI day of live-tier runs produced 52 real emails in the repository owner's inbox. Cause: the dev worker's DEV_EMAIL_ALLOWLIST var was @nemar.org,@nemar.test. Every fixture account lives on those domains, so each fixture sign-up, approval, email change, and (before #1305) admin notice was actually delivered through Resend, and anything addressed to @nemar.org reached that domain's catch-all, a real inbox. The @nemar.test entry bought nothing: nonProdCodeEchoAllowed already echoes those fixtures' sign-in codes in the response, so the email was never read.

Change: the var is removed from wrangler-sccn.toml with a comment explaining the rule, and the allow-list becomes a dev Worker secret holding exact human addresses (the staging testers who need a real code by email). With no allow-list the delivery fence from #957 fails closed and the dev worker sends nothing, which is the safe state between this deploy and the secret being set. Production is untouched (it never had the var). AGENTS.md gains the rule in one sentence.

Post-merge: set the secret with bunx cfman wrangler --account sccn secret put DEV_EMAIL_ALLOWLIST --env dev -c wrangler-sccn.toml from backend/ (value: the testers' addresses, comma-separated). Any live test that turns out to assert on delivery to a fixture address is asserting on the waste this removes and should be corrected, not the fence.

@github-actions

github-actions Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR1319

Version: 0.10.0-PR1319.07cccf0
Commit: 07cccf0


🤖 Updated on each push.

@neuromechanist
neuromechanist merged commit d8d45eb into dev Sep 8, 2026
12 checks passed
@neuromechanist
neuromechanist deleted the fix/dev-email-allowlist branch September 8, 2026 16:28

This branch was previously deployed

1 inactive deployment
npm — 07cccf0e Deployed Sep 8, 2026 by neuromechanist via publish #2389
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