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

help request: How to rewrite the request header before matching to the Consumer #11749

Open
jinxin231 opened this issue Nov 16, 2024 · 0 comments
Labels
question label for questions asked by users

Comments

@jinxin231
Copy link

jinxin231 commented Nov 16, 2024

Description

By using a custom plugin, dynamically create consumers and implement different limit count strategies on different consumers.

Because it is an online system and we do not want to change the current authentication strategy, we need to modify the existing authentication strategy in the plugin to match with a unique API key (choosing key-auth plugin), so it can match with the corresponding consumer.

The current issue is that proxy-write is not suitable for this scenario. How can we rewrite the request header?

Environment

  • APISIX version (run apisix version):3.9
  • Operating system (run uname -a):x86_64 GNU/Linux
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):
@dosubot dosubot bot added the question label for questions asked by users label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question label for questions asked by users
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant