You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "LoveleeKay (via GitHub)" <gi...@apache.org> on 2024/04/22 08:37:54 UTC
[I] bug: forward-auth plugin return 502 when my forward-auth service return 401 [apisix]
LoveleeKay opened a new issue, #11180:
URL: https://github.com/apache/apisix/issues/11180
### Current Behavior
bug: forward-auth plugin return 502 when my forward-auth service return 401
### Expected Behavior
forward-auth plugin return 502 when my forward-auth service return 401
### Error Logs



### Steps to Reproduce
It can only be reproduced on a mobile phone, and it occurs sporadically.
### Environment
- APISIX version (run `apisix version`):3.0.0
- Operating system (run `uname -a`):
- 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`):
--
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-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: forward-auth plugin return 502 when my forward-auth service return 401 [apisix]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #11180:
URL: https://github.com/apache/apisix/issues/11180#issuecomment-2804525483
This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: forward-auth plugin return 502 when my forward-auth service return 401 [apisix]
Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #11180:
URL: https://github.com/apache/apisix/issues/11180#issuecomment-2075056456
Please send the configuration in plain text, I cannot copy paste from a screenshot and neither does google index it 🙂
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: forward-auth plugin return 502 when my forward-auth service return 401 [apisix]
Posted by "kayx23 (via GitHub)" <gi...@apache.org>.
kayx23 commented on issue #11180:
URL: https://github.com/apache/apisix/issues/11180#issuecomment-2081854201
would you be able to try a newer version of APISIX and see if this is still an issue?
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: forward-auth plugin return 502 when my forward-auth service return 401 [apisix]
Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #11180:
URL: https://github.com/apache/apisix/issues/11180#issuecomment-2072786706
@LoveleeKay you can atleast provide the route/upstream configurations. And what request the client makes.
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: forward-auth plugin return 502 when my forward-auth service return 401 [apisix]
Posted by "LoveleeKay (via GitHub)" <gi...@apache.org>.
LoveleeKay commented on issue #11180:
URL: https://github.com/apache/apisix/issues/11180#issuecomment-2076458583
@shreemaan-abhishek **It's hard to reproduce, I only reproduce it on specific phones**
forward-auth route
`{
"uris": [
"/sso-web/*"
],
"name": "sso-web-qas",
"methods": [
"GET",
"POST",
"HEAD",
"PUT",
"PATCH",
"DELETE"
],
"host": "apisixqas.ppp.com",
"upstream": {
"nodes": [
{
"host": "ssoqas.ppp.com",
"port": 443,
"weight": 1
}
],
"timeout": {
"connect": 6,
"send": 6,
"read": 600
},
"type": "roundrobin",
"hash_on": "vars",
"scheme": "https",
"pass_host": "node",
"keepalive_pool": {
"idle_timeout": 60,
"requests": 1000,
"size": 320
}
},
"status": 1
}`
upstream route
`{
"uri": "/personcenterfront-web/*",
"name": "person-qas",
"methods": [
"GET",
"POST",
"PUT",
"DELETE",
"PATCH",
"HEAD",
"OPTIONS",
"CONNECT",
"TRACE",
"PURGE"
],
"host": "apisixqas.ppp.com",
"plugin_config_id": "checkUrlAuth-qas",
"upstream": {
"nodes": [
{
"host": "personqas.ppp.com",
"port": 443,
"weight": 1
}
],
"timeout": {
"connect": 6,
"send": 6,
"read": 600
},
"type": "roundrobin",
"scheme": "https",
"pass_host": "node",
"keepalive_pool": {
"idle_timeout": 60,
"requests": 1000,
"size": 320
}
},
"status": 1
}`
forward-auth plugin config
`{
"key": "/apisix/plugin_configs/checkUrlAuth-qas",
"value": {
"id": "checkUrlAuth-qas",
"create_time": 1684850158,
"plugins": {
"forward-auth": {
"request_headers": [
"cookie",
"timestamp"
],
"request_method": "POST",
"client_headers": [
"Location"
],
"upstream_headers": [
"account",
"name"
],
"keepalive_timeout": 60000,
"keepalive_pool": 5,
"uri": "https://apisixqas.ppp.com/sso-web/auth/checkUrlAuth",
"ssl_verify": false,
"timeout": 3000,
"keepalive": true
},
"request-validation": {
"rejected_code": 400,
"header_schema": {
"properties": {},
"type": "object"
}
}
},
"update_time": 1688978755,
"desc": "checkUrlAuth-qas"
},
"modifiedIndex": 1170,
"createdIndex": 111
}`
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: forward-auth plugin return 502 when my forward-auth service return 401 [apisix]
Posted by "nitishfy (via GitHub)" <gi...@apache.org>.
nitishfy commented on issue #11180:
URL: https://github.com/apache/apisix/issues/11180#issuecomment-2071880040
Please provide the steps to reproduce this issue!
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: forward-auth plugin return 502 when my forward-auth service return 401 [apisix]
Posted by "LoveleeKay (via GitHub)" <gi...@apache.org>.
LoveleeKay commented on issue #11180:
URL: https://github.com/apache/apisix/issues/11180#issuecomment-2073910679
@shreemaan-abhishek
this is the forward-auth route configurations

this is the upstream route configurations

this is the forward-auth plugin config

--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: forward-auth plugin return 502 when my forward-auth service return 401 [apisix]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #11180:
URL: https://github.com/apache/apisix/issues/11180#issuecomment-2841470879
This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: forward-auth plugin return 502 when my forward-auth service return 401 [apisix]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #11180: bug: forward-auth plugin return 502 when my forward-auth service return 401
URL: https://github.com/apache/apisix/issues/11180
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org