Skip to main content

check_release_key

Function check_release_key 

Source
pub fn check_release_key(key: &str) -> Result<(), String>
Expand description

The charset every agent_releases key must fit: the key reaches a quoted Content-Disposition filename, generated PowerShell / batch / shell install scripts, and NATS subjects — restrict the charset (semver-ish) rather than escaping four different formats. Shared by the backend publish endpoint, the CLI publish, and the installer endpoint (which used to carry its own copy).