Jump to content

FTrackCore.S3Accessor Not Support AWS S3 SigV4 only region(Frankfurt, Seoul)


Vastudio

Recommended Posts

Hello,

 

 

I will try ftrack location use S3Accesor(ap-northeast-2 region)

 

S3 Signature version Support infomation site = http://docs.aws.amazon.com/ko_kr/general/latest/gr/rande.html#s3_region

 

Frankfurt, Seoul = Support Signature Version 4 only

Other region = Support Signature Versions 2 and 4

 

S3Accessor use boto(v2.28) library and It is made support Signature Versions 2 only.

 

If so S3Accessor use Signature Version 4 only region(Frankfurt, Seoul), show below error occured.

 

The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.

 

 

S3Accessor need to make a connection support with SigV4.(add host parameter and set os.environ.setdefault('S3_USE_SIGV4', 'True')

 

 
 
What should I do?
 
Thank you.

 

 

Link to comment
Share on other sites

Hi Mofac,

 

It seems like setting the S3_USE_SIGV4 almost does it. But to get it to work you would need to provide an host argument when creating the boto connection.

 

Try and inherit our S3Accessor and use it for your location plugin:
 
class S3AccessorSig4(S3Accessor):    @property    def connection(self):        '''Return S3 connection.'''        if self._connection is None:            # Create connection with host argument.            self._connection = boto.connect_s3(                self.accessKey, self.secretKey,                host='s3.ap-northeast-2.amazonaws.com'            )                return self._connection

And also set the os.environ.setdefault('S3_USE_SIGV4', 'True')

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...