Skip to content

feat: Add OPA Rego v1 support#665

Open
burdzwastaken wants to merge 10 commits into
plexsystems:mainfrom
burdzwastaken:opa-v1
Open

feat: Add OPA Rego v1 support#665
burdzwastaken wants to merge 10 commits into
plexsystems:mainfrom
burdzwastaken:opa-v1

Conversation

@burdzwastaken

@burdzwastaken burdzwastaken commented Dec 27, 2025

Copy link
Copy Markdown
  • Adds --rego-version flag to create and doc commands (default: v0)
  • Parses Rego v1 syntax
  • Generates OPA v1 compatible ConstraintTemplates
  • Adds --strip-v0-imports flag to optionally remove the redundant v0 rego imports

Fixes #637 & #663

Comment thread internal/rego/rego.go
Comment thread internal/rego/rego.go Outdated
@mrueg

mrueg commented Jan 21, 2026

Copy link
Copy Markdown
Contributor

@jalseth if you have a few spare cycles to spend, this one would be really nice to have.

@zephyrdb

Copy link
Copy Markdown
Contributor

@jalseth Bump?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Have Konstraint generate GateKeeper's expected v1 Syntax

3 participants