Commit 48da335
authored
# Backport
This will backport the following commits from `main` to `9.1`:
- [[Security Solution][Endpoint] Fix artifacts spaces migration (`v9.1`)
to ensure all artifacts are processed
(#238740)](#238740)
<!--- Backport version: 10.0.2 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)
<!--BACKPORT [{"author":{"name":"Paul
Tavares","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-10-14T15:32:05Z","message":"[Security
Solution][Endpoint] Fix artifacts spaces migration (`v9.1`) to ensure
all artifacts are processed (#238740)\n\n## Summary\n\nFixes
#238711\n\n- Fixes Endpoint artifact migration in support of spaces
(introduced in\n`9.1.0`) to:\n- Ensure it processes all artifacts. The
bug fix was to ensure that a\n`perPage` value is used when creating the
SO client Point-in-Time\ninterface. Without it, only the first 20
artifacts were being processed\n- Fix the filter query to ensure that
only artifacts missing the\n`spaceOwnerId` tag are matched when
retrieving items that need to be\nmigrated\n- Add logic to ensure that
this endpoint artifacts migration is re-run\n\n\n\n### Checklist\n\n-
[x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"8a3cc7c31641c31c409ffffbf1cbd0262a20d6f6","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Defend
Workflows","backport:version","v9.2.0","v9.3.0","v9.1.6"],"title":"[Security
Solution][Endpoint] Fix artifacts spaces migration (`v9.1`) to ensure
all artifacts are
processed","number":238740,"url":"https://github.com/elastic/kibana/pull/238740","mergeCommit":{"message":"[Security
Solution][Endpoint] Fix artifacts spaces migration (`v9.1`) to ensure
all artifacts are processed (#238740)\n\n## Summary\n\nFixes
#238711\n\n- Fixes Endpoint artifact migration in support of spaces
(introduced in\n`9.1.0`) to:\n- Ensure it processes all artifacts. The
bug fix was to ensure that a\n`perPage` value is used when creating the
SO client Point-in-Time\ninterface. Without it, only the first 20
artifacts were being processed\n- Fix the filter query to ensure that
only artifacts missing the\n`spaceOwnerId` tag are matched when
retrieving items that need to be\nmigrated\n- Add logic to ensure that
this endpoint artifacts migration is re-run\n\n\n\n### Checklist\n\n-
[x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"8a3cc7c31641c31c409ffffbf1cbd0262a20d6f6"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.1"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/238740","number":238740,"mergeCommit":{"message":"[Security
Solution][Endpoint] Fix artifacts spaces migration (`v9.1`) to ensure
all artifacts are processed (#238740)\n\n## Summary\n\nFixes
#238711\n\n- Fixes Endpoint artifact migration in support of spaces
(introduced in\n`9.1.0`) to:\n- Ensure it processes all artifacts. The
bug fix was to ensure that a\n`perPage` value is used when creating the
SO client Point-in-Time\ninterface. Without it, only the first 20
artifacts were being processed\n- Fix the filter query to ensure that
only artifacts missing the\n`spaceOwnerId` tag are matched when
retrieving items that need to be\nmigrated\n- Add logic to ensure that
this endpoint artifacts migration is re-run\n\n\n\n### Checklist\n\n-
[x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"8a3cc7c31641c31c409ffffbf1cbd0262a20d6f6"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
1 parent 6ea6c35 commit 48da335
File tree
3 files changed
+75
-13
lines changed- x-pack/solutions/security/plugins/security_solution/server/endpoint
- lib/reference_data
- migrations
3 files changed
+75
-13
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
| |||
Lines changed: 22 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| |||
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
210 | 226 | | |
211 | 227 | | |
212 | 228 | | |
| |||
280 | 296 | | |
281 | 297 | | |
282 | 298 | | |
283 | | - | |
| 299 | + | |
284 | 300 | | |
285 | 301 | | |
286 | 302 | | |
| |||
Lines changed: 46 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
100 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
101 | 108 | | |
102 | | - | |
| 109 | + | |
103 | 110 | | |
104 | 111 | | |
105 | 112 | | |
106 | 113 | | |
107 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
108 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
109 | 124 | | |
110 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
111 | 129 | | |
112 | 130 | | |
113 | 131 | | |
| |||
130 | 148 | | |
131 | 149 | | |
132 | 150 | | |
| 151 | + | |
133 | 152 | | |
134 | 153 | | |
135 | 154 | | |
136 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
137 | 178 | | |
138 | 179 | | |
139 | 180 | | |
140 | | - | |
141 | | - | |
142 | 181 | | |
143 | 182 | | |
144 | 183 | | |
| |||
172 | 211 | | |
173 | 212 | | |
174 | 213 | | |
175 | | - | |
| 214 | + | |
176 | 215 | | |
177 | | - | |
| 216 | + | |
178 | 217 | | |
179 | 218 | | |
180 | 219 | | |
| |||
0 commit comments