OPA Policy Authoring
Open Policy Agent provides a unified policy language that can be enforced across the cloud-native stack. This course covers how to write policies in OPA's declarative, purpose-built policy language Rego.
Welcome video
How to use this course
The Problem OPA Solves
What is OPA?
Quiz on OPA and its Integrations
OPA Features
Quiz on OPA Features
Further reading
Single values
Quiz on Single Values
Comparing and Constructing Values
Quiz on multiple values
Further reading
Boolean rules and evaluation
Quiz on boolean rules and evaluation
Rule chaining and non-boolean rules
Quiz on rule chaining and non-boolean rules
Further reading
Unit tests and test coverage
Unit testing example
Hands-on: running unit tests using OPA CLI
Section 1: Getting Started
Section 2: Start CarInfoStore Policy
Section 3: Write Tests
Section 4: Finish the Policy
Hands-on Lab Quiz
Extra credit: Connect Policy to OPA
Partial Set Rules
Quiz on Partial Set Rules
Partial Object Rules and Function Rules
Quiz on Partial Object and Function Rules
Further reading
Iteration for arrays, objects, and sets
Quiz on iteration for arrays, objects, and sets
Multi-iteration, generating output, and safety
Quiz for multi-iteration, generating output, and safety
Further reading
Organizing policies into packages
Quiz for packages
Further reading
Congrats! Here's what's next...
Help us improve!
The explanation of whole policy autoring with simple modules gives clear idea of what is really needed while writing and packaging policies
The explanation of whole policy autoring with simple modules gives clear idea of what is really needed while writing and packaging policies
Read LessVery good tutorials. Clear explanations about Rego in video format and then relevant questions were asked.
Very good tutorials. Clear explanations about Rego in video format and then relevant questions were asked.
Read LessI liked it A LOT! The content takes you easily into the basics of rego and simplifies it in an interesting way.
I liked it A LOT! The content takes you easily into the basics of rego and simplifies it in an interesting way.
Read LessThis course is much easier to follow along with than just reading the documentation on the OPA website. Good examples and progression leads to a tight unders...
Read MoreThis course is much easier to follow along with than just reading the documentation on the OPA website. Good examples and progression leads to a tight understanding at the end. Now I just need to go apply this knowledge.
Read LessThe course does a great job of getting you into rego at the right pace. The quizzes help to solidify examples given in the lessons.
The course does a great job of getting you into rego at the right pace. The quizzes help to solidify examples given in the lessons.
Read Less