Refactor execpolicy fallback evaluation

This commit is contained in:
kevin zhao
2025-12-03 19:03:53 +00:00
parent 2f75048697
commit 2526ae1ed7
10 changed files with 365 additions and 176 deletions

View File

@@ -40,17 +40,15 @@ prefix_rule(
assert_eq!(
result,
json!({
"match": {
"decision": "forbidden",
"matchedRules": [
{
"prefixRuleMatch": {
"matchedPrefix": ["git", "push"],
"decision": "forbidden"
}
"decision": "forbidden",
"matchedRules": [
{
"prefixRuleMatch": {
"matchedPrefix": ["git", "push"],
"decision": "forbidden"
}
]
}
}
]
})
);