ingress-nginx-helm/internal/ingress/controller/template
Gabor Lekeny 83ce21b4dd
Add keepalive support for auth requests (#8219)
* Add keepalive support for auth requests

* Fix typo

* Address PR comments

* Log warning when auth-url contains variable in its host:port
* Generate upstream name without replacing dots to underscores in server name
* Add comment in the nginx template when the keepalive upstream block is referenced

* Workaround for auth_request module ignores keepalive in upstream block

* The `auth_request` module does not support HTTP keepalives in upstream block:
  https://trac.nginx.org/nginx/ticket/1579
* As a workaround we use ngx.location.capture but unfortunately it does not
  support HTTP/2 so `use-http2` configuration parameter is needed.

* Handle PR comments

* Address PR comments

* Handle invalid values for int parameters

* Handle PR comments

* Fix e2e test
2022-04-08 20:22:04 -07:00
..
buffer_pool.go Simplify initialization function of bytes.Buffer 2019-10-12 08:36:54 -07:00
configmap.go allow kb granularity for lua shared dicts (#6750) 2021-08-12 11:13:50 -07:00
configmap_test.go allow kb granularity for lua shared dicts (#6750) 2021-08-12 11:13:50 -07:00
template.go Add keepalive support for auth requests (#8219) 2022-04-08 20:22:04 -07:00
template_test.go Add keepalive support for auth requests (#8219) 2022-04-08 20:22:04 -07:00