Skip to content

Added Support for Regal Linting + PolicyDomainReference validation#61

Open
ipaz-manetu wants to merge 3 commits intomanetu:mainfrom
ipaz-manetu:regal_validation
Open

Added Support for Regal Linting + PolicyDomainReference validation#61
ipaz-manetu wants to merge 3 commits intomanetu:mainfrom
ipaz-manetu:regal_validation

Conversation

@ipaz-manetu
Copy link
Contributor

Regal Linting Support

Adds --regal flag to mpe lint that runs Regal (OPA's official Rego linter) against all embedded Rego code in PolicyDomain files. Regal is bundled as a Go library — no separate installation required.

mpe lint -f my-domain.yml --regal

PolicyDomainReference Validation

Adds validation during mpe build to ensure items under policies, policy-libraries, and mappers have either rego or rego_filename defined. Previously, missing both fields was silently ignored.

Signed-off-by: IvanPazManetu <ipaz@manetu.com>
Signed-off-by: IvanPazManetu <ipaz@manetu.com>
@codecov
Copy link

codecov bot commented Feb 12, 2026

Codecov Report

❌ Patch coverage is 77.64706% with 19 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cmd/mpe/subcommands/lint/core.go 0.00% 10 Missing ⚠️
cmd/mpe/subcommands/lint/regal.go 85.71% 5 Missing and 4 partials ⚠️

📢 Thoughts on this report? Let us know!

Signed-off-by: IvanPazManetu <ipaz@manetu.com>
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.

1 participant

Comments