-
Notifications
You must be signed in to change notification settings - Fork 2.7k
feat: As a user, I want to include the request body in the opa-input, so that I can reason about its contents #11629
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
base: master
Are you sure you want to change the base?
Conversation
Is there anything I can do to get this PR forward? |
This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If you think that's incorrect or this pull request should instead be reviewed, please simply write any comment. Even if closed, you can still revive the PR at any time or discuss it on the [email protected] list. Thank you for your contributions. |
@wistefan Please synchronize the master code to trigger all CI |
Hello! If I want this new implementation with the request body, what should I do? |
Hi @wistefan, please synchronize the latest master branch code to trigger the test. |
Hi @wistefan, please fix failed ci |
Hi @wistefan, do you have time to continue working on this PR? |
@Baoyuantop Yes, most likely beginning of next week |
@Baoyuantop Could you please appove the ci workflows? |
@wistefan, please fix failed ci |
Hello! What is the status of this? |
Need to fix the failed CI, waiting for a response from the author. |
Hello! Any news? |
Hi, sorry I will take care as soon as I find time. @LuciaCabanillasRodriguez help would be very welcome, do you have the time to take a look at the test failures? |
Hello! I tried to push a file to fix one of the issues, but I received a forbidden message. In any case, I solved it locally by running:
|
Regarding the error in t/discovery/consul_dump.t, I see that the test fails because the expected response from Consul isn’t being returned: It seems like either the service_a isn’t being registered properly in Consul during the test, or the endpoint isn’t responding as expected. As for the other warnings and errors like: These appear to be related to missing services (like Consul or Etcd) or SSL verification issues, but I’m not entirely sure how to fix it with certainty. |
Good! I could remove one issue, the other one remains! Any help?? I would need some guidance on how to fix it |
Maybe we can merge the master branch. |
|
| keepalive | boolean | False | true | | When set to `true`, keeps the connection alive for multiple requests. | | ||
| keepalive_timeout | integer | False | 60000ms | [1000, ...]ms | Idle time after which the connection is closed. | | ||
| keepalive_pool | integer | False | 5 | [1, ...]ms | Connection pool limit. | | ||
| with_route | boolean | False | false | | When set to true, sends information about the current Route. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to modify Chinese documents synchronously
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated!
docs/en/latest/plugins/opa.md
Outdated
| with_route | boolean | False | false | | When set to true, sends information about the current Route. | | ||
| with_service | boolean | False | false | | When set to true, sends information about the current Service. | | ||
| with_consumer | boolean | False | false | | When set to true, sends information about the current Consumer. Note that this may send sensitive information like the API key. Make sure to turn it on only when you are sure it is safe. | | ||
| with_body | boolean | False | false | | When set to true, sends the request body. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The request body may contain sensitive information (passwords, API keys, etc.), so a security warning needs to be added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have just added a security warning
POST /hello | ||
hello world | ||
--- response_body | ||
hello world |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to verify the body data received by OPA during the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I do something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to add more tests to verify this scenario.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @wistefan, could you please take a look? I’m running into some issues with Nginx and would appreciate your help. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @LuciaCabanillasRodriguez, do you need any help with this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any update here??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The failed CI needs to be fixed. Once it's finished, I'll ask other maintainers to review it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should I do something more??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please submit additional fixes to ensure all CI tests pass.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @wistefan, is there still time to deal with these?
Description
In order to make decisions based on the request body, the OPA-Plugin will also forward the body when configured to do so.
Fixes #11387
Checklist