apache / apache/openwhisk-wskdeploy

Validate Entity names match allowed REGEX (client side)

Open
#423 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.