Commit 64b1301
committed
chore: add WITH_AWS_CLOUD support for S3 snapshot storage
Add alternative S3 implementation using helio's native
S3Storage and AwsCredsProvider when WITH_AWS_CLOUD is ON,
removing the dependency on the AWS C++ SDK.
Changes:
- Add AwsS3SnapshotStorage::Init() to initialize credentials
and SSL context (matching GCS/Azure pattern)
- Implement ListObjects using cloud::aws::S3Storage::List
- Add destructor to free SSL context
- Wire up Init call in CreateCloudSnapshotStorage
- Update CMakeLists.txt to link aws_cloud_lib
- Update helio submodule with S3Storage virtual-hosted-style
URLs and SigV4 signing fixes
Signed-off-by: Roman Gershman <roman@dragonflydb.io>1 parent 48f8d11 commit 64b1301
5 files changed
Lines changed: 99 additions & 5 deletions
- .github/workflows/ci.yml+15
- base/CMakeLists.txt+3-3
- base/file_log_sink.cc+156
- base/file_log_sink.h+68
- base/init.cc+13-1
- base/logging.cc+6-2
- base/logging.h+12
- cmake/third_party.cmake+8-10
- examples/s3_demo.cc+47-3
- tests/test_s3.py+90-2
- util/cloud/aws/aws_creds_provider.cc+54-66
- util/cloud/aws/s3_storage.cc+220-14
- util/cloud/aws/s3_storage.h+8
- util/cloud/azure/CMakeLists.txt+1-1
- util/cloud/azure/azure.cc+414-12
- util/cloud/azure/creds_provider.h+34
- util/cloud/azure/storage.cc+20-20
- util/cloud/utils.cc+32-2
- util/cloud/utils.h+37
- util/http/https_client_pool.cc+28-8
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
115 | 120 | | |
116 | 121 | | |
117 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
520 | 525 | | |
521 | 526 | | |
522 | 527 | | |
523 | | - | |
| 528 | + | |
524 | 529 | | |
525 | 530 | | |
526 | 531 | | |
| 532 | + | |
527 | 533 | | |
528 | 534 | | |
529 | 535 | | |
| |||
544 | 550 | | |
545 | 551 | | |
546 | 552 | | |
| 553 | + | |
547 | 554 | | |
548 | 555 | | |
549 | 556 | | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
550 | 574 | | |
551 | 575 | | |
| 576 | + | |
552 | 577 | | |
553 | 578 | | |
554 | 579 | | |
| |||
571 | 596 | | |
572 | 597 | | |
573 | 598 | | |
| 599 | + | |
574 | 600 | | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
575 | 604 | | |
576 | 605 | | |
577 | 606 | | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
578 | 610 | | |
579 | 611 | | |
580 | 612 | | |
581 | 613 | | |
582 | 614 | | |
583 | 615 | | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
584 | 619 | | |
585 | 620 | | |
586 | 621 | | |
| |||
607 | 642 | | |
608 | 643 | | |
609 | 644 | | |
| 645 | + | |
| 646 | + | |
610 | 647 | | |
611 | 648 | | |
612 | 649 | | |
| |||
652 | 689 | | |
653 | 690 | | |
654 | 691 | | |
| 692 | + | |
| 693 | + | |
655 | 694 | | |
656 | 695 | | |
657 | 696 | | |
| |||
660 | 699 | | |
661 | 700 | | |
662 | 701 | | |
| 702 | + | |
663 | 703 | | |
664 | 704 | | |
665 | 705 | | |
| |||
715 | 755 | | |
716 | 756 | | |
717 | 757 | | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
718 | 782 | | |
719 | 783 | | |
720 | | - | |
| 784 | + | |
| 785 | + | |
721 | 786 | | |
722 | 787 | | |
723 | 788 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| |||
161 | 166 | | |
162 | 167 | | |
163 | 168 | | |
164 | | - | |
| 169 | + | |
165 | 170 | | |
166 | 171 | | |
167 | 172 | | |
168 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
169 | 177 | | |
170 | 178 | | |
171 | 179 | | |
| |||
189 | 197 | | |
190 | 198 | | |
191 | 199 | | |
| 200 | + | |
192 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
193 | 208 | | |
194 | 209 | | |
195 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
298 | 299 | | |
299 | 300 | | |
300 | | - | |
| 301 | + | |
| 302 | + | |
301 | 303 | | |
302 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
303 | 312 | | |
304 | 313 | | |
305 | 314 | | |
| |||
0 commit comments