Hello.
I am at the moment hosting a Traefik container and backend container in Scaleway.
To access containers in Scaleway while they are in private mode, a token must be passed to request header. In postman i use the token to first reach Traefik container and I used middlewares headers to have the token passed to the backend from traefik. But this is not working. Does anyone please have a clue for me ??
Below is my configuration :
``` api: insecure: false dashboard: true providers: file: filename: /etc/traefik/traefik.yaml entryPoints: web: address: ":8080" # The port my traefik container is listening log: level: DEBUG http: routers: auth-router: rule: "Host(`entry.path.io`) && PathPrefix(`/api/v1/`)" entryPoints: - web service: auth-service middlewares: - security-headers middlewares: security-headers: headers: customRequestHeaders: X-Auth-Token: xxxxx-something-aaaa-bbbbb-mm services: auth-service: loadBalancer: passHostHeader: false servers: - url: "https://target.path.io" ```
As container are in private mode The scenario is supposed to be :
-
I do a GET in postman to entry.path.io/api/v1 and in header tab i put X-Auth-Token: xxxxx-something-aaaa-bbbbb-mm
-
The request will be redirected to https://target.path.io and as stated in the yaml file, it will add itself again the header X-Auth-Token: xxxxx-something-aaaa-bbbbb-mm , because target container is also in private mode.
(This is what is not working

. Because when i pass this backend container to public, it works konwing that my Traefik container is still in private (1st step). It Means traefik is not being able to question the backend adding the header token)
I would appreciate any advice to have this working.
Thank you