elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.35k stars 7.98k forks source link

[Fleet] add validation to dataset field in input packages to disallow special characters #182925

Closed juliaElastic closed 5 days ago

juliaElastic commented 1 week ago

Summary

Closes https://github.com/elastic/kibana/issues/181044

Added validation to allow only valid index names as dataset name in input packages. Allowing lowercase letters, numbers, dot and underscore (except in the beginning).

To verify:

image

Checklist

Delete any items that are not applicable to this PR.

apmmachine commented 1 week ago

:robot: GitHub comments

Expand to view the GitHub comments

Just comment with: - `/oblt-deploy` : Deploy a Kibana instance using the Observability test environments. - `run` `docs-build` : Re-trigger the docs validation. (use unformatted text in the comment!)

juliaElastic commented 1 week ago

/ci

juliaElastic commented 1 week ago

/ci

elasticmachine commented 1 week ago

Pinging @elastic/fleet (Team:Fleet)

juliaElastic commented 5 days ago

Do you think that this test could be added to the functional tests for this endpoint?

Added an assert on the error message in the existing input package policy API test.

kibana-ci commented 5 days ago

:green_heart: Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
fleet 1181 1184 +3

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 1.3MB 1.3MB +537.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
fleet 163.5KB 164.1KB +645.0B
Unknown metric groups #### API count | id | [before](https://github.com/elastic/kibana/commit/62d580c11e16f0e094414d8f9cca44ce642bcbfd) | [after](https://github.com/elastic/kibana/commit/7a79034cf433d6230f2fcd670993de343a457ca2) | diff | | --- | --- | --- | --- | | `fleet` | 1302 | 1305 | +3 |

History

To update your PR or re-run it, just comment with: @elasticmachine merge upstream

cc @juliaElastic

kibanamachine commented 5 days ago

💚 All backports created successfully

Status Branch Result
✅ 8.14

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation