Hi,
I am having trouble to make http basic auth work for my ingress.
I believe I have properly setup my secret and my ingress annotations, according to the docs. As a matter of fact, requests are routed to my backend, and indeed the path prefix is stripped, as of my rewrite rule, however, no matter what I do, basic auth challenge never seems to get triggered.
I inspected the generated haproxy.cfg inside my ingress controller pod, and I noticed the txn.path variable is used before it is actually declared, see this snippet:
frontend httpfront-...
...
http-request auth realm ... if { var(txn.path) -m ... } !{ http_auth(...)}
...
http-request set-var(txn.path) path
...
use_backend ... if { var(txn.path) -m ... }
...
(I omitted the specifics related to my setup)
I am far from an expert when it comes to HAProxy configuration, however I was wondering whether this could be an actual bug, or a simply user error from my side? As a side note, I have succesfully setup http basic auth with other ingress controllers, such as traefik and nginx.
Anyway, If you need further info please let me know. I'll be more than happy to provide with as much detail as needed in order to get this sorted out.
Thanks in advance,
Pedro.
Hi,
I am having trouble to make http basic auth work for my ingress.
I believe I have properly setup my secret and my ingress annotations, according to the docs. As a matter of fact, requests are routed to my backend, and indeed the path prefix is stripped, as of my rewrite rule, however, no matter what I do, basic auth challenge never seems to get triggered.
I inspected the generated haproxy.cfg inside my ingress controller pod, and I noticed the txn.path variable is used before it is actually declared, see this snippet:
(I omitted the specifics related to my setup)
I am far from an expert when it comes to HAProxy configuration, however I was wondering whether this could be an actual bug, or a simply user error from my side? As a side note, I have succesfully setup http basic auth with other ingress controllers, such as traefik and nginx.
Anyway, If you need further info please let me know. I'll be more than happy to provide with as much detail as needed in order to get this sorted out.
Thanks in advance,
Pedro.