Current Behavior
- Use the
PATCH method to update the Secret resource:
curl http://127.0.0.1:9180/apisix/admin/secrets/vault/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -XPATCH -d '{
"token" : "apisix"
}'
{"error_msg":"no secret id and/or sub path in uri"}
- Update the Secret resource using the
PATCH method, with the path parameter as normal.
curl http://127.0.0.1:9180/apisix/admin/secrets/vault/1/token -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -XPATCH -d '"apisix"'
{"value":{"prefix":"/apisix/kv","token":"apisix","uri":"https://localhost/vault","id":"vault/1","update_time":1684399820,"create_time":1684395392},"key":"/apisix/secrets/vault/1"}
Expected Behavior
Update Secret resource using PATCH method, supports no path parameter.
Error Logs
No response
Steps to Reproduce
- Run APISIX via the Docker image
- Create new secrets configuration.
curl -i http://127.0.0.1:9180/apisix/admin/secrets/vault/1 \
-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -XPUT -d '
{
"uri": "http://xxx/get",
"prefix" : "apisix",
"token" : "apisix"
}'
- Update the secrets configuration.
curl http://127.0.0.1:9180/apisix/admin/secrets/vault/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -XPATCH -d '{
"token" : "apisix"
}'
see the error: {"error_msg":"no secret id and/or sub path in uri"}
Environment
- APISIX version (run
apisix version): v3.2.0
- Operating system (run
uname -a): M1
- OpenResty / Nginx version (run
openresty -V or nginx -V):
- etcd version, if relevant (run
curl http://127.0.0.1:9090/v1/server_info):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run
luarocks --version):
Current Behavior
PATCHmethod to update the Secret resource:PATCHmethod, with thepathparameter as normal.Expected Behavior
Update Secret resource using
PATCHmethod, supports nopathparameter.Error Logs
No response
Steps to Reproduce
see the error:
{"error_msg":"no secret id and/or sub path in uri"}Environment
apisix version): v3.2.0uname -a): M1openresty -Vornginx -V):curl http://127.0.0.1:9090/v1/server_info):luarocks --version):