apache / apache/openwhisk-wskdeploy
Validate Entity names match allowed REGEX (client side)
Open
enhancement
priority: low
- Dominant language
- Go
- Stars
- 75
- Forks
- 73
- PR merge metrics
- No merged PRs in 30d
Description
Includes all parts of the namespace for all entities (e.g., Actions, Triggers, Rules, Packages, etc.)
Regex used at server-side is:
protected[core] val REGEX = raw"\A([\w]|[\w][\w@ .-]{0,${ENTITY_NAME_MAX_LENGTH - 2}}[\w@.-])\z"
private val entityNamePattern = REGEX.r.pattern // compile once
where: ENTITY_NAME_MAX_LENGTH=256
Contributor guide
Assessment
This issue has not been assessed yet.