Commit 1b8b97f
authored
[Security Solution][Detection Engine][CPS] Rule Preview Issue Project Routing (elastic#259352)
## Summary
Closes issue [elastic#258902](elastic#258902).
Without `projectRouting: 'space'`, all three clients default to
`_alias:_origin`, restricting preview searches to the origin project
only. The fix passes `{ projectRouting: 'space' }` to each:
- `scopedClusterClient`: fixes field caps and index resolution
(pre-search checks in `run_execution_validation.ts`)
- `searchSourceClient`: fixes data fetches for
query/saved_query/threshold rule types
- `asyncSearchClient`: fixes data fetches for EQL and ESQL rule types1 parent ecea34b commit 1b8b97f
1 file changed
Lines changed: 13 additions & 6 deletions
File tree
- x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/rule_preview/api/preview_rules
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
120 | 125 | | |
121 | 126 | | |
122 | 127 | | |
| |||
274 | 279 | | |
275 | 280 | | |
276 | 281 | | |
277 | | - | |
| 282 | + | |
278 | 283 | | |
279 | 284 | | |
280 | 285 | | |
281 | 286 | | |
282 | | - | |
| 287 | + | |
283 | 288 | | |
284 | 289 | | |
285 | 290 | | |
286 | 291 | | |
287 | 292 | | |
288 | 293 | | |
289 | 294 | | |
290 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
291 | 298 | | |
292 | 299 | | |
293 | 300 | | |
| |||
297 | 304 | | |
298 | 305 | | |
299 | 306 | | |
300 | | - | |
| 307 | + | |
301 | 308 | | |
302 | 309 | | |
303 | 310 | | |
| |||
0 commit comments