port label validation doesn't filter invalid characters #12347
Labels
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/jobspec
type/bug
Nomad version
Nomad v1.2.6 (a6c6b475db5073e33885377b4a5c733e1161020c)
Issue
Any character is accepted in the name parameter of the stanza network. The job is applied without syntax errors and Nomad's GUI even displays the name with special characters.
However, this should not be possible if we refer to the control here.
On the other hand, Levant applies the check correctly and raises the syntax error.
Expected Result
Port label does not conform to naming requirements ^[a-zA-Z0-9_]+$
Actual Result
No issue is raised. Job is applied without errors.
Job file (if appropriate)
The text was updated successfully, but these errors were encountered: