From 0633a1d9f5a7ef06d577ae6556d09db9e94f5684 Mon Sep 17 00:00:00 2001 From: Jasper Weyne Date: Tue, 7 Jun 2022 13:39:14 +0200 Subject: Disable ~/.aws/config access by S3ConnectionTrait This commit sets the 'use_aws_shared_config_files' option to false, in order to disable configuration loading from ~/.aws/config by the AWS SDK, specifically the S3Client. It is a continuation of #27040, as that PR only changed the behaviour of the CredentialsProvider; this change affects the ConfigurationProvider as well. Signed-off-by: Jasper Weyne --- lib/private/Files/ObjectStore/S3ConnectionTrait.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/private/Files/ObjectStore/S3ConnectionTrait.php b/lib/private/Files/ObjectStore/S3ConnectionTrait.php index c3836749c6d..e00e3332b82 100644 --- a/lib/private/Files/ObjectStore/S3ConnectionTrait.php +++ b/lib/private/Files/ObjectStore/S3ConnectionTrait.php @@ -11,6 +11,7 @@ * @author Roeland Jago Douma * @author S. Cat <33800996+sparrowjack63@users.noreply.github.com> * @author Stephen Cuppett + * @author Jasper Weyne * * @license GNU AGPL version 3 or any later version * @@ -140,6 +141,7 @@ trait S3ConnectionTrait { 'csm' => false, 'use_arn_region' => false, 'http' => ['verify' => $certPath], + 'use_aws_shared_config_files' => false, ]; if ($this->getProxy()) { $options['http']['proxy'] = $this->getProxy(); -- cgit v1.2.3