[Fleet] Simplified package policy schema validation fails both in preconfiguration and api #213067
Labels
bug
Fixes for quality problems that affect the customer experience
Team:Fleet
Team label for Observability Data Collection Fleet team
Kibana version:
Versions >= 8.15.1
Describe the bug:
When trying to generate a package policy using the simplified schema, the validation fails on the streams portion of the policy. This happens both with preconfiguration and with regular API create.
Steps to reproduce:
Preconfiguration
kibana.dev.yml
- integration used iselasticsearch-1.15.2
Policy
[2025-03-04T11:48:39.453+01:00][FATAL][root] Reason: [config validation of [xpack.fleet].agentPolicies.0.package_policies.0.inputs.elasticsearch-logfile.streams]: definition for this key is missing Error: [config validation of [xpack.fleet].agentPolicies.0.package_policies.0.inputs.elasticsearch-logfile.streams]: definition for this key is missing
API
Tested the same behavior when trying to create the policy via api, I loaded the POST command from the page "add integration":
POST
In this case I saw the error as well:
Expected behavior:
In both cases the policy should be created correctly.
Any additional context:
The error is probably in this schema. I noticed that commenting the
streams
portion of the policy it passes validation, so I think that the issue lies there.Let's make sure to add some unit tests to avoid breaking it again.
This fix would also require backporting as it is present on several versions of kibana.
The text was updated successfully, but these errors were encountered: