Chapter 9: A Primer on Open Policy Agent

After the primer on policy engines in the previous chapter, we will now focus on Open Policy Agent (OPA), the most popular policy engine out there.

This chapter will briefly introduce OPA, its architecture, how it can be used, and the main benefits and challenges, while also going a bit deeper into its policy language, Rego, which is used to build coercive instruments for access control.

Since Rego is the key to expressing policies, we will show some snippets and discuss them. OPA contains a playground that we will leverage, and you can also follow along to solidify your understanding of the concepts explained.

We will also talk about how integration with IT environments and platforms nowadays is becoming ...

Get Policy Design in the Age of Digital Adoption now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.