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

agent: fix the AllowRequestsFailingPolicy functionality #212

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

danmihai1
Copy link

  1. Use the new value of AllowRequestsFailingPolicy after setting up a new Policy. Before this change, the only way to enable AllowRequestsFailingPolicy was to change the default Policy file, built into the Guest rootfs image.

  2. Ignore errors returned by regorus while evaluating Policy rules, if AllowRequestsFailingPolicy was enabled. For example, trying to evaluate the UpdateInterfaceRequest rules using a policy that didn't define any UpdateInterfaceRequest rules results in a "not found" error from regorus. Allow AllowRequestsFailingPolicy := true to bypass that error.

  3. Add simple CI test for AllowRequestsFailingPolicy.

These changes are restoring functionality that was broken recently by commmit 11f78ae.

1. Use the new value of AllowRequestsFailingPolicy after setting up a
   new Policy. Before this change, the only way to enable
   AllowRequestsFailingPolicy was to change the default Policy file,
   built into the Guest rootfs image.

2. Ignore errors returned by regorus while evaluating Policy rules, if
   AllowRequestsFailingPolicy was enabled. For example, trying to
   evaluate the UpdateInterfaceRequest rules using a policy that didn't
   define any UpdateInterfaceRequest rules results in a "not found"
   error from regorus. Allow AllowRequestsFailingPolicy := true to
   bypass that error.

3. Add simple CI test for AllowRequestsFailingPolicy.

These changes are restoring functionality that was broken recently by
commmit 11f78ae.

Signed-off-by: Dan Mihai <[email protected]>
@danmihai1 danmihai1 requested review from a team as code owners August 2, 2024 17:37
@sprt sprt added the upstream/merged PRs that have been merged upstream label Aug 2, 2024
@danmihai1 danmihai1 merged commit 80f047c into msft-main Aug 5, 2024
47 of 59 checks passed
@danmihai1 danmihai1 deleted the danmihai1/allow-failing-msft branch October 8, 2024 20:09
@danmihai1 danmihai1 restored the danmihai1/allow-failing-msft branch October 8, 2024 20:09
@danmihai1 danmihai1 deleted the danmihai1/allow-failing-msft branch October 8, 2024 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream/merged PRs that have been merged upstream
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants