feat: Implement methods to extract the package name and parameters defined within a policy from the engine#425
Merged
Conversation
anakrish
reviewed
Jul 3, 2025
anakrish
reviewed
Jul 21, 2025
anakrish
left a comment
Collaborator
There was a problem hiding this comment.
Overall looks good to me.
We can try to get this merged in soon. I will add a feature "azure-policy" to gate the work both of us are doing. That will give us bit more flexibility in making changes.
Collaborator
|
@dekomissMSFT Looks good to me. Once you squash you commits, I can approve it. Please do use a semantic commit message (e.g.: feat). |
21accd2 to
e4ed9ab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds methods to the Regorus engine to extract package names and parameters defined within policies that have been added to the engine.
Parameters are defined as any default rule that is prefixed with "parameters" and only contains one segment following that.
Ex.
default parameters.myParameter := 5 => is a parameter
default parameters.myParameter.nested := 5 => is not a parameter
default parameters := {'myParameter': 5} => is not a parameter