pub fn validate_key_scope(key: &str, scope: &Scope) -> Result<(), ConfigError>
Validates that a key can be written in the provided scope.