Skip to content

Block security-probe test email domains - #3701

Merged
bernardhanna merged 1 commit into
devfrom
fix/block-security-probe-emails
Nov 17, 2026
Merged

bernardhanna merged 1 commit into
devfrom
fix/block-security-probe-emails

Conversation

@bernardhanna

Copy link
Copy Markdown
Collaborator

Summary

  • Reject reserved RFC test email TLDs (.invalid, .test, .example, .localhost) on activity create, registration, and contact form
  • Add events:purge-security-probes artisan command to soft-delete leftover probe activities/users
  • Cover with unit/feature tests

Context

Belgium ambassadors flagged pending “CW Probe” activities from @*.invalid emails. Those rows were cleaned on live; this prevents recurrence.

Test plan

  • Unit tests for NotReservedEmailDomain
  • Confirm on dev that registering / creating an activity with user@example.invalid fails validation
  • Confirm a normal school email still works

Made with Cursor

Stops security-probe accounts (.invalid/.test/.example/.localhost) from landing in ambassador moderation queues, and adds a purge command for leftovers.

Co-authored-by: Cursor <cursoragent@cursor.com>
@bernardhanna
bernardhanna merged commit 2b8ef91 into dev Nov 17, 2026
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