-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exceptions are always considered to be exceptions in output #548
Comments
Some thoughts from Slack:
|
Hi, just came across this. I have a similar issue when trying to enforce naming-conventions to an existing terraform project (while keeping a list of exceptions). For example:
with a rego file:
It's not a foolproof method, because there isn't any notification that an exception is happening, but I'm currently doing the following:
I would suggest updating the the documentation linked here to explicitly state that an exclusion will exclude the whole file, as it's not very clear until one starts playing with it. EDIT: I did a bit of playing, And expanding the above gives what I want:
|
If an exception exists, it is always considered to be an exception in the output -- regardless of if the policy failed. For example:
echo "{}" | conftest test -
Results in:
However, the policy did not fail.
It feels more accurate to consider this a passed result and only trigger an exception in the output if a policy would have otherwise failed. Pending discussion from the community.
The text was updated successfully, but these errors were encountered: