spacewander commented on code in PR #7747:
URL: https://github.com/apache/apisix/pull/7747#discussion_r950840865


##########
apisix/admin/init.lua:
##########
@@ -76,7 +76,7 @@ local function check_token(ctx)
 
     local admin
     for i, row in ipairs(local_conf.apisix.admin_key) do
-        if req_token == row.key then
+        if req_token == tostring(row.key) then

Review Comment:
   We can wrap the key with `""` to ensure key is a string?
   Like `"edd1c9f034335f136f87ad84b625c8f1"`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to