This repository was archived by the owner on Jul 23, 2020. It is now read-only.
This repository was archived by the owner on Jul 23, 2020. It is now read-only.
Disallow leading digit or embedded spaces in application names #3516
Closed
Description
The current UI validates names via a regex that allows leading digits and embedded spaces.
I would like to remove both of those; leading digits cause issues with DNS in Kubernetes, and spaces may cause unknown problems at some point.
First, I would like to ask for the actual naming requirements; my proposed change is just a common-sense guess.
The "ideal" architecture disconnects the application name (or space name, etc.) from the code, and passes through an identifier such as a UUID or other short form. Again, this issue is just a bandaid ona deeper problem.
current regex:
const pattern = /^[a-zA-Z0-9][a-zA-Z0-9-_\s]{2,38}[a-zA-Z0-9]$/;
proposed regex:
const pattern = /^[a-zA-Z][a-zA-Z0-9-_]{2,38}[a-zA-Z0-9]$/;