This repository was archived by the owner on Sep 12, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +9
-0
lines changed Expand file tree Collapse file tree 4 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ Brad Ison <bison@garbagebrain.org>
1212Brendan Burns <bburns@google.com>
1313Chas Ballew <chas.ballew@gmail.com>
1414Chris Tierney <notproperlycut@gmail.com>
15+ Christian Schmitt <c.schmitt@envisia.de>
1516Christophe Furmaniak <christophe.furmaniak@gmail.com>
1617Dan Trujillo <dtrupenn@gmail.com>
1718Daniel Graña <dangra@gmail.com>
Original file line number Diff line number Diff line change @@ -322,6 +322,7 @@ AWS Simple Storage Service options
322322 server-side by S3 and will be stored in an encrypted form while at rest
323323 in S3.
3243241. `s3_secure` : boolean, true for HTTPS to S3
325+ 1. `s3_use_sigv4` : boolean, true for USE_SIGV4 (boto_host needs to be set or use_sigv4 will be ignored by boto.)
3253261. `boto_bucket` : string, the bucket name for *non*-Amazon S3-compliant object store
3263271. `boto_host` : string, host for *non*-Amazon S3-compliant object store
3273281. `boto_port` : for *non*-Amazon S3-compliant object store
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ s3: &s3
8585 s3_secure : _env:AWS_SECURE:true
8686 s3_access_key : _env:AWS_KEY
8787 s3_secret_key : _env:AWS_SECRET
88+ s3_use_sigv4 : _env:AWS_USE_SIGV4
8889 boto_host : _env:AWS_HOST
8990 boto_port : _env:AWS_PORT
9091 boto_calling_format : _env:AWS_CALLING_FORMAT
Original file line number Diff line number Diff line change @@ -91,6 +91,12 @@ def makeConnection(self):
9191 else :
9292 self .signer = None
9393
94+ if self ._config .s3_use_sigv4 is True :
95+ if self ._config .boto_host is None :
96+ logger .warn ("No S3 Host specified, Boto won't use SIGV4!" )
97+ boto .config .add_section ('s3' )
98+ boto .config .set ('s3' , 'use-sigv4' , 'True' )
99+
94100 if self ._config .s3_region is not None :
95101 return boto .s3 .connect_to_region (
96102 region_name = self ._config .s3_region ,
You can’t perform that action at this time.
0 commit comments