You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kernel (e.g. uname -a): 4.4.65-k8s Basic structure #1 SMP Tue May 2 15:48:24 UTC 2017 x86_64 Linux
Install tools: Kops
What happened:
External auth feature stopped working when nginx is started with --enable-dynamic-configuration=true
What you expected to happen:
External auth to work properly
How to reproduce it (as minimally and precisely as possible):
Create ingress file that uses auth-url
Make a request to a url that should use the auth-url in ingress
Anything else we need to know:
Dynamic configuration works for everything beside external auth. The backends are correctly configured and requests succeed.
How external auth is configured in ingress (the annotation has correct prefix, and localhost means that the external auth server is running as a sidecar for nginx)
"POST /path HTTP/1.1" 200 0 "-" "Main (Main)" 0 0.975 [external-authentication] 127.0.0.1:8886 0 0.975 200 a158d8a6e08c556a1fad5c39aeed28f6
2018/03/21 21:06:12 [error] 178#178: *728 failed to run balancer_by_lua*: /etc/nginx/lua/balancer.lua:31: attempt to index local 'backend' (a nil value)
stack traceback:
/etc/nginx/lua/balancer.lua:31: in function 'balance'
/etc/nginx/lua/balancer.lua:97: in function 'call'
balancer_by_lua:2: in function <balancer_by_lua:1> while connecting to upstream, client: IP, server: server, request: "POST /path HTTP/1.1", host: "host"
@mikksoone I could re-generate the issue locally and know what's the problem - it is because in athe subrequest for authentication proxy_upstream_name variable gets overridden. I'll open a PR with fix today or tomorrow and ping you there.
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
NGINX Ingress controller version:master (0.346)
Kubernetes version (use
kubectl version
):Environment:
uname -a
): 4.4.65-k8s Basic structure #1 SMP Tue May 2 15:48:24 UTC 2017 x86_64 LinuxWhat happened:
External auth feature stopped working when nginx is started with --enable-dynamic-configuration=true
What you expected to happen:
External auth to work properly
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:
Dynamic configuration works for everything beside external auth. The backends are correctly configured and requests succeed.
How external auth is configured in ingress (the annotation has correct prefix, and localhost means that the external auth server is running as a sidecar for nginx)
Nginx failure log:
Nginx startup logs:
Related issue: #2231
The text was updated successfully, but these errors were encountered: