guru-marimuthu opened a new issue, #11017:
URL: https://github.com/apache/apisix/issues/11017

   ### Current Behavior
   
   I am encountering an issue when attempting to create an Apisix consumer with 
Vault integration using the jwt-auth plugin. The specific error message 
received is as follows:
   
   ```json
   {"error_msg":"invalid plugins configuration: failed to check the 
configuration of plugin jwt-auth err: failed to validate dependent schema for 
\"algorithm\": value should match only one schema, but matches none"}
   
   
   ### Expected Behavior
   
   i was downgrade to version 3.0.0 to get this response and everything works 
fine in that version
   ```json
   
{"key":"\/apisix\/consumers\/jim","value":{"create_time":1709884444,"plugins":{"jwt-auth":{"vault":{},"exp":86400,"algorithm":"RS256","lifetime_grace_period":0,"key":"rsa-keypair","base64_secret":false}},"update_time":1709884444,"username":"jim"}}
   
   ### Error Logs
   
   ```json
   {"error_msg":"invalid plugins configuration: failed to check the 
configuration of plugin jwt-auth err: failed to validate dependent schema for 
\"algorithm\": value should match only one schema, but matches none"}
   
   
   ### Steps to Reproduce
   
   curl http://127.0.0.1:9080/apisix/admin/consumers -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "username": "john",
       "plugins": {
           "jwt-auth": {
               "key": "user-key",
               "algorithm": "RS256",
               "vault": {}
           }
       }
   }'
   
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.2.2
   - Operating system (run `uname -a`): linux
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): 
openresty/1.21.4.1
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9092/v1/server_info`): 
   {
   "version":"3.2.2",
   "boot_time":1709884758,
   "etcd_version":"3.5.0",
   "id":"bbf2eb6e-3980-4a16-abd8-5c74e4e5ba36",
   "hostname":"162da06eb704"
   }
   - APISIX Dashboard version, if relevant: 3.0.1
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to