elastic / kibana

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

[Security Solution] Rule Management tests shouldn't access system indices directly #197110

Open banderror opened 6 days ago

banderror commented 6 days ago

Related to: https://github.com/elastic/kibana-team/issues/1173 (internal)

Summary

Some of the tests owned by the Rule Management team rely on direct access to saved object indices, for example when we need to index mock prebuilt rule assets.

Access to system indices will be prevented by default in 9.0:

Elasticsearch deprecation: 299 Elasticsearch-9d3fc35316c008f2fa637c73d93ebc9df81f20e4 this request accesses system indices: [.kibana_security_solution_1], but in a future major version, direct access to system indices will be prevented by default

We need to find a workaround.

Tests

Below are tests that were found to be accessing system indices (copied from https://github.com/elastic/kibana-team/issues/1173):

Total deprecated usages by team: 3

elasticmachine commented 6 days ago

Pinging @elastic/security-solution (Team: SecuritySolution)

elasticmachine commented 6 days ago

Pinging @elastic/security-detections-response (Team:Detections and Resp)

elasticmachine commented 6 days ago

Pinging @elastic/security-detection-rule-management (Team:Detection Rule Management)