apisix-dashboard
apisix-dashboard copied to clipboard
request help: 为什么插件编排后只有一个生效
Issue description
编排篇日志如下
为什么只有hmac-auth生效了,jwt-auth没生效呢
一直都是最后一个生效
Environment
- apisix version (cmd:
apisix version
): - OS (cmd:
uname -a
): - OpenResty / Nginx version (cmd:
nginx -V
oropenresty -V
): - etcd version, if have (cmd: run
curl http://127.0.0.1:9090/v1/server_info
to get the info from server-info API): - apisix-dashboard version, if have:
- the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner):
- luarocks version, if the issue is about installation (cmd:
luarocks --version
):
hi @feipengheart
Could you please provide the configuration data stored in etcd for the route?
hi @feipengheart
Could you please provide the configuration data stored in etcd for the route?
How can I find the configuration data stored in etcd
hi @feipengheart Could you please provide the configuration data stored in etcd for the route?
How can I find the configuration data stored in etcd
etcdctl get --prefix /apisix/routes/
hi @feipengheart
Could you please provide the configuration data stored in etcd for the route?
{
"uris":[
"/ai/api/image/smoke"
],
"name":"smoke",
"desc":"烟雾识别",
"methods":[
"POST",
"GET"
],
"script":{
"chart":{
"cells":[
{
"attrs":{
"line":{
"stroke":"#5F95FF",
"strokeWidth":1,
"targetMarker":{
"name":"classic",
"size":8
}
}
},
"id":"304ae1ca-5651-4247-84c1-a113908e6aa3",
"router":{
"name":"manhattan"
},
"shape":"edge",
"source":{
"cell":"c2598750-71c8-4c6e-9712-86ff7924c88b",
"port":"c2006592-b9b7-4969-88a0-e0c9c5afc897"
},
"target":{
"cell":"d350bf45-0626-4e66-8435-f404969261b5",
"port":"a6cd8c75-8b2c-4d9b-81a7-3a379f4a0131"
},
"zIndex":0
},
{
"attrs":{
"line":{
"stroke":"#5F95FF",
"strokeWidth":1,
"targetMarker":{
"name":"classic",
"size":8
}
}
},
"id":"665a7f4f-d27f-4641-9234-923f6459b628",
"router":{
"name":"manhattan"
},
"shape":"edge",
"source":{
"cell":"d350bf45-0626-4e66-8435-f404969261b5",
"port":"391e329a-ae4d-4815-8177-3ccf011869ea"
},
"target":{
"cell":"71107075-8c92-412f-9a7c-ee0287ff2575",
"port":"951bc09c-c5ac-4761-ab62-8fb332928086"
},
"zIndex":0
},
{
"attrs":{
"body":{
"rx":24,
"ry":24
},
"text":{
"textWrap":{
"text":"开始"
}
}
},
"id":"c2598750-71c8-4c6e-9712-86ff7924c88b",
"ports":{
"groups":{
"bottom":{
"attrs":{
"circle":{
"fill":"#fff",
"magnet":true,
"r":3,
"stroke":"#5F95FF",
"strokeWidth":1,
"style":{
"visibility":"hidden"
}
}
},
"position":"bottom"
},
"left":{
"attrs":{
"circle":{
"fill":"#fff",
"magnet":true,
"r":3,
"stroke":"#5F95FF",
"strokeWidth":1,
"style":{
"visibility":"hidden"
}
}
},
"position":"left"
},
"right":{
"attrs":{
"circle":{
"fill":"#fff",
"magnet":true,
"r":3,
"stroke":"#5F95FF",
"strokeWidth":1,
"style":{
"visibility":"hidden"
}
}
},
"position":"right"
},
"top":{
"attrs":{
"circle":{
"fill":"#fff",
"magnet":true,
"r":3,
"stroke":"#5F95FF",
"strokeWidth":1,
"style":{
"visibility":"hidden"
}
}
},
"position":"top"
}
},
"items":[
{
"group":"bottom",
"id":"c2006592-b9b7-4969-88a0-e0c9c5afc897"
}
]
},
"position":{
"x":370,
"y":90
},
"shape":"flow-chart-start-rect",
"size":{
"height":42,
"width":80
},
"zIndex":1
},
{
"attrs":{
"text":{
"text":"hmac-auth"
},
"title":{
"text":"hmac-auth"
}
},
"data":{
"disable":false
},
"id":"d350bf45-0626-4e66-8435-f404969261b5",
"ports":{
"groups":{
"bottom":{
"attrs":{
"circle":{
"fill":"#fff",
"magnet":true,
"r":3,
"stroke":"#5F95FF",
"strokeWidth":1,
"style":{
"visibility":"hidden"
}
}
},
"position":"bottom"
},
"top":{
"attrs":{
"circle":{
"fill":"#fff",
"magnet":true,
"r":3,
"stroke":"#5F95FF",
"strokeWidth":1,
"style":{
"visibility":"hidden"
}
}
},
"position":"top"
}
},
"items":[
{
"group":"top",
"id":"a6cd8c75-8b2c-4d9b-81a7-3a379f4a0131"
},
{
"group":"bottom",
"id":"391e329a-ae4d-4815-8177-3ccf011869ea"
}
]
},
"position":{
"x":310,
"y":188
},
"shape":"flow-chart-plugin-rect",
"size":{
"height":60,
"width":200
},
"zIndex":9
},
{
"attrs":{
"text":{
"text":"jwt-auth"
},
"title":{
"text":"jwt-auth"
}
},
"data":{
"disable":false
},
"id":"71107075-8c92-412f-9a7c-ee0287ff2575",
"ports":{
"groups":{
"bottom":{
"attrs":{
"circle":{
"fill":"#fff",
"magnet":true,
"r":3,
"stroke":"#5F95FF",
"strokeWidth":1,
"style":{
"visibility":"hidden"
}
}
},
"position":"bottom"
},
"top":{
"attrs":{
"circle":{
"fill":"#fff",
"magnet":true,
"r":3,
"stroke":"#5F95FF",
"strokeWidth":1,
"style":{
"visibility":"hidden"
}
}
},
"position":"top"
}
},
"items":[
{
"group":"top",
"id":"951bc09c-c5ac-4761-ab62-8fb332928086"
},
{
"group":"bottom",
"id":"8b6f7097-ecc8-4049-bbba-47132b82d40c"
}
]
},
"position":{
"x":310,
"y":498
},
"shape":"flow-chart-plugin-rect",
"size":{
"height":60,
"width":200
},
"zIndex":10
}
]
},
"conf":{
"71107075-8c92-412f-9a7c-ee0287ff2575":{
"conf":{
"disable":false
},
"name":"jwt-auth"
},
"d350bf45-0626-4e66-8435-f404969261b5":{
"conf":{
"disable":false
},
"name":"hmac-auth"
}
},
"rule":{
"d350bf45-0626-4e66-8435-f404969261b5":[
[
"",
"71107075-8c92-412f-9a7c-ee0287ff2575"
]
],
"root":"d350bf45-0626-4e66-8435-f404969261b5"
}
},
"script_id":"370696081341678274",
"upstream_id":"370692482192638658",
"status":1
}
This issue has been marked as stale due to 30 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.
hi @bzp2010, could you help fix this issue? I don't have enough time currently. thanks.
OK, I'll check it out.
After trying, no such case was found, and in my case, both hmac and jwt authentication were successfully triggered.
After trying, no such case was found, and in my case, both hmac and jwt authentication were successfully triggered.
OK, thanks!