cedar_policy

Function confusable_string_checker

Source
pub fn confusable_string_checker<'a>(
    templates: impl Iterator<Item = &'a Template> + 'a,
) -> impl Iterator<Item = ValidationWarning> + 'a
Expand description

Scan a set of policies for potentially confusing/obfuscating text.

These checks are also provided through Validator::validate which provides more comprehensive error detection, but this function can be used to check for confusable strings without defining a schema.