Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support envoy "safe retry on reset" policy value #6770

Closed
geomacy opened this issue Nov 19, 2024 · 3 comments · Fixed by #6772
Closed

Support envoy "safe retry on reset" policy value #6770

geomacy opened this issue Nov 19, 2024 · 3 comments · Fixed by #6772
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/needs-triage Indicates that an issue needs to be triaged by a project contributor.

Comments

@geomacy
Copy link

geomacy commented Nov 19, 2024

Envoy v1.31.0 introduced a new safe retry on reset setting reset-before-request . This release was included in Contour v1.30.1.

We want to use retries but want to avoid where possible the risk of retrying API operations that it would be unsafe to retry.

This issue proposes an update to the Contour validation enum for retryPolicy RetryOn to include the new policy value so that HTTPProxies can take advantage of this new, safer, behaviour.

From:

// RetryOn is a string type alias with validation to ensure that the value is valid.
// +kubebuilder:validation:Enum="5xx";gateway-error;reset;connect-failure;retriable-4xx;refused-stream;retriable-status-codes;retriable-headers;cancelled;deadline-exceeded;internal;resource-exhausted;unavailable
type RetryOn string

to

// RetryOn is a string type alias with validation to ensure that the value is valid.
// +kubebuilder:validation:Enum="5xx";gateway-error;reset;reset-before-request;connect-failure;retriable-4xx;refused-stream;retriable-status-codes;retriable-headers;cancelled;deadline-exceeded;internal;resource-exhausted;unavailable
type RetryOn string
@geomacy geomacy added kind/feature Categorizes issue or PR as related to a new feature. lifecycle/needs-triage Indicates that an issue needs to be triaged by a project contributor. labels Nov 19, 2024
Copy link

Hey @geomacy! Thanks for opening your first issue. We appreciate your contribution and welcome you to our community! We are glad to have you here and to have your input on Contour. You can also join us on our mailing list and in our channel in the Kubernetes Slack Workspace

@tsaarni
Copy link
Member

tsaarni commented Nov 22, 2024

Thanks for spotting this @geomacy! I opened a PR #6772.

@geomacy
Copy link
Author

geomacy commented Nov 22, 2024

Many thanks @tsaarni!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/needs-triage Indicates that an issue needs to be triaged by a project contributor.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants