Skip to content

Commit b0f6c37

Browse files
authored
Fix issues with recent Emissary-Ingress version (#211)
* Added mitigation of the matching problem due the port in the GRPC Host header. Signed-off-by: Lukas Grundmann <[email protected]> * Emissary Ingress subchart deploys default listener by default. Signed-off-by: Lukas Grundmann <[email protected]>
1 parent 69d5ebe commit b0f6c37

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

build/package/helm/monoskope/values.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,20 @@ ambassador:
198198
enabled: false
199199
adminService:
200200
create: false
201+
createDefaultListeners: true
201202
module:
203+
# from https://github.com/emissary-ingress/emissary/issues/2276
204+
# strips away any port from the Host header before route mapping
205+
lua_scripts: |
206+
function envoy_on_request(request_handle)
207+
local authority = request_handle:headers():get(":authority")
208+
if(string.find(authority, ":") ~= nil)
209+
then
210+
local authority_index = string.find(authority, ":")
211+
local stripped_authority = string.sub(authority, 1, authority_index - 1)
212+
request_handle:headers():replace(":authority", stripped_authority)
213+
end
214+
end
202215
strip_matching_host_port: true # necessary for gRPC, see https://www.getambassador.io/docs/emissary/latest/howtos/grpc/#mappings-with-hosts
203216

204217
scimserver:

0 commit comments

Comments
 (0)