diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-06-15 09:12:42 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-06-17 09:02:20 +0000 |
commit | 5fdcb5a1e3772d43f5b59a3486eee98841f66f30 (patch) | |
tree | 7be3a17ce74f0c4c59b6eb17d81ce8670dff3e63 /lib | |
parent | eb3c473059596196c132199d8684129f51b10f9b (diff) | |
download | nextcloud-server-5fdcb5a1e3772d43f5b59a3486eee98841f66f30.tar.gz nextcloud-server-5fdcb5a1e3772d43f5b59a3486eee98841f66f30.zip |
Disable Client-Side Monitoring on AWS storage
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/ObjectStore/S3ConnectionTrait.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Files/ObjectStore/S3ConnectionTrait.php b/lib/private/Files/ObjectStore/S3ConnectionTrait.php index f931b6092a6..6d48f20ac4a 100644 --- a/lib/private/Files/ObjectStore/S3ConnectionTrait.php +++ b/lib/private/Files/ObjectStore/S3ConnectionTrait.php @@ -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']]; |