]> source.dussan.org Git - nextcloud-server.git/commitdiff
Disable Client-Side Monitoring on AWS storage 21448/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Mon, 15 Jun 2020 07:12:42 +0000 (09:12 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Wed, 17 Jun 2020 09:02:20 +0000 (09:02 +0000)
The S3 client enables this by default and then tries to read
`.aws/config`. This causes `open_basedir` restriction related error for
some setups. So this patch disables the CSM because it's most likely
unused anyway.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
lib/private/Files/ObjectStore/S3ConnectionTrait.php

index f931b6092a6fbe8ed2beb33cbe046de9a2659ffe..6d48f20ac4a9457d85857b593a77d50a31236210 100644 (file)
@@ -94,7 +94,8 @@ trait S3ConnectionTrait {
                        'endpoint' => $base_url,
                        'region' => $this->params['region'],
                        'use_path_style_endpoint' => isset($this->params['use_path_style']) ? $this->params['use_path_style'] : false,
-                       'signature_provider' => \Aws\or_chain([self::class, 'legacySignatureProvider'], ClientResolver::_default_signature_provider())
+                       'signature_provider' => \Aws\or_chain([self::class, 'legacySignatureProvider'], ClientResolver::_default_signature_provider()),
+                       'csm' => false,
                ];
                if (isset($this->params['proxy'])) {
                        $options['request.options'] = ['proxy' => $this->params['proxy']];