Nginx.ingress.kubernetes.io/auth-type slows down response time

Cluster information:

Kubernetes version: 1.25.8-gke.500
Cloud being used: Google Cloud (Kubernetes Engine)
Installation method: Through Google Cloud Console (Standard Cluster)
Host OS: Container-Optimized OS

Hello Everyone

I’m using Nginx Ingress Controller version 1.7.0. I’ve two sites, with as far as I can see the same Ingress Config. The only difference is that the staging version of the site has nginx.ingress.kubernetes.io/auth-type: basic, nginx.ingress.kubernetes.io/auth-secret and nginx.ingress.kubernetes.io/auth-realm annotations (and a different domain). The staging version of the site becomes very slow when these annotations are added and when I’m removing them I’m seeing the same speeds as the production version. Why do these annotations slow down so much and is there any way I could fix it.

Thanks in advance.