Skip to main content

Policy Conditions

Conditions define how values from input JSON are evaluated. Tirith supports various condition types:

  • Equals : Checks if a value matches a specified value.
  • RegexMatch : Validates if a string matches a regex pattern.
  • LessThan / GreaterThan : Compares numeric values.
policy.json
{
// ...
"id": "epoch_check",
"provider_args": {
"operation_type": "get_value",
"key_path": "meta.epoch"
},
"condition": {
"type": "LessThan",
"value": 1720415598
}
// ...
}

This condition ensures that the meta.epoch value is less than 1720415598.