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

issue-6333 pass input to log even if check request times out #474

Conversation

rudrakhp
Copy link
Contributor

@rudrakhp rudrakhp commented Oct 24, 2023

@rudrakhp rudrakhp force-pushed the pass_input_checkrequest_timeout branch from 1af6ac8 to 23aa452 Compare October 24, 2023 06:31
@@ -400,6 +395,11 @@ func (p *envoyExtAuthzGrpcServer) check(ctx context.Context, req interface{}) (*
return nil, stop, err
}

if ctx.Err() != nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can move this before we convert to ast.Value correct ? We only need the input map to be non-nil.

Copy link
Contributor Author

@rudrakhp rudrakhp Oct 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ashutosh-narkar right, moved it to immediately after parsing input.

Signed-off-by: Rudrakh Panigrahi <rudrakh97@gmail.com>
@rudrakhp rudrakhp force-pushed the pass_input_checkrequest_timeout branch from 23aa452 to 8ce192b Compare October 24, 2023 07:59
@ashutosh-narkar ashutosh-narkar merged commit 63b3a29 into open-policy-agent:main Oct 24, 2023
8 checks passed
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.

[Minor][OPA Envoy plugin] Decision logs should have a non-null input even if context deadline exceeds
2 participants