Skip to content

help request: How to dynamically pass parameters(sk-xxx) from Consumer to a ai-proxy plugin? #13150

@ZZYhho

Description

@ZZYhho

Description

I am looking for a way to dynamically pass specific parameters configured at the Consumer level to a plugin executed within a Route.

Specifically, I have stored a credential (e.g., Bearer sk-xx) in the Consumer's configuration, and I need a downstream plugin in the matching route to access and use this value during the request lifecycle.

Environment

  • APISIX version (run apisix version): 3.15
  • Operating system (run uname -a):
  • 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):

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionlabel for questions asked by users

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions