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

Reduce errors in decision logs that are operational #3086

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

mjungsbluth
Copy link
Collaborator

Currently the Open Policy Agent filters send decision logs with an error to the control plane if the http path is invalid UTF-8 or if the evaluation is cancelled (the client closes the connection before the evaluation finishes).

This disguises real errors and leads to a non-zero baseline of decision errors in the control plane.

This PR pre-validates if paths are valid UTF-8 and do not send decisions for cancelled evalutations to the control plane.

Signed-off-by: Magnus Jungsbluth <magnus.jungsbluth@zalando.de>
@mjungsbluth mjungsbluth added the minor no risk changes, for example new filters label May 29, 2024
@mjungsbluth mjungsbluth marked this pull request as ready for review May 29, 2024 15:20
@szuecs
Copy link
Member

szuecs commented May 29, 2024

👍

1 similar comment
@AlexanderYastrebov
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor no risk changes, for example new filters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants