Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable and nested rule limits #989

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

TristonianJones
Copy link
Collaborator

@TristonianJones TristonianJones commented Jul 30, 2024

Provide a configurable limit for variable and nested rules

Ensure that policies are no so expressive that they cause problems
for stacks with limited recursion depths. The limit defaults to 100.
This change also makes a critical fix to support conditionally nested
rules. Previously the condition was being omitted during composition.

Closes #972

policy/composer.go Outdated Show resolved Hide resolved
policy/config.go Outdated Show resolved Hide resolved
policy/testdata/limits/config.yaml Outdated Show resolved Hide resolved
policy/composer.go Show resolved Hide resolved
@TristonianJones TristonianJones merged commit c9164bc into google:master Jul 30, 2024
2 checks passed
@TristonianJones TristonianJones deleted the recursion-limits branch July 30, 2024 20:13
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.

[Policy Compiler] Specify iteration limit in RuleComposer
2 participants