kingGang opened a new issue #404: URL: https://github.com/apache/apisix-ingress-controller/issues/404
### Issue description ### Environment * your apisix-ingress-controller version (output of `apisix-ingress-controller version --long`); # ./apisix-ingress-controller version --long Version: 0.5.0 Git SHA: Go Version: go1.13.8 Building OS/Arch: linux/amd64 Running OS/Arch: linux/amd64 /ingress-apisix # ersion: 0.5.0 Git SHA: Go Version: go1.13.8 Building OS/Arch: linux/amd64 Running OS/Arch: linux/amd64 * your Kubernetes cluster version (output of `kubectl version`); ~# kubectl version Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.0", GitCommit:"cb303e613a121a29364f75cc67d3d580833a7479", GitTreeState:"clean", BuildDate:"2021-04-08T16:31:21Z", GoVersion:"go1.16.1", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.14", GitCommit:"4d62230f10af41cec2851b5b113874f6d2098297", GitTreeState:"clean", BuildDate:"2021-03-22T23:01:55Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"} WARNING: version difference between client (1.21) and server (1.18) exceeds the supported minor version skew of +/-1 * if you run apisix-ingress-controller in Bare-metal environment, also show your OS version (`uname -a`). uname -a Linux apisix-apisix-ingress-controller-5bd45b5c5d-bx272 5.4.0-1043-azure #45~18.04.1-Ubuntu SMP Sat Mar 20 16:16:05 UTC 2021 x86_64 Linux ### Minimal test code / Steps to reproduce the issue 1.gui add cosumer config as follows: { "username": "admin", "plugins": { "jwt-auth": { "disable": false, "exp": 86400, "key": "admin", "secret": "*******" } } } 2. crd add route yaml file as follows: apiVersion: apisix.apache.org/v2alpha1 kind: ApisixRoute metadata: name: syscode-route namespace: prod spec: http: - name: syscode match: hosts: - syscode.lingo8.cn paths: - "/syscode/public/*" backends: - serviceName: syscode servicePort: 8009 resolveGranularity: service weight: 1 plugins: - name: jwt-auth enable: true 3. in cluster test pod request info: wget -S --header 'Authorization:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoicm9vdCIsIm9pZCI6IjVhYzgyYzIyNDI0OTQ2Mjg3Y2IzYTcwMiIsInVpZCI6InJvb3QiLCJyb2xlX2lkIjpudWxsLCJub25jZV9zdHIiOiIiLCJrZXkiOiJhZG1 pbiIsImV4cCI6MTYxOTM4NTQ5NywiaXNzIjoiY2FyZWRhaWx5In0.rr_ZD3iSwrgyaP5zpWTDKTYXIM6MhOaPLoSMiLQOsQQ' -q -O - http://syscode.lingo8.cn/syscode/public/code?update_at=0 HTTP/1.1 401 Unauthorized wget: server returned error: HTTP/1.1 401 Unauthorized 4、postman request return: {"message":"Missing related consumer"} ### What's the actual result? (including assertion message & call stack if applicable) ### What's the expected result? The request can pass the verification -- 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