traefik / mesh

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

Exclude some http codes from retrying #833

Open igoooor opened 2 years ago

igoooor commented 2 years 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 2 years 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 2 years 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