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



##########
File path: conf/config.yaml
##########
@@ -43,5 +43,5 @@
 apisix:
   admin_key:
     - name: admin
-      key: edd1c9f034335f136f87ad84b625c8f1  # using fixed API token has 
security risk, please update it when you deploy to production environment
+      key: ${{APISIX_ADMIN_API_KEY}}

Review comment:
       I think it would be more flexible to replace with an environment 
variable. Users can modify the admin token through system environment 
variables. If the environment variable is not read. At this point, APISIX will 
generate a random token for it and prompt it on standard output and logs.




-- 
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-unsubscr...@apisix.apache.org

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


Reply via email to