-
Story
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
None
-
5
-
False
-
Satellite Rocket Sprint 5, Satellite Rocket Sprint 6, Satellite Rocket Sprint 7
-
sat-rocket
-
None
-
None
-
None
-
None
Problem Statement
Currently, hostname validation logic does not fully comply with RFC 1123 rules. This leads to invalid hostnames being correctly submitted.
Users expect hostname validation to align with industry standards ensuring compliance eliminates unnecessary errors and improves consistency.
User Experience & Workflow
- Go to Administer and then to settings
- move to Discovery tab
- click on edit icon for Hostname Prefix
System validates hostname format:
- Must start with an alphabetic character (A–Z, a–z).
- Can contain letters, numbers, and hyphens (A–Z, a–z, 0–9, -).
- Each label must be 1–62 characters.
Requirements
Regex update to allow [A-Za-z][A-Za-z0-9-]{0,62} for RFC 1123 compliance.
- Validation for maximum 62 characters per label.
- Clear error messages for invalid input (e.g., "Hostnames cannot exceed 62 characters per label").{}
Business Impact
- Increased support tickets from users facing hostname validation issues.
- Workarounds at customer sites, reducing trust in product compliance.
- is related to
-
SAT-38925 Fixes #38795 - Settings - Update value from response by stejskalleos · Pull Request #10712 · theforeman/foreman · GitHub
-
- Closed
-