Closed andrewkroh closed 3 years ago
Packages use a Handlebar template function to check if tags contains forwarded as a value. But they put the arguments to the function in the wrong order. The function is defined at https://github.com/elastic/kibana/blob/fd0c1fa490c2e4eab5a3cbc96c8f3703cc4962f6/x-pack/plugins/fleet/server/services/epm/agent/agent.ts#L114.
tags
forwarded
The impact is that when tags contains more than just [forwarded] then host.name of the Agent is included rather than allowing the forwarded host.name value to pass through.
[forwarded]
host.name
CORRECT Usage:
{{#contains "forwarded" tags}}
WRONG:
{{#contains tags "forwarded"}}
Affected Integrations
This was fixed by a series of PRs. https://github.com/elastic/integrations/search?q=Fix+contains+check+for+forwarded+tag&type=issues
Packages use a Handlebar template function to check if
tags
containsforwarded
as a value. But they put the arguments to the function in the wrong order. The function is defined at https://github.com/elastic/kibana/blob/fd0c1fa490c2e4eab5a3cbc96c8f3703cc4962f6/x-pack/plugins/fleet/server/services/epm/agent/agent.ts#L114.The impact is that when
tags
contains more than just[forwarded]
thenhost.name
of the Agent is included rather than allowing the forwardedhost.name
value to pass through.CORRECT Usage:
{{#contains "forwarded" tags}}
WRONG:
{{#contains tags "forwarded"}}
Affected Integrations