Introduction to Open Policy Agent (OPA) Rego Language
The article discusses the use of Policy as Code and its implementation using Open Policy Agent (OPA) and Rego language. It explains how decisions in Rego are used as outputs of policies and can be strings, arrays, objects, sets, etc. Additionally, it covers the use of block notation for assignments, OR conditions, set-based decisions, and custom functions. The author emphasizes that Policies can have arbitrary sets of decisions with those decision being of arbitrary types. Finally, the article encourages readers to explore more about Rego policy language through the official documentation and consider using Spacelift for IaC development.
Company
Spacelift
Date published
Sept. 12, 2022
Author(s)
Jacob Martin
Word count
1462
Language
English
Hacker News points
2