-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
listener: deprecate use_proxy_proto #14085
Comments
Background It's doesn't make much sense if the owning listener has filter chain request proxy proto while other filter chain don't. We should deprecate this field in FilterChain, WDTY? |
Yes, we should deprecate it, but I'm more concerned about whether we block it or not right now. Do we have a check that it's all or none? If not can we add it behind a runtime guard? |
Incidentally, it seems this behavior has been around for a while, it looks like since #1471 if I'm interpreting the code right |
+1 for runtime guard and add warning message |
I'd say don't change the behavior, deprecate it, and make sure docs show how to add it to the listener filters explicitly. |
My concern is the existing behavior makes absolutely no sense. How can it work at all? I'm fine with whatever approach we want, definitely deprecation, but I'm also potentially in favor of warn/fail on mismatch behind a runtime flag. |
I agree it makes no sense, but changing it has the risk of breaking someone's config that currently works (even if it doesn't make sense). And if we're deprecating it, the risk doesn't seem worth it. If we weren't going to deprecate it, I'd say definitely fix it (with runtime guard). |
OK sounds good. I'm fine either way, but let's definitely do the deprecation. |
I have a few questions about how to deprecate something (referring to the breaking change policy)
What does this mean in this case? For examples that use
But must there also be some code/tool that manipulates configuration for people?
Is this true for fuzzing tests as well? Referring to this test case For adding |
You only need to add for v3 and run Not fully sure about the fuzzer CC @asraa |
+1 on deprecate. The less magic in the filter chains the better IMHO (as well as existing behavior being broken). |
I think we should a) deprecate and also b) warn on mismatch (not all or nothing). I think this will give us good coverage. |
This is fixed. |
Title:
Check all filter chains before injecting proxy proto listener filterdeprecate use_proxy_protoDescription: See discussion here
The text was updated successfully, but these errors were encountered: