-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
ext_proc does not honour HeaderAppendAction #36982
Comments
I fixed the same issue in ext_authz some time ago, so I could take it if no one is working on it yet. |
@jewertow sure please go ahead thanks |
@tyxia We need this as well and I tried taking a stab at it. Would appreciate if you could take a look at the PR. |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions. |
This issue had been there for a while and multiple folks asked ext_proc to support the append_action. There had been several attempts which are trying to support it, but later on facing the backward compatibility issue, and have to abandon the efforts eventually. If append.has_value() With this logic, if neither append, nor append_action is encoded, it took append_action default which is append_if_exist_or_add. That will be same as append = true. Thus keep it backward compatible if ext_proc filter is changed to have default append value to be "true". |
BTW, the ext_proc servers must be changed to always explicitly encode "true" or "false" in the "append" field: envoy/api/envoy/config/core/v3/base.proto Line 469 in 86ca8d7
|
Title: ext_proc does not honour HeaderAppendAction
Description:
When running envoy with the ext_proc filter and pointing to a server that returns header mutation, envoy does not honour the
AppendAction
field but only the deprecatedAppend
field as mentioned in the HeaderValueOption docs.Despite setting AppendAction to any supported value, envoy only overwrites the existing header or appends to it if append is true.
This is because the relevant code change is yet to be made in ext_proc despite the updated API
Link to the code that only checks the value of append
ext_proc server snippet :
The text was updated successfully, but these errors were encountered: