Commit 5ee37d5
[Backport 2.x] Notification security fix (opensearch-project#861)
* Notification security fix (opensearch-project#852)
* added injecting whole user object in threadContext before calling notification APIs so that backend roles are available to notification plugin
Signed-off-by: Petar Dzepina <[email protected]>
* compile fix
Signed-off-by: Petar Dzepina <[email protected]>
* refactored user_info injection to use InjectSecurity
Signed-off-by: Petar Dzepina <[email protected]>
* ktlint fix
Signed-off-by: Petar Dzepina <[email protected]>
---------
Signed-off-by: Petar Dzepina <[email protected]>
(cherry picked from commit e0b7a5a)
* remove unneeded import
Signed-off-by: Ashish Agrawal <[email protected]>
---------
Signed-off-by: Ashish Agrawal <[email protected]>
Co-authored-by: Petar Dzepina <[email protected]>
Co-authored-by: Ashish Agrawal <[email protected]>
Signed-off-by: AWSHurneyt <[email protected]>1 parent 2337100 commit 5ee37d5
File tree
2 files changed
+27
-33
lines changed- alerting/src/main/kotlin/org/opensearch/alerting
- core/src/main/kotlin/org/opensearch/alerting/opensearchapi
2 files changed
+27
-33
lines changedLines changed: 18 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
75 | 83 | | |
76 | 84 | | |
77 | 85 | | |
| |||
Lines changed: 9 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
171 | 170 | | |
172 | 171 | | |
173 | 172 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
196 | 180 | | |
197 | 181 | | |
198 | 182 | | |
| |||
202 | 186 | | |
203 | 187 | | |
204 | 188 | | |
| 189 | + | |
| 190 | + | |
205 | 191 | | |
206 | 192 | | |
207 | 193 | | |
| |||
0 commit comments