gogatekeeper / gatekeeper

An OpenID / Proxy service
https://gogatekeeper.github.io/gatekeeper/
Apache License 2.0
266 stars 48 forks source link

Body is missing from upstreamed request when using OPA #432

Closed morelina closed 6 months ago

morelina commented 6 months ago

Title

Body is missing from upstreamed request when using OPA

Summary

The body of a request (with body) that has been successfully authorized using OPA does not reach the upstream service.

Environment

Expected Results

The upstream service receives the request body when the request is successfully authorized.

Actual Results

The upstream service received no body on a successfully authorized request (that had a body)

Steps to reproduce

Configure Gogatekeeper to use OPA. Configure the corresponding policy that allows a request. Send the request with body.

Additional Information

Javier Moreno Molina javier.moreno_molina@mercedes-benz.com, Mercedes-Benz Connectivity Services GmbH

Provider Information

p53 commented 6 months ago

Hi, thanks for issue, will look at it. This is tested in tests (pkg/testsuite/middleware_test.go), but will test it also manually to check if there is some culprit

p53 commented 6 months ago

ok found issue, will try to push changes today

p53 commented 6 months ago

@morelina hi, issue should be fixed, you can try image 2.9.6-rc1