moonming commented on pull request #2230:
URL: https://github.com/apache/apisix/pull/2230#issuecomment-692560517


   No, `YOUR_OWN_API_TOKEN` is just hint in doc, not api token itself.
   
   Thanks,
   Ming Wen
   Twitter: _WenMing
   
   
   YuanSheng Wang <notificati...@github.com> 于2020年9月15日周二 下午4:29写道:
   
   > *@membphis* commented on this pull request.
   > ------------------------------
   >
   > In bin/apisix
   > <https://github.com/apache/apisix/pull/2230#discussion_r488483897>:
   >
   > > +]]
   > +        if type(default_conf.apisix.admin_key) ~= "table" or
   > +           #default_conf.apisix.admin_key == 0
   > +        then
   > +            io.stderr:write(help, "\n")
   > +            os.exit(1)
   > +        end
   > +
   > +        for _, admin in ipairs(default_conf.apisix.admin_key) do
   > +            if type(admin.key) == "table" then
   > +                admin.key = ""
   > +            else
   > +                admin.key = tostring(admin.key)
   > +            end
   > +
   > +            if admin.key == "" or admin.key:gsub("*", "") == "" then
   >
   > In APISIX, the Admin API Key containing only * is invalid.
   > It is shadowy, but it works.
   >
   > If we use YOUR_OWN_API_TOKEN as Key, then we have to disable it here too.
   >
   > —
   > You are receiving this because you commented.
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/apisix/pull/2230#discussion_r488483897>, or
   > unsubscribe
   > 
<https://github.com/notifications/unsubscribe-auth/AGJZBK6OLV47AE3TNJ6YQM3SF4QXTANCNFSM4RMUDT4Q>
   > .
   >
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to