This results in the path being stripped and any request to ,for example, /part1/part2/v1/healthcheck is re-written to be v1/healthcheck which no longer matches a valid route.
The only solution found so far to prevent the rewriting is to specify a specific middleware rule which does not match. for example
It appears that middleware is automatically assigned to any routes which are picked up from the traefik labels.
the middleware assigned is :
for the following traefik labels
This results in the path being stripped and any request to ,for example, /part1/part2/v1/healthcheck is re-written to be v1/healthcheck which no longer matches a valid route.
The only solution found so far to prevent the rewriting is to specify a specific middleware rule which does not match. for example
This ensures the path is not re-written using the sf-stripprefixregex_nonpartitioned middleware rule but is obviously not very elegant