-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: opa plugins, add the ability to set headers #9704
Comments
@lingsamuel Please assign it to me. |
@Revolyssup
https://www.openpolicyagent.org/docs/latest/envoy-primer/#output-document |
Is this part of your use case? |
not really) sorry |
@Revolyssup pls help me to inspect how the OPA server works. and which HTTP header is must pass to the OPA server |
Description
opa plugin can set headers if the policy response is false - https://apisix.apache.org/docs/apisix/plugins/opa/#using-custom-response
I would like to be able to set headers for a request if the policy response is true.
Use cases - to send to the backend the status of the policy, the policy name, fields from the JWT token.
The changes are not so big, so I can prepare a MR
The text was updated successfully, but these errors were encountered: