Module validation

Module validation 

Source
Expand description

Input validation for user-supplied names, tags, and paths.

Prevents path traversal attacks and ensures safe filesystem operations.

Constantsยง

MAX_NAME_LEN ๐Ÿ”’
Maximum length for project/model names.
MAX_TAG_LEN ๐Ÿ”’
Maximum length for tags.

Functionsยง

validate_name
Validate a project or model name.
validate_project_path
Validate that a path does not escape the current working directory.
validate_tag
Validate a model tag.