mhh12121 opened a new issue, #1235:
URL: https://github.com/apache/apisix-ingress-controller/issues/1235

   ### Issue description
   
   I set an apisxiroute with two plugin:
   - forward-auth
   - proxy-rewrite
   
   ```
   apiVersion: apisix.apache.org/v2beta3
   kind: ApisixRoute
   metadata:
     name: route-backend
     namespace: default
   spec:
     http:
     - name: srv
       match:
         paths:
         - /api/*
       backends: 
       - serviceName: backend
         servicePort: 80
         resolveGranularity: service
       plugins:
       - name: proxy-rewrite
         enable: true
         config: 
           regex_uri: ["^/api/(.*)","/$1"]
       - name: forward-auth
         enable: true
         config:
           uri: "http://auth.default.svc.cluster.local:1234/auth";
           request_headers: ["Authorization"]
           upstream_headers: ["user-id"]
           client_headers: ["Location"]
   ```
   
   It does not work at all, and it would route to an unexpected place..
   However, it works when I tried to delete one plugin and keep another one;
   for example, just keep proxy-rewrite:
   ```
   apiVersion: apisix.apache.org/v2beta3
   kind: ApisixRoute
   metadata:
     name: route-backend
     namespace: default
   spec:
     http:
     - name: srv
       match:
         paths:
         - /api/*
       backends: 
       - serviceName: backend
         servicePort: 80
         resolveGranularity: service
       plugins:
       - name: proxy-rewrite
         enable: true
         config: 
           regex_uri: ["^/api/(.*)","/$1"]
   ```
   
   
   
   ### Environment
   
   
   - my apisix version
   1.13.1-alpine
   
   - your apisix-ingress-controller version (output of 
apisix-ingress-controller version --long):
   1.4.0 
   
   - your Kubernetes cluster version (output of kubectl version):
   1.20.15
   
   - if you run apisix-ingress-controller in Bare-metal environment, also show 
your OS version (uname -a):
   No, it's all under official docker image


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