Commit be552fd
feature: webhooks (#8674)
* api,server,ui: weebhoks feature
Signed-off-by: Abhishek Kumar <[email protected]>
* fix
Signed-off-by: Abhishek Kumar <[email protected]>
* fix
Signed-off-by: Abhishek Kumar <[email protected]>
* changes
Signed-off-by: Abhishek Kumar <[email protected]>
* registry of message busses
* test bus
Signed-off-by: Abhishek Kumar <[email protected]>
* refactor
Signed-off-by: Abhishek Kumar <[email protected]>
* test
Signed-off-by: Abhishek Kumar <[email protected]>
* fix and refactor
Signed-off-by: Abhishek Kumar <[email protected]>
* changes for webhook dispatch history
Signed-off-by: Abhishek Kumar <[email protected]>
* changes, initial ui
Signed-off-by: Abhishek Kumar <[email protected]>
* improvements
Signed-off-by: Abhishek Kumar <[email protected]>
* changes for account webhook cleanup
Signed-off-by: Abhishek Kumar <[email protected]>
* fix remaining event bus usage
Signed-off-by: Abhishek Kumar <[email protected]>
* changes for testing webhook dispatch
Signed-off-by: Abhishek Kumar <[email protected]>
* wip
Signed-off-by: Abhishek Kumar <[email protected]>
* fix test
Signed-off-by: Abhishek Kumar <[email protected]>
* make element
Signed-off-by: Abhishek Kumar <[email protected]>
* missing
Signed-off-by: Abhishek Kumar <[email protected]>
* buid fix
* fix lint
Signed-off-by: Abhishek Kumar <[email protected]>
* changes for project delete check
Signed-off-by: Abhishek Kumar <[email protected]>
* fix
Signed-off-by: Abhishek Kumar <[email protected]>
* add collapse in create
Signed-off-by: Abhishek Kumar <[email protected]>
* ui fix and refactor for eventditributor publish
Signed-off-by: Abhishek Kumar <[email protected]>
* update org.json and add json validation
Signed-off-by: Abhishek Kumar <[email protected]>
* schema fixes
Signed-off-by: Abhishek Kumar <[email protected]>
* wordings
Signed-off-by: Abhishek Kumar <[email protected]>
* ui: improve progress button
Signed-off-by: Abhishek Kumar <[email protected]>
* ui improvements
Signed-off-by: Abhishek Kumar <[email protected]>
* remove unrelated change
Signed-off-by: Abhishek Kumar <[email protected]>
* search and count
Signed-off-by: Abhishek Kumar <[email protected]>
* add payloadurl in info
Signed-off-by: Abhishek Kumar <[email protected]>
* positive progress
Signed-off-by: Abhishek Kumar <[email protected]>
* fix hmac key
Signed-off-by: Abhishek Kumar <[email protected]>
* create webhook form fixes
Signed-off-by: Abhishek Kumar <[email protected]>
* refactor, address feedback
Signed-off-by: Abhishek Kumar <[email protected]>
* indentation
Signed-off-by: Abhishek Kumar <[email protected]>
* fix filters
Signed-off-by: Abhishek Kumar <[email protected]>
* remove test eventbus
Signed-off-by: Abhishek Kumar <[email protected]>
* default scope be Local
Signed-off-by: Abhishek Kumar <[email protected]>
* add lifecycle smoke test
Signed-off-by: Abhishek Kumar <[email protected]>
* add test for webhook deliveries
Signed-off-by: Abhishek Kumar <[email protected]>
* refactor
Signed-off-by: Abhishek Kumar <[email protected]>
* fix lint
Signed-off-by: Abhishek Kumar <[email protected]>
* refactor - losgs and others
Signed-off-by: Abhishek Kumar <[email protected]>
* unit tests
Signed-off-by: Abhishek Kumar <[email protected]>
* fix lint
Signed-off-by: Abhishek Kumar <[email protected]>
* build fix
Signed-off-by: Abhishek Kumar <[email protected]>
* smoke test fix, log refactor
Signed-off-by: Abhishek Kumar <[email protected]>
* get bean from all components
Signed-off-by: Abhishek Kumar <[email protected]>
* ui: missing label
Signed-off-by: Abhishek Kumar <[email protected]>
* address review comments
Signed-off-by: Abhishek Kumar <[email protected]>
* add some more tests
Signed-off-by: Abhishek Kumar <[email protected]>
* lint
Signed-off-by: Abhishek Kumar <[email protected]>
* rename setting
Signed-off-by: Abhishek Kumar <[email protected]>
* upgrade: move 4.19.0->4.20.0 to 4.19.1->4.20.0
* fix test delivery layout
Signed-off-by: Abhishek Kumar <[email protected]>
* fix webhook secret display
Signed-off-by: Abhishek Kumar <[email protected]>
* add http to payloadurl when no scheme
Signed-off-by: Abhishek Kumar <[email protected]>
* allow removing secretkey for webhook
Signed-off-by: Abhishek Kumar <[email protected]>
* fix update sslverification
Signed-off-by: Abhishek Kumar <[email protected]>
* disallow same payload url for same account
Signed-off-by: Abhishek Kumar <[email protected]>
* fix delivery with url w/o scheme
Signed-off-by: Abhishek Kumar <[email protected]>
* api: listApis should return params based on caller
Signed-off-by: Abhishek Kumar <[email protected]>
* wip changes
Signed-off-by: Abhishek Kumar <[email protected]>
* Update engine/schema/src/main/resources/META-INF/db/schema-41900to42000.sql
* remove unique constraint for now
Constraint is present in Java code validations
Signed-off-by: Abhishek Kumar <[email protected]>
* fixes
Signed-off-by: Abhishek Kumar <[email protected]>
* ui: add option to delete multiple deliveries
Signed-off-by: Abhishek Kumar <[email protected]>
* add filter for deliveries, delete api start/endtime support
Signed-off-by: Abhishek Kumar <[email protected]>
* do not throw error when no deliveries removed
Signed-off-by: Abhishek Kumar <[email protected]>
* ui: fix deliveries table column sorting, time filter cancel
Signed-off-by: Abhishek Kumar <[email protected]>
* remove isDebugEnabled wrapping
* merge fix
Signed-off-by: Abhishek Kumar <[email protected]>
---------
Signed-off-by: Abhishek Kumar <[email protected]>
Co-authored-by: Daan Hoogland <[email protected]>
Co-authored-by: Wei Zhou <[email protected]>1 parent 2542582 commit be552fd
File tree
102 files changed
+8734
-324
lines changed- .github/workflows
- api/src/main/java/org/apache/cloudstack/api
- command/admin/user
- response
- client
- core/src/main/resources/META-INF/cloudstack
- core
- event
- engine
- components-api/src
- main/java/com/cloud
- event
- network
- test/java/com/cloud/network
- schema/src/main/resources/META-INF/db
- views
- framework/events/src
- main/java/org/apache/cloudstack/framework/events
- test/java/org/apache/cloudstack/framework/events
- plugins
- api/discovery/src/main/java/org/apache/cloudstack
- api/response
- discovery
- event-bus
- inmemory/src/main/java/org/apache/cloudstack/mom/inmemory
- kafka/src/main/java/org/apache/cloudstack/mom/kafka
- rabbitmq/src/main/java/org/apache/cloudstack/mom/rabbitmq
- webhook
- src
- main
- java/org/apache/cloudstack/mom/webhook
- api
- command/user
- response
- dao
- vo
- resources/META-INF/cloudstack/webhook
- test/java/org/apache/cloudstack/mom/webhook
- api/command/user
- network-elements/juniper-contrail/src/main/java/org/apache/cloudstack/network/contrail/management
- server/src
- main
- java
- com/cloud
- api
- event
- projects
- storage/listener
- user
- vm
- org/apache/cloudstack/webhook
- resources/META-INF/cloudstack/core
- test/java/com/cloud
- event
- projects
- template
- user
- test/integration/smoke
- tools
- apidoc
- marvin/marvin/lib
- ui
- public/locales
- src
- components/view
- config/section
- core/lazy_lib
- views
- tools
- utils/src/main/java/com/cloud/utils/component
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
102 files changed
+8734
-324
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
178 | 180 | | |
179 | 181 | | |
180 | 182 | | |
| |||
209 | 211 | | |
210 | 212 | | |
211 | 213 | | |
| 214 | + | |
212 | 215 | | |
213 | 216 | | |
214 | 217 | | |
| |||
281 | 284 | | |
282 | 285 | | |
283 | 286 | | |
| 287 | + | |
284 | 288 | | |
285 | 289 | | |
286 | 290 | | |
| |||
355 | 359 | | |
356 | 360 | | |
357 | 361 | | |
| 362 | + | |
358 | 363 | | |
359 | 364 | | |
360 | 365 | | |
| |||
400 | 405 | | |
401 | 406 | | |
402 | 407 | | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | 408 | | |
| 409 | + | |
| 410 | + | |
408 | 411 | | |
409 | 412 | | |
410 | 413 | | |
| |||
422 | 425 | | |
423 | 426 | | |
424 | 427 | | |
| 428 | + | |
425 | 429 | | |
426 | 430 | | |
427 | 431 | | |
428 | 432 | | |
429 | 433 | | |
430 | 434 | | |
431 | 435 | | |
432 | | - | |
433 | | - | |
| 436 | + | |
434 | 437 | | |
435 | 438 | | |
436 | 439 | | |
| |||
449 | 452 | | |
450 | 453 | | |
451 | 454 | | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
452 | 458 | | |
453 | 459 | | |
454 | 460 | | |
| |||
482 | 488 | | |
483 | 489 | | |
484 | 490 | | |
| 491 | + | |
485 | 492 | | |
486 | 493 | | |
487 | 494 | | |
| |||
561 | 568 | | |
562 | 569 | | |
563 | 570 | | |
| 571 | + | |
564 | 572 | | |
565 | 573 | | |
566 | 574 | | |
| |||
1121 | 1129 | | |
1122 | 1130 | | |
1123 | 1131 | | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
1124 | 1135 | | |
1125 | 1136 | | |
1126 | 1137 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
441 | 446 | | |
442 | 447 | | |
443 | 448 | | |
| |||
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
| 294 | + | |
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
361 | 366 | | |
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
Lines changed: 9 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 28 | | |
34 | 29 | | |
35 | 30 | | |
36 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
| 241 | + | |
246 | 242 | | |
247 | 243 | | |
248 | 244 | | |
| |||
Lines changed: 14 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
| 28 | + | |
31 | 29 | | |
32 | | - | |
| 30 | + | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
| |||
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
46 | | - | |
| 44 | + | |
47 | 45 | | |
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
69 | | - | |
70 | | - | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 77 | + | |
| 78 | + | |
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
84 | | - | |
85 | | - | |
| 83 | + | |
| 84 | + | |
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
| |||
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 94 | + | |
| 95 | + | |
100 | 96 | | |
101 | 97 | | |
102 | 98 | | |
| |||
0 commit comments