Hi!
I raised this issue couple weeks ago but it got closed due to inactivity.
Is there anybody else running into something similar? Is there any other way to get access to the service the request is supposed to get routed to from within a middleware?
Thanks!
From what I have read, it’s not possible, middlewares don’t have access to later service.
You could also ask in the active Reddit Traefik community.
If it’s for logging only, you could use the Traefik debug and access log, build a readable API on top.
It was possible in the previous version with my "hacky workaround", but that's now no longer possible.
Indeed, for logging/metrics I guess I could work around it.
In the case of forwardAuth, I don't think I can. I need to know the service so I can verify the audience in a api-gateway like setup.