Hi,
I'm using traefik to receive HTTPS requests with basic authentication. In the access logs I see a request come on with a 200 response, but often this is followed by 1 or more 401 responses. For example:
user [16/Sep/2022:09:36:41 +0000] "POST /api/message/test HTTP/1.1" 200 12 "-" "-" 700329 "nifi-router@file" "http://nifi:3001" 31ms
- [16/Sep/2022:09:36:41 +0000] "POST /api/message/test HTTP/1.1" 401 17 "-" "-" 700331 "nifi-router@file" "-" 0ms
- [16/Sep/2022:09:36:41 +0000] "POST /api/message/test HTTP/1.1" 401 17 "-" "-" 700332 "nifi-router@file" "-" 0ms
- [16/Sep/2022:09:36:41 +0000] "POST /api/message/test HTTP/1.1" 401 17 "-" "-" 700335 "nifi-router@file" "-" 0ms
My config looks like this:
[http.middlewares.admin.basicAuth]
users = ["user:password", "user2:pass", ....]
[http.routers.nifi-router]
entrypoints = ["queue"]
rule = "Host(`queue.com`) && PathPrefix(`/api/message/test`)"
service = "nifi-3001"
middlewares = ["admin"]
[http.routers.nifi-router.tls]
[http.services]
[http.services.nifi-3001]
[[http.services.nifi-3001.loadBalancer.servers]]
url = "http://nifi:3001"
I don't understand why these 401 responses show up after there has been a 200 response already?