--fail-defined
Flag always Exits with Failure
#649
-
Hello all, I am just starting getting into Rego and OPA and had a quick question. I am attempting to create an automation pipeline that checks OPA policies against our IaC for Terraform and hit a bit of a snag that I can't seem to find any good documentation on. I just updated to the latest OPA/Rego versions and have been running both:
However, when I add the
The following opa eval gives this results:
I've scoured the forums, issues and google but to no avail. Not sure why its constantly getting an error but the debug is clean and without the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
It looks like your decision, {
"check": {
"deny": []
}
} So perhaps you should try evaluating |
Beta Was this translation helpful? Give feedback.
Could it be that you evaluate a multi-value rule (deny)? You could try using
--fail-non-empty
instead, because multi-value rules are never undefined, but they might be empty sets.