pub fn validate_secret_reference(value: &str) -> Result<(), ValidationError>Expand description
Validate a secret reference name format
Secret names must:
- Start with a letter (a-z, A-Z)
- Contain only alphanumeric characters, hyphens, and underscores
- Optionally be prefixed with
@service/for cross-service references
Examples of valid secret refs:
$S:my-secret$S:api_key$S:@auth-service/jwt-secret
§Errors
Returns a validation error if the secret reference format is invalid.
§Panics
Panics if the secret name is empty after validation (unreachable in practice).