Visualization Tool for the Rego Language Used in Policy as Code and Its Use Cases

Policy as Code refers to efforts to describe and implement policies in a machine-readable format within system development. One example is Open Policy Agent (OPA), which uses a declarative language called Rego to define policies concisely. However, Rego's declarative syntax can be difficult for developers accustomed to procedural programming and those unfamiliar with coding, making the adoption of OPA more challenging. In this research, we propose two methods-evaluation tree and evaluation step analysis-to visualize policies written in Rego. These methods adapt techniques such as call trees and time-travel debugging, typically used in procedural languages, to the declarative structure of Rego. We implemented these methods as a web tool to make Rego policies more accessible. Our findings show that this tool helps users unfamiliar with Rego better understand policies.

Authors

Institutions

Publication Details

Published
2025-03-29
DOI
https://doi.org/10.1109/icct-pacific63901.2025.11012900
Primary Topic
Model-Driven Software Engineering Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Visualization Tool for the Rego Language Used in Policy as Code and Its Use Cases

Toru Nakanishi, Teruaki Kitasuka, K. Takata
Model-Driven Software Engineering Techniques
article

Visualization Tool for the Rego Language Used in Policy as Code and Its Use Cases

Toru Nakanishi, Teruaki Kitasuka, K. Takata
article en

Abstract

Policy as Code refers to efforts to describe and implement policies in a machine-readable format within system development. One example is Open Policy Agent (OPA), which uses a declarative language called Rego to define policies concisely. However, Rego's declarative syntax can be difficult for developers accustomed to procedural programming and those unfamiliar with coding, making the adoption of OPA more challenging. In this research, we propose two methods-evaluation tree and evaluation step analysis-to visualize policies written in Rego. These methods adapt techniques such as call trees and time-travel debugging, typically used in procedural languages, to the declarative structure of Rego. We implemented these methods as a web tool to make Rego policies more accessible. Our findings show that this tool helps users unfamiliar with Rego better understand policies.

Hiroshima University (JP)
Openalex Percentile: Top 89%
Model-Driven Software Engineering Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Visualization Tool for the Rego Language Used in Policy as Code and Its Use Cases — Toru Nakanishi, Teruaki Kitasuka, et al. · (2025) | TGRS Research Map | TGRS