-
Notifications
You must be signed in to change notification settings - Fork 434
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
Gloo can't perform more than 2 transformations (HTTP filter) #4063
Comments
NOTE: the generated envoy config looks good but don't know how it's actually parsed by our Transformation filter: "dynamic_route_configs": [
{
"version_info": "11860265109372557540",
"route_config": {
"@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration",
"name": "listener-::-8080-routes",
"virtual_hosts": [
{
"name": "gloo-system_httpbin-vs",
"domains": [
"*"
],
"routes": [
{
"match": {
"prefix": "/"
},
"route": {
"cluster": "default-httpbin-8000_gloo-system"
},
"typed_per_filter_config": {
"io.solo.transformation": {
"@type": "type.googleapis.com/envoy.api.v2.filter.http.RouteTransformations",
"transformations": [
{
"request_match": {
"match": {
"prefix": "/",
"headers": [
{
"name": "x-custom-header-a",
"present_match": true,
"invert_match": true
}
]
},
"request_transformation": {
"transformation_template": {
"headers": {
"x-custom-header-a": {
"text": "abc-def"
}
},
"passthrough": {}
}
}
}
},
{
"request_match": {
"match": {
"prefix": "/",
"headers": [
{
"name": "x-custom-header-b",
"present_match": true,
"invert_match": true
}
]
},
"request_transformation": {
"transformation_template": {
"headers": {
"x-custom-header-b": {
"text": "ghi-jkl"
}
},
"passthrough": {}
}
}
}
}
]
}
}
}
], |
I also noticed this problem. It prevents using transformations with XSLT transformations for the same matcher. This can be problematic |
This issue has been marked as stale because of no activity in the last 180 days. It will be closed in the next 180 days unless it is tagged "no stalebot" or other activity occurs. |
This issue has been closed due to no activity in the last 12 months. |
Describe the bug
Gloo can't perform more than 2 transformations (HTTP filter).
In my context, I need to declare multiple transformations blocks, having different matchers (testing if different headers are present or not).
That's why I cannot merge these transformations under one single block.
To Reproduce
Steps to reproduce the behavior:
curl -X GET $(glooctl proxy url --port http)/get
Expected behavior
All of the transformation to be executed.
Additional context
It works with 2 transfo if I split them into the
early
stage andregular
stage. But it won't work with more than 2 transfo.The text was updated successfully, but these errors were encountered: