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.