You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/01/27 10:16:22 UTC

[GitHub] [apisix] tokers commented on a change in pull request #6214: fix(admin-token): fixed token is used by default

tokers commented on a change in pull request #6214:
URL: https://github.com/apache/apisix/pull/6214#discussion_r793454944



##########
File path: apisix/init.lua
##########
@@ -86,6 +88,12 @@ function _M.http_init(args)
             core.log.error("failed to load the configuration: ", err)
         end
     end
+
+    local is_cli_token = getenv(cli_util.ADMIN_TOKEN_TAG_KEY)
+    if is_cli_token and tonumber(is_cli_token) == 1 then
+        core.log.warn("admin token has been automatically created by the system, ",

Review comment:
       system is too generic, using `apisix` will be better.




-- 
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: notifications-unsubscribe@apisix.apache.org

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