Sebastian-Pietrzak opened a new issue, #2883:
URL: https://github.com/apache/apisix-dashboard/issues/2883

   ### Issue description
   
   It's not possible to setup consumer-restriction plugin with 
consumer_group_id type in Dashbaord.
   
   In [API 
documentation](https://apisix.apache.org/docs/apisix/plugins/consumer-restriction/
   ) it's in allowed values of type param and it works as expected in Admin 
API, although when creating such config through Dashboard, it rejects it with 
following error:
   ```
   Invalid plugin data
   /type should be equal to one of the allowed values: consumer_name, route_id, 
service_id
   ```
    
   
   
![image](https://github.com/apache/apisix-dashboard/assets/5096743/c1c32246-0cb8-47ca-bc35-b02763906365)
   
   
   ### Expected behavior
   
   It is possible to use customer-restriction plugin with consumer_group_id 
type as in apisix
   
   ### How to Reproduce
   
   1. Start creating route in Dashboard
   2. In plugins section enable consumer-restriction plugin and define 
following config:
   ```
   {
     "type": "consumer_group_id",
     "whitelist": ["test"]
   } 
   ```
   3. Submit
   
   ### Screenshots
   
   _No response_
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): 3.6.0
   - OS (cmd: `uname -a`): Darwin Kernel Version 23.0.0
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `etcd --version`): bitnami/etcd:3.5.9
   - apisix-dashboard version, if have: apache/apisix-dashboard:3.0.1-alpine
   - Browser version, if have: Chrome Version 119.0.6045.123 (Official Build) 
(arm64)
   
   
   
   ### Additional context
   
   _No response_


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

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to