You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when use duplicate signature header, hmac auth plugin will panic and return 500
Expected Behavior
In APISIX, most of the obtained headers are used directly as strings. Only a few scenarios may be used as arrays, which need to be checked to ensure that the data is used as expected to avoid errors.
If it's a bug, please assign this issue to me, we can change core.request.header function return string instead of table to avoid this problem.
Error Logs
Steps to Reproduce
1、run apisix with master branch
2、add duplicate signature header in TEST 16: verify: invalid signature to file t/plugin/hmac-auth.t
Current Behavior
when use duplicate signature header, hmac auth plugin will panic and return 500
Expected Behavior
In APISIX, most of the obtained headers are used directly as strings. Only a few scenarios may be used as arrays, which need to be checked to ensure that the data is used as expected to avoid errors.
If it's a bug, please assign this issue to me, we can change
core.request.header
function return string instead of table to avoid this problem.Error Logs
Steps to Reproduce
1、run apisix with master branch
2、add duplicate signature header in
TEST 16: verify: invalid signature
to filet/plugin/hmac-auth.t
3、run test case for
t/plugin/hmac-auth.t
, and you can see 500 Internal Server ErrorEnvironment
apisix version
):uname -a
):openresty -V
ornginx -V
):curl http://127.0.0.1:9090/v1/server_info
):luarocks --version
):The text was updated successfully, but these errors were encountered: