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

Body is missing from upstreamed request when using OPA #432

Closed
morelina opened this issue Mar 13, 2024 · 3 comments · Fixed by #433
Closed

Body is missing from upstreamed request when using OPA #432

morelina opened this issue Mar 13, 2024 · 3 comments · Fixed by #433

Comments

@morelina
Copy link

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

  • OS: Linux
  • Go (e.g. go version) 1.21.6
  • Gatekeeper: 2.9.4

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
Copy link

p53 commented Mar 14, 2024

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
Copy link

p53 commented Mar 14, 2024

ok found issue, will try to push changes today

@p53 p53 linked a pull request Mar 16, 2024 that will close this issue
2 tasks
@p53
Copy link

p53 commented Mar 16, 2024

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

@p53 p53 closed this as completed Apr 2, 2024
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 a pull request may close this issue.

2 participants