Skip to content

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
@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.

3 participants