fekitibi commented on code in PR #12484: URL: https://github.com/apache/apisix/pull/12484#discussion_r2283092069
########## t/cli/common.sh: ########## @@ -39,5 +39,33 @@ exit_if_not_customed_nginx() { openresty -V 2>&1 | grep apisix-nginx-module || exit 0 } +get_admin_key() { + # First try to get the key from config.yaml + local admin_key=$(yq '.deployment.admin.admin_key[0].key' conf/config.yaml | sed 's/"//g') + echo "DEBUG: config.yaml admin_key: '$admin_key'" >&2 + # If the key is empty (auto-generated), extract it from logs + if [ -z "$admin_key" ] || [ "$admin_key" = "''" ] || [ "$admin_key" = "null" ]; then Review Comment: Done -- 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