chore: strict Subdomain Validation with Detailed Error Messages #42
Reference in New Issue
Block a user
Delete Branch "userAdityaa/caravel:subdomain-validation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Enhanced subdomain validation across the API and frontend to enforce DNS label standards and block reserved names. The system now returns specific, actionable error messages instead of generic validation failures, and the edit flow no longer silently auto-corrects invalid input.
New Error Codes & Messages
Subdomain Validation Rules
Length: 1–63 Characters
Why 63? DNS labels (the parts between dots) are limited to 63 octets per RFC 1035
Reserved Names: api, admin
Why reserved? Common infrastructure naming conventions use these labels for platform-wide endpoints:
Blocking these prevents user relays from conflicting with infrastructure routes and maintains clear semantic separation between user resources and system services.
closes #37
f11d23d23etoa10012df46