diff --git a/saritasa_s3_tools/client.py b/saritasa_s3_tools/client.py index 79038b2..8baa622 100644 --- a/saritasa_s3_tools/client.py +++ b/saritasa_s3_tools/client.py @@ -33,6 +33,7 @@ def get_boto3_s3_client( region: RegionGetter | str = "", max_pool_connections: int = 100, signature_version: str | None = None, + verify: bool = True, ) -> mypy_boto3_s3.S3Client: """Prepare boto3's s3 client for usage.""" endpoint_url = None @@ -44,6 +45,7 @@ def get_boto3_s3_client( return boto3.client( service_name="s3", # type: ignore region_name=region, + verify=verify, aws_session_token=credentials.token or None, aws_access_key_id=credentials.access_key or None, aws_secret_access_key=credentials.secret_key or None, diff --git a/saritasa_s3_tools/testing/plugin.py b/saritasa_s3_tools/testing/plugin.py index 36c2903..7cd0238 100644 --- a/saritasa_s3_tools/testing/plugin.py +++ b/saritasa_s3_tools/testing/plugin.py @@ -107,6 +107,7 @@ def boto3_client( access_key_getter=access_key_getter, s3_endpoint_url_getter=s3_endpoint_url_getter, region=s3_region, + verify=False, )