Skip to content

Commit

Permalink
[MDB-32251] Skip access checks for cloud storage disk of source cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
MedvedewEM committed Nov 15, 2024
1 parent 0a32eca commit 52b4acb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ch_backup/clickhouse/disks.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ def _create_temporary_disk(
)

disk_config["endpoint"] = tmp_disk_enpoint

disk_config["skip_access_check"] = "true"
disks_config = {tmp_disk_name: disk_config}

request_timeout_ms = int(disk_config.get("request_timeout_ms", 0))
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/test_disks.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<access_key_id>AKIAACCESSKEY</access_key_id>
<secret_access_key>SecretAccesskey</secret_access_key>
<request_timeout_ms>3600000</request_timeout_ms>
<skip_access_check>true</skip_access_check>
</object_storage_source>
<object_storage>
<request_timeout_ms replace="replace">3600000</request_timeout_ms>
Expand Down Expand Up @@ -94,6 +95,7 @@
<access_key_id>AKIAACCESSKEY</access_key_id>
<secret_access_key>SecretAccesskey</secret_access_key>
<request_timeout_ms>3600000</request_timeout_ms>
<skip_access_check>true</skip_access_check>
</object_storage_source>
<object_storage>
<request_timeout_ms replace="replace">3600000</request_timeout_ms>
Expand Down Expand Up @@ -139,6 +141,7 @@
<access_key_id>AKIAACCESSKEY</access_key_id>
<secret_access_key>SecretAccesskey</secret_access_key>
<request_timeout_ms>7200000</request_timeout_ms>
<skip_access_check>true</skip_access_check>
</object_storage_source>
</disks>
</storage_configuration>
Expand Down

0 comments on commit 52b4acb

Please sign in to comment.