Skip to main content

validate_env_name

Function validate_env_name 

Source
pub fn validate_env_name(name: &str) -> Result<()>
Expand description

Validate that an environment name is safe and sensible.

Allowed: lowercase letters, digits, hyphens. Must not be empty or start/end with a hyphen. Max length 64 characters. This prevents accidental typos from silently creating new vault files.