OPA by Example
A gentle yet fast-paced guide to OPA policy authoring to get you coding in as little as 10 minutes, accompanied by a series of guided examples to help you use OPA's Rego language features from basic to advanced.
Essential Foundations of OPA Policy
Hands-on exercise 1 (warm-up)
Hands-on exercise 2 (authoring a rule condition)
Hands-on exercise 3 (using a package)
Hands-on exercise 4 (practicing AND & OR)
How to use the course
Assignment value
Local variable
Rule conflict
Rule conflict avoidance
Rule conditions overview
Ordinary conditions that succeed
Ordinary conditions that fail
Not-conditions
Assignment conditions
Membership conditions
Check your understanding: rule conditions
Writing unit tests
Unit testing demo
Running tests using the Enterprise OPA Manager (Styra DAS)
Running tests using the OPA CLI
Test-driven development
Set iteration
Array iteration
Object iteration
Nested iteration
Freeform iteration
Exercises on iteration
Complete definition by enumeration
Complete definition by comprehension
Partial definition (single element per rule)
Partial definition (generating multiple elements using iteration)
Exercises on defining collections
Built-in functions
User-defined functions
Basic Usage
Or-type condition
The OPA executable
Evaluation: opa eval command
Unit testing: opa test command
Congrats! Here's what's next...
Help us improve!
this is a nice way to learn how to work with OPA (and DAS ?). Discussion to get help, is very useful has teachers are very quick to answer. Maybe a link to O...
Read Morethis is a nice way to learn how to work with OPA (and DAS ?). Discussion to get help, is very useful has teachers are very quick to answer. Maybe a link to OPA Rego Syntax could be useful. But it is already very good like this. Maybe also suggest a solution or an alternative, even if we can sometimes find some with the comments
Read LessThanks for creating this course. That's very good!
Thanks for creating this course. That's very good!
Read LessThis is perfect course to start over Opa
This is perfect course to start over Opa
Read Less