Commit 045988c
OADP-5973, OADP-3340, OADP-6212: AWS, GCP, Azure Standardized Flow Implementation (openshift#1712)
* AWS, GCP, Azure Standardized Flow Secret Creation
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Add make targets sts-flow testing
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
* Add BSL-specific patching for STS secrets
- Label STS-created secrets with "oadp.openshift.io/secret-type": "sts-credentials"
- Implement automatic region patching for AWS STS secrets from BSL configuration
- Implement automatic resource group patching for Azure STS secrets from BSL configuration
- Ensure only STS-created secrets are patched by checking for specific keys:
- AWS: "credentials" key with role_arn and web_identity_token_file content
- Azure: "azurekey" key with AZURE_CLIENT_ID but no AZURE_CLIENT_SECRET
- Add comprehensive test coverage for all patching scenarios
- Update documentation to reflect dynamic configuration capabilities
This enhancement allows the first BSL to automatically configure region (AWS) or
resource group (Azure) in STS secrets, eliminating manual configuration needs.
* Fix STS secret updates to preserve BSL patches │
The BSL controller patches AWS secrets with region information by
modifying the Data field directly, but the STS flow was completely
replacing StringData which caused region patches to be overridden.
This change preserves existing Data when updating STS secrets by
only updating specific StringData fields rather than clearing all
existing data.
* Add Azure workload identity support for Velero deployment and service account annotation
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
* Add Azure workload identity support to Velero deployment and tests
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
* Refactor Azure workload identity implementation in Velero: comment out label and annotation handling, update environment variable checks in tests
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
* fmt
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
* Remove Azure workload identity label handling from Velero deployment and tests
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
* Remove commented-out Azure workload identity annotations and clean up related tests
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
* Add Azure workload identity environment variable support to NodeAgent DaemonSet and corresponding tests
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
* Implement Azure workload identity secret management in DataProtectionApplication reconciler
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
* Enhance Azure workload identity secret reconciliation by adding tenant ID handling and updating related tests
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
* Remove unnecessary blank line in noDefaultCredentials function
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update pkg/bucket/client.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 2a7981c commit 045988c
File tree
20 files changed
+3335
-148
lines changed- bundle/manifests
- cmd
- config/manifests/bases
- docs
- internal/controller
- pkg
- bucket
- client
- common
- credentials/stsflow
20 files changed
+3335
-148
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
466 | 621 | | |
467 | 622 | | |
468 | 623 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
283 | | - | |
| 282 | + | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
| 34 | + | |
36 | 35 | | |
37 | | - | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
| |||
55 | 53 | | |
56 | 54 | | |
57 | 55 | | |
| 56 | + | |
58 | 57 | | |
59 | | - | |
| 58 | + | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
69 | | - | |
70 | | - | |
71 | 68 | | |
72 | 69 | | |
73 | 70 | | |
| |||
113 | 110 | | |
114 | 111 | | |
115 | 112 | | |
116 | | - | |
| 113 | + | |
117 | 114 | | |
118 | 115 | | |
119 | 116 | | |
| |||
136 | 133 | | |
137 | 134 | | |
138 | 135 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
164 | 140 | | |
165 | 141 | | |
166 | 142 | | |
| |||
234 | 210 | | |
235 | 211 | | |
236 | 212 | | |
237 | | - | |
| 213 | + | |
238 | 214 | | |
239 | 215 | | |
240 | 216 | | |
| |||
371 | 347 | | |
372 | 348 | | |
373 | 349 | | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
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 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | 350 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments