Open FinerKeysen opened 10 months ago
Hi @FinerKeysen , can you please describe the issue in english ?
@sheharyaar i just updated the Q to English since there's only one sentence
@kayx23 @sheharyaar Is there any progress on this?
I also encountered the same problem
Current Behavior
In apisix release/2.13 and release/3.2, when using
hmac-auth
andproxy-rewrite
plugins simultaneously on a route, the rewrite phase of proxy-rewrite is observed to be executed twice.Expected Behavior
No response
Error Logs
2024/01/29 13:04:36 [warn] 26073#26073: 2 [lua] plugin.lua:252: load_stream(): new plugins: {"mqtt-proxy":true,"ip-restriction":true,"limit-conn":true,"syslog":true}, context: init_worker_by_lua 2024/01/29 13:04:36 [warn] 26071#26071: 60 [lua] config_etcd.lua:168: main etcd watcher started, revision=1374, context: ngx.timer 2024/01/29 13:04:36 [warn] 26074#26074: 80 [lua] config_etcd.lua:168: main etcd watcher started, revision=1374, context: ngx.timer 2024/01/29 13:04:36 [warn] 26073#26073: 93 [lua] config_etcd.lua:168: main etcd watcher started, revision=1374, context: ngx.timer 2024/01/29 13:05:29 [warn] 26073#26073: 3478 [lua] proxy-rewrite.lua:261: phasefunc(): 开始 》》》 proxy rewrite, client: 127.0.0.1, server: , request: "GET /api/v1/books?id=2 HTTP/1.1", host: "127.0.0.1:27151" 2024/01/29 13:05:29 [warn] 26073#26073: 3478 [lua] proxy-rewrite.lua:351: phasefunc(): 结束 << << << proxy rewrite, client: 127.0.0.1, server: , request: "GET /api/v1/books?id=2 HTTP/1.1", host: "127.0.0.1:27151" 2024/01/29 13:05:29 [warn] 26073#26073: 3478 [lua] proxy-rewrite.lua:261: phasefunc(): 开始 》》》 proxy rewrite, client: 127.0.0.1, server: , request: "GET /api/v1/books?id=2 HTTP/1.1", host: "127.0.0.1:27151" 2024/01/29 13:05:29 [warn] 26073#26073: *3478 [lua] proxy-rewrite.lua:351: phasefunc(): 结束 << << << proxy rewrite, client: 127.0.0.1, server: , request: "GET /api/v1/books?id=2 HTTP/1.1", host: "127.0.0.1:27151"
Steps to Reproduce
1、run with apisix source code
Add debu log in proxy_rewrite plugin
config.yaml
2、http-client.env
3、create upstream
A book review demo
4、create consumer
5、create route wih hmac-auth and proxy-rewrite plugin
6、request this route
Environment
apisix version
): release/2.13 or release/3.2uname -a
): Linux 0000000g-ZDXrgOHSNP 5.4.0-149-generic 18.04.1-Ubuntu SMP Fri Apr 21 16:42:44 UTC 2023 x86_64 x86_64 x86_64 GNU/Linuxopenresty -V
ornginx -V
): nginx version: openresty/1.25.3.1 built with OpenSSL 1.1.1w 11 Sep 2023 TLS SNI support enabledcurl http://127.0.0.1:9090/v1/server_info
): v3.5.1luarocks --version
): 3.8.0