microsoft / microsoft/regorus

[feature] Rego debugger

Open
#150 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
Rust
Stars
346
Forks
75
Avg merge
1d 3h
Merged PRs (30d)
15

Description

According to Open Policy Agent/ecosystem/debugging_rego "Debugging Rego policies can be tricky". There is no way to step through the evaluation of a rego policy.

We need to implement a debugger for Rego policies. Since Rego does not have mutable variables, the debugger implementation ought to be much simpler than for a language with mutable variables.

Idea/Early implementation here: https://github.com/microsoft/regorus/compare/main...anakrish:regorus:debugger

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked early implementation in the regorus repository and the existing Rego evaluation flow. Determine how debugger controls such as stepping and pause points should fit that flow. Done means a Rego policy can be stepped through during evaluation with useful inspection of its progress.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.