Skip to content

Conversation

@OlegPhenomenon
Copy link
Contributor

@OlegPhenomenon OlegPhenomenon commented Sep 3, 2025

close #1338

Add domain name validation to Registry::AuctionCreator to prevent
auctions for invalid domain names according to .ee regulations:

  • Domain names can only contain letters (including Estonian), numbers, and dashes
  • Names cannot start or end with a dash
  • Names cannot have dashes at both 3rd and 4th positions
  • Names must be 1-63 characters long
  • Underscores and special characters are not allowed

Invalid domains are logged and skipped during auction creation.
Test domains (.test extension) bypass validation for compatibility
with existing test fixtures.

Added comprehensive tests for domain validation covering both valid
and invalid domain patterns.

  Add domain name validation to Registry::AuctionCreator to prevent
  auctions for invalid domain names according to .ee regulations:

  - Domain names can only contain letters (including Estonian), numbers, and dashes
  - Names cannot start or end with a dash
  - Names cannot have dashes at both 3rd and 4th positions
  - Names must be 1-63 characters long
  - Underscores and special characters are not allowed

  Invalid domains are logged and skipped during auction creation.
  Test domains (.test extension) bypass validation for compatibility
  with existing test fixtures.

  Added comprehensive tests for domain validation covering both valid
  and invalid domain patterns.
@OlegPhenomenon OlegPhenomenon force-pushed the 1338-validate_domain_name-before_auction branch from 7fceecf to b219dc1 Compare December 12, 2025 11:57
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.

Validate domain names before auction

3 participants