You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "bin-53 (via GitHub)" <gi...@apache.org> on 2023/07/25 05:54:04 UTC

[GitHub] [apisix] bin-53 opened a new issue, #9890: The basic-auth for firefox cache

bin-53 opened a new issue, #9890:
URL: https://github.com/apache/apisix/issues/9890

   ### Description
   
   When I use the basic-auth plg-in, the first input is correct, successfully access the upstream, when I close the firefox browser, reopen, do not re-authentication can continue to access, I checked the browser, no cookie information, how to solve this? Close the browser, need to do base-earth authentication again, the browser is firefox!
   
   ### Environment
   
   - APISIX version (run `apisix version`):2.15
   - 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


[GitHub] [apisix] bin-53 commented on issue #9890: The basic-auth for firefox cache

Posted by "bin-53 (via GitHub)" <gi...@apache.org>.
bin-53 commented on issue #9890:
URL: https://github.com/apache/apisix/issues/9890#issuecomment-1649239795

   > @bin-53 Please share your route and consumer configuration as well
   
   the route:
   ```
   {
       "id": "470419635024429758",
       "create_time": 1689921552,
       "update_time": 1690268422,
       "uri": "/http/*",
       "name": "测试http",
       "priority": 1,
       "methods": [
           "PUT",
           "DELETE",
           "PATCH",
           "HEAD",
           "OPTIONS",
           "GET",
           "POST"
       ],
       "host": "yangcong.com.cn",
       "plugins": {
           "basic-auth": {
               "disable": false
           },
           "proxy-rewrite": {
               "headers": {
                   "ceshi": "aaa",
                   "ceshi1": "bbb",
                   "ceshi3": "ccc"
               },
               "method": "POST",
               "scheme": "http"
           },
           "redirect": {
               "http_to_https": true
           }
       },
       "upstream": {
           "nodes": [
               {
                   "host": "192.168.97.65",
                   "port": 9080,
                   "weight": 1
               },
               {
                   "host": "10.4.16.12",
                   "port": 19080,
                   "weight": 1
               }
           ],
           "retries": 3,
           "timeout": {
               "connect": 30,
               "send": 30,
               "read": 60
           },
           "type": "roundrobin",
           "checks": {
               "active": {
                   "concurrency": 10,
                   "healthy": {
                       "http_statuses": [
                           200,
                           302
                       ],
                       "interval": 10,
                       "successes": 2
                   },
                   "http_path": "/http/1k.txt",
                   "https_verify_certificate": true,
                   "port": 9080,
                   "req_headers": [
                       "ces:xwa",
                       "ces111:xwa"
                   ],
                   "timeout": 3,
                   "type": "http",
                   "unhealthy": {
                       "http_failures": 5,
                       "http_statuses": [
                           429,
                           404,
                           500,
                           501,
                           502,
                           503,
                           504,
                           505
                       ],
                       "interval": 5,
                       "tcp_failures": 6,
                       "timeouts": 3
                   }
               },
               "passive": {
                   "healthy": {
                       "http_statuses": [
                           200
                       ],
                       "successes": 5
                   },
                   "type": "https",
                   "unhealthy": {
                       "http_failures": 2,
                       "http_statuses": [
                           429,
                           500
                       ],
                       "tcp_failures": 2,
                       "timeouts": 7
                   }
               }
           },
           "scheme": "https",
           "pass_host": "pass",
           "keepalive_pool": {
               "idle_timeout": 60,
               "requests": 1000,
               "size": 320
           },
           "retry_timeout": 5000
       },
       "status": 1
   }
   ```
   the consumer is:
   ```
   {
       "username": "basic_auth",
       "desc": "basic_auth",
       "plugins": {
           "basic-auth": {
               "disable": false,
               "password": "1234",
               "username": "xubin123"
           }
       },
       "create_time": 1689930264,
       "update_time": 1690257196,
       "consumerNameStr": "basic-auth"
   }
   ```
   


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


[GitHub] [apisix] Revolyssup commented on issue #9890: The basic-auth for firefox cache

Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #9890:
URL: https://github.com/apache/apisix/issues/9890#issuecomment-1649200044

   @bin-53 Can you show the request headers when you reopen browser? Firefox might be caching authorization header


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


[GitHub] [apisix] Revolyssup commented on issue #9890: The basic-auth for firefox cache

Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #9890:
URL: https://github.com/apache/apisix/issues/9890#issuecomment-1649225798

   @bin-53 Please share your route and consumer configuration as well


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


[GitHub] [apisix] bin-53 closed issue #9890: The basic-auth for firefox cache

Posted by "bin-53 (via GitHub)" <gi...@apache.org>.
bin-53 closed issue #9890: The basic-auth for firefox cache
URL: https://github.com/apache/apisix/issues/9890


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


[GitHub] [apisix] bin-53 commented on issue #9890: The basic-auth for firefox cache

Posted by "bin-53 (via GitHub)" <gi...@apache.org>.
bin-53 commented on issue #9890:
URL: https://github.com/apache/apisix/issues/9890#issuecomment-1649216346

   > @bin-53 Can you show the request headers when you reopen browser and send request? Firefox might be caching authorization header
   
   ![image](https://github.com/apache/apisix/assets/131146587/a355ea97-3b79-4961-97ab-5ade29fc127d)
   Where is the basic-auth authentication successful with the cache? There is no information in the browser store


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