-
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
help request: OPA PLUGIN #11908
Comments
Please see if |
Thank you very much for your comment! Just something like that I was trying, the problem I think is that not all the OPA response is saved in the ctx so if I want to access a particular field of the OPA result I can not access as easily as in the example |
Perhaps you could use the serverless function to parse the response and register the value into a variable, if appropriate? For instance https://docs.api7.ai/hub/serverless-functions#register-custom-variables |
And how could I access that field in the OPA result?
Thanks! :) |
Description
Hi,
I’m setting up a route in APISIX where the URI is dynamic and depends on the user making the request. To achieve this, I’m using the OPA plugin. Within its result, I set a field called dynamic_metadata, which contains the URI the user is allowed to access.
However, I haven’t been able to retrieve this value from APISIX to include it as a variable in the URI. I tried configuring this using the proxy-rewrite plugin, but I haven’t achieved the desired result.
I would greatly appreciate any kind of help to resolve this issue.
Thanks!
Environment
apisix version
): 3.10.0uname -a
):openresty -V
ornginx -V
):curl http://127.0.0.1:9090/v1/server_info
): 3.5.0luarocks --version
):The text was updated successfully, but these errors were encountered: