-
Notifications
You must be signed in to change notification settings - Fork 458
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
Error message shown up while adding Kafka integration (v0.3.6 on 7.12 BC2) #752
Comments
Pinging @elastic/integrations (Team:Integrations) |
@manishgupta-qasource Please review |
Reviewed & assigned to @EricDavisX |
I verified the issue and confirmed it is seen on v0.3.6 of the Kafka package, as the latest seen with a 7.12 stack currently. I don't see any other Kafka packages going through the package-storage stages - @masci let me know if you need any help seeing this or discussing testing. The team doesn't usually dive deep on any integrations other than System, Linux, Windows, and Endpoint - but we do exploratory tests and are happy to log bugs when we see them. for everyone, including @dikshachauhan-qasource foremost, we acknowledge prior discussion that some integrations Will Not function properly if there is no corresponding data pushing it, but since this is not even deployed to any Agent and fails at this stage it seems a clear bug. And I assume in the package, if it is believed on Fleet side (or other) please do push it back with comment, etc. Thanks. |
Thanks @EricDavisX and @dikshachauhan-qasource for catching this. Probably worth noting that currently there are no system tests defined for the |
I'm able to repro this error with Kibana 8.0.0-SNAPSHOT as well. Grabbed the full stack trace for the error from the Kibana server log:
|
Still not sure if this is a Fleet UI bug or an issue in the
|
Yep, this configuration concatenates two variables this way. This works in Filebeat and used to work in Fleet (at least till 7.11). It seems that now double-quoutes are being added to each placeholder, generating bad yaml:
This looks like some change in Fleet. |
Can someone from the @elastic/fleet team confirm? I wonder if this new behavior is expected or this can be considered a bug in the UI |
I suspect two issues:
For example: paths:
{{#each paths as |path i|}}
- {{kafka_home}}{{path}}
{{/each}} results in: @skh Could you please confirm the issue no. 2? EDIT: I understand that it may be hard to introduce a bugfix for concatenating unsafe fields, so maybe a special |
Maybe I was overeager in the fix for elastic/kibana#91401 . What I was trying to do is enclose strings in double quotes that contained characters with special meaning in yaml, because we had parsing errors on From this list of characters, which would you recommend to take out of this special handling?
|
Actually I would suggest to rethink the idea of escaping here as it will always harm concatenation. Maybe we should consider the package as the only source of truth? Whether a variable should be escaped or not. EDIT: there is always a nasty hack to silently remove all |
The |
I spoke too soon. The issues are the wildcards in the values |
transferring to Kibana repo. |
Fixed in elastic/kibana#93585 |
Kibana version:
7.12 BC2 Kibana Cloud environment
BUILD 39000
COMMIT 4f65a5a1268fa78f1af9117d12312e1cee433376
Steps to reproduce:
Expected Result:
No error message should be displayed while adding kafka integration to any Policy.
Screenshots:
The text was updated successfully, but these errors were encountered: