OPA Oops: Avoiding Pitfalls
Learn to avoid pitfalls and gotchas when authoring OPA policy.
About this course
How to use this course
Same type comparisons
Different type comparison
How to avoid inadvertent different-type comparisons
Default assignment review
Partial definition rule has automatic default
Default value for user-defined function
Name shadowing review
Shadowing a global name
Undeclared iteration variable
Missing fields
Checking for field presence or absence
Data validation
Misuse of input or data
Review of negation (not)
Negating iteration
Negating an expression with an undefined sub-expression
Congrats! Here's what's next...
Help us improve!