riskgod opened a new issue #4001:
URL: https://github.com/apache/apisix/issues/4001


   ### Issue description
   Hey, I have enable one consumer named jack_auth.
   #### This is the consumer
   ```
   $ curl http://127.0.0.1:9180/apisix/admin/consumers/jack_auth -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1'
   ```
   ```
   {
      "action":"get",
      "node":{
         "value":{
            "update_time":1617788738,
            "create_time":1617788738,
            "username":"jack_auth",
            "plugins":{
               "key-auth":{
                  "key":"auth-jack",
                  "disable":false
               },
               "limit-req":{
                  "key":"consumer_name",
                  "rejected_code":403,
                  "disable":false,
                  "rate":1,
                  "burst":1
               }
            },
            "id":"jack_auth"
         },
         "key":"\/apisix\/consumers\/jack_auth"
      },
      "count":"1"
   }
   ```
   
   #### Enable in one router
   ```
   $ curl http://127.0.0.1:9180/apisix/admin/routes/112 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   ```
   ```
   {
       "methods": ["GET"],
       "uri": "/testgrpc8",
       "plugins": {
           "grpc-transcode": {
               "proto_id": "1",
               "service": "helloworld.Greeter",
               "method": "SayHello"
           },
           "key-auth": {
               "key": "auth_jack"
           }
       },
       "upstream": {
           "scheme": "grpc",
           "type": "roundrobin",
           "nodes": {
               "taie-address-service.taie.svc.cluster.local:8081": 1
           }
       }
   }'
   
   ```
   
   #### But it failed
   
   ```
   {"error_msg":"failed to check the configuration of plugin key-auth err: 
additional properties forbidden, found key"}
   ```
   ### Environment
   
   * apisix version (cmd: `apisix version`): 2.5
   * OS (cmd: `uname -a`): k8s
   
   


-- 
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