traefik / mesh

Traefik Mesh - Simpler Service Mesh
https://traefik.io/traefik-mesh
Apache License 2.0
2.02k stars 142 forks source link

Exclude some http codes from retrying #833

Open igoooor opened 1 year ago

igoooor commented 1 year ago

Welcome!

Proposal

It would be nice to be able to exclude some http response codes from the retry configuration. For example, don't retry if it's a 403

Background

I have the Traefik Proxy "Owasp" plugin enabled, which will reject some requests with a 403 response, but Traefik Mesh seems to retry these requests.

Workarounds

None yet

kevinpollet commented 1 year ago

Hello @igoooor and thanks for your interest in Traefik Mesh,

We rely on the Retry middleware from Traefik which reissues requests a given number of times to a backend server if that server does not reply (network error). To support that behavior, we will have to wait for https://github.com/traefik/traefik/issues/4578 to be accepted and implemented.

igoooor commented 1 year ago

Thank you for your answer and sorry for the duplicate in that case. Feel free to close my issue if you believe the issue on traefik/traefik is sufficient