NNicoletti opened a new issue, #9728:
URL: https://github.com/apache/apisix/issues/9728

   ### Description
   
   Using helm chart 1.4.0 to install apisix 3.3.0 in decoupled mode.
   
   When trying to test out MQTT stuff I attempted to install the `mqtt-proxy` 
plugin. I've put it in both `stream_plugins` and `plugins` and nothing works. I 
didn't expect putting it into plugins to work, but it was worth a shot (it 
installs, but can't find files. Expected).
   
   When in `stream_plugins` it successfully reads that it exists in the logs 
with `12023/06/26 17:15:07 [warn] 49#49: *2 [lua] plugin.lua:252: 
load_stream(): new plugins: {"mqtt-proxy":true}, context: init_worker_by_lua*` 
however when I do a request to get all plugins with `curl 
[CLUSTER_IP]:9180/apisix/admin/plugins/list -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1'` and it's not in the returned response:
   
   ```
   
["real-ip","request-id","zipkin","ext-plugin-pre-req","fault-injection","serverless-pre-function","batch-requests","cors","ip-restriction","ua-restriction","referer-restriction","uri-blocker","request-validation","openid-connect","authz-casbin","wolf-rbac","hmac-auth","basic-auth","jwt-auth","key-auth","consumer-restriction","authz-keycloak","proxy-cache","proxy-mirror","proxy-rewrite","api-breaker","limit-conn","limit-count","limit-req","node-status","gzip","server-info","traffic-split","redirect","response-rewrite","grpc-transcode","grpc-web","prometheus","echo","http-logger","sls-logger","tcp-logger","kafka-logger","syslog","udp-logger","file-logger","serverless-post-function","ext-plugin-post-req"]
   ```
   
   Relevant parts of configs:
   
   Control Plane config.yaml:
   ```
   ...
       apisix:    # universal configurations
         enable_heartbeat: true
         enable_admin: true
   
   ...
       stream_plugins:
         - mqtt-proxy
       plugin_attr:
   ...
   ```
   
   I have the same thing in the data plane but without enable admin (I wasn't 
sure where plugins were needed, so I kept them the same to simplify figuring it 
out - I don't believe it effects anything since admin api isn't even enabled on 
the data plane side).
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.3.0
   - Operating system (run `uname -a`): x86_64 GNU/Linux
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): nginx 
version: openresty/1.21.4.1
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`): 3.5.0
   - APISIX Dashboard version, if relevant:
   - 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: [email protected]

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

Reply via email to