Write Policy in OPA. Enforce Policy in SQL. | Open Policy Agent
This post explains how to use OPA and SQL to protect access to sensitive data in your services without impacting consistency, performance, or scalability. We show how to translate OPA policies into SQL and enforce them within the database.