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

[Policy] Errant warning on design save #10191

Closed
leecalcote opened this issue Feb 2, 2024 · 1 comment · Fixed by #10221
Closed

[Policy] Errant warning on design save #10191

leecalcote opened this issue Feb 2, 2024 · 1 comment · Fixed by #10221
Assignees
Labels
component/policy kind/bug Something isn't working opa
Milestone

Comments

@leecalcote
Copy link
Member

leecalcote commented Feb 2, 2024

Current Behavior

I have two components in a design. I save the design. I receive:

WARN[2024-02-02T16:12:14-06:00] evaluation results are empty app=meshery code=11099 probable-cause="The policy query is invalid, see: https://github.com/open-policy-agent/opa/blob/main/rego/resultset.go (Allowed func)" severity=2 short-description="error evaluating policy for the given input" suggested-remediation="please provide a valid non-empty query"

Expected Behavior

No warnings, because no policy evaluations should be invoked unless necessary.

Environment

  • Host OS: Mac
  • Meshery Server Version: stable-v0.7.15

Contributor Guides and Handbook

@MUzairS15
Copy link
Contributor

This isn’t a bug, for every design save we do policy eval to determine any possible relationships and if the evaluation results are empty we emit this log of severity warning.
It is nothing to worry about and doesn’t indicate any evaluation error.
The log is more for developers to track the evaluation behaviour, you can decrease the server’s log level. https://docs.meshery.io/project/contributing/contributing-server#configuring-log-levels-at-runtime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/policy kind/bug Something isn't working opa
Projects
Development

Successfully merging a pull request may close this issue.

2 participants