Commit 34c948d
feat: Resource viewer implementation for a cluster (#2811)
* API for getApiResources for a cluster
* update resource api
* resource delete API change
* native k8s support added for APIs
* gkv resource list api spec added
* added gkv resource list api
* resource list request dto modified
* added script
* namespaces api for cluster
* status added for resource list
* create resources API
* bug fix in get api-resources API
* events list api modified, for all gkv or by namespace
* bug fixes
* added cluster rbac for roleGroup
* createResources changed to applyResources
* updated cluster entity for create/update user apis
* api refactored
* extracted code for checking cluster entity rbac
* added casbin sql script for superadmin cluster entity policies
* updated spec
* applyResource change to createOrUpdate
* review changes and event list for all gkv fixed
* containers list added in resource list api
* auth for resource list api
* global kind event check added for event listing
* wip -fixes
* wip -fixes
* rbac for k8s event listing
* rbac changes for k8s resource list and event list
* sql file renamed and wire
* namespace bug fix
* added new api permission cluster list
* cluster extended wire fix, resource not found check
* fix
* added check for timestamp for resource list
* event and gvk api bug fix
* resourceIf with acceptHeader for getReeourceList API
* resource list api response modified
* refactor resource listing and added namespace
* refactoring
* review comment - itr1
* merged
* event listing changes revert and added updated api spec for cluster list and resource list
* RBAC apply handling added
* code cleanup
* bug fix
* reverted file change
* auth on namespace list
* removed unused struct
* resource browser RBAC handling
* code cleanup
* safe checks added
* not setting namespace in resource list API if gvk is global
* patch fix
* namespaced handling
* compile fix
* cluster and namespace list api handling for super admin
* review change
* resource listing for global kind event customize, and fix for namespace list
* refactoring
* aply resource bug fix
* nil pointer fix
* wire file
* down file change
* resource clubbing handling
* resource name fix for groups
* group roles checked for namespace and cluster list api
* added one more item star if has access to all namespaces
* refactoring
* manager auth RBAC handling
* multi resource validation handling
* all namespace data reverted
* RBAC in getApiResources API
* RBAC fix in ApplyResource for namespace
* bug fixes :
1) if cluster list is empty for non super admin user, then sending 403
* bug fixes :
1) sending 403 if empty api-resources
* fix: all group with particular kind handling
* Resource browser rbac (#2836)
* RBAC hierarchy check added
* hiererachy handlign for workload APIs
* gvk fix
* app group name fix
* switch case correction
Co-authored-by: Manish Agrawal <[email protected]>
* Revert "Resource browser rbac (#2836)" (#2838)
This reverts commit 094d3b8.
Co-authored-by: Manish Agrawal <[email protected]>
Co-authored-by: vikramdevtron <[email protected]>
Co-authored-by: kartik-579 <[email protected]>
Co-authored-by: Manish Agrawal <[email protected]>1 parent e73fc15 commit 34c948d
File tree
35 files changed
+3092
-621
lines changed- api
- apiToken
- bean
- cluster
- user
- client/k8s/application
- cmd/external-app
- internal/util
- pkg
- apiToken
- clusterTerminalAccess
- cluster
- user
- casbin
- repository
- scripts
- casbin
- sql
- specs
- util
- k8s
- rbac
35 files changed
+3092
-621
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
216 | | - | |
| 215 | + | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
| |||
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
79 | 91 | | |
80 | 92 | | |
81 | 93 | | |
| |||
95 | 107 | | |
96 | 108 | | |
97 | 109 | | |
98 | | - | |
99 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
100 | 117 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
376 | 378 | | |
377 | 379 | | |
378 | 380 | | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
67 | 75 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | | - | |
| 76 | + | |
| 77 | + | |
76 | 78 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| |||
118 | 121 | | |
119 | 122 | | |
120 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
121 | 130 | | |
122 | 131 | | |
123 | 132 | | |
| |||
274 | 283 | | |
275 | 284 | | |
276 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
277 | 291 | | |
278 | 292 | | |
279 | 293 | | |
| |||
332 | 346 | | |
333 | 347 | | |
334 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
335 | 355 | | |
336 | 356 | | |
337 | 357 | | |
| |||
414 | 434 | | |
415 | 435 | | |
416 | 436 | | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
417 | 443 | | |
418 | 444 | | |
419 | 445 | | |
| |||
461 | 487 | | |
462 | 488 | | |
463 | 489 | | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
464 | 495 | | |
465 | 496 | | |
466 | 497 | | |
| |||
507 | 538 | | |
508 | 539 | | |
509 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
510 | 547 | | |
511 | 548 | | |
512 | 549 | | |
| |||
616 | 653 | | |
617 | 654 | | |
618 | 655 | | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
619 | 663 | | |
620 | 664 | | |
621 | 665 | | |
| |||
714 | 758 | | |
715 | 759 | | |
716 | 760 | | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
717 | 767 | | |
718 | 768 | | |
719 | 769 | | |
| |||
881 | 931 | | |
882 | 932 | | |
883 | 933 | | |
884 | | - | |
885 | | - | |
| 934 | + | |
| 935 | + | |
886 | 936 | | |
887 | 937 | | |
888 | 938 | | |
| |||
0 commit comments