KMFtcy opened a new issue #3928:
URL: https://github.com/apache/apisix/issues/3928


   ### Issue description
   Hi there!
   I'm running apisix in a docker container. The docker image built from 
project https://github.com/apache/apisix-docker with command below
   ```
   docker build --build-arg APISIX_VERSION=2.3 --build-arg 
APISIX_DASHBOARD_VERSION=v2.4 -t apache/apisix-dashboard:whole -f 
./all-in-one/apisix-dashboard/Dockerfile .
   ```
   But when I access one route, it says:
   ```
   {"message":"Missing JWT token in request"}
   ```
   But I set no plugin at all.
   
   Here is my apisix config
   ```
   apisix:
     node_listen: 28888                # APISIX listening port
   ```
   And here's what returns when execute ”curl 
"http://localhost:28888/apisix/admin/routes/"; -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' | jq”
   ```
   {
     "node": {
       "key": "/apisix/routes",
       "dir": true,
       "nodes": [
         {
           "createdIndex": 435,
           "key": "/apisix/routes/347805553193389723",
           "value": {
             "vars": {},
             "uris": [
               "/grafana/*"
             ],
             "update_time": 1616917694,
             "upstream_id": "347806311959760539",
             "hosts": [
               "***" # a normal host
             ],
             "status": 1,
             "id": "347805553193389723",
             "methods": [
               "GET",
               "HEAD",
               "POST",
               "PUT",
               "DELETE",
               "OPTIONS",
               "PATCH"
             ],
             "create_time": 1616837864,
             "name": "grafana"
           },
           "modifiedIndex": 1794
         },
   ......
       ]
     },
     "count": "1",
     "action": "get"
   }
   
   ```
   And this is what it returns when I execute "curl localhost:28888/grafana/ -H 
'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1"
   ```
   {"message":"Missing JWT token in request"}
   ```
   Please tell me how to turn off JWT authentication.
   ### Environment
   
   * apisix version (cmd: `apisix version`): build from master
   * OS (cmd: `uname -a`): Linux 6a472e73906d 5.4.0-67-generic #75-Ubuntu SMP 
Fri Feb 19 18:03:38 UTC 2021 x86_64 Linux (run in docker) 
   * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): 
openresty/1.19.3.1
   * etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API): 3.4
   * apisix-dashboard version, if have:
   


-- 
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:
[email protected]


Reply via email to