Signature V4 is not required in most regions yet.  What region are you 
accessing ?
The next maintained release of ML 7x and 8x will use Signature V4 for all S3 
access.
Did you know you can use "s3://" URI's for S3 access anywhere a 'file' is 
normally used in ML instead of having to do your own HTTP call ? Where possible 
I recommend converting to using ML's internal S3 support, its more efficient 
and will be maintained as requirements  and API's evolve.

We are looking into exposing the signing algorithm as an API,  it shouldn't be 
much different than the current XQuery code in 'ec2-2009-11-30.xqy' , however 
signing is a bit tedious to get absolutely correct in any language.


-----------------------------------------------------------------------------
David Lee
Lead Engineer
MarkLogic Corporation
[email protected]
Phone: +1 812-482-5224
Cell:  +1 812-630-7622
www.marklogic.com<http://www.marklogic.com/>

From: [email protected] 
[mailto:[email protected]] On Behalf Of Aroul, Pavadai 
Durai (ELS-CON)
Sent: Wednesday, August 19, 2015 6:57 AM
To: [email protected]
Subject: [MarkLogic Dev General] Marklogic Xquery library for AWS signature 
version 4

Hello everyone,

I am currently with Marklogic version 7 hosted in a cloud environment. I have 
an xquery to create a pre-signed url for "GET method" using AWS signature 
version 2 which uses SHA1 hashing algorithm. But I am planning to upgrade the 
process to AWS signature version 4, since newer S3 accounts support only AWS 
signature version 4.

Do any of you have xquery code/library to create the pre-singed urls using AWS 
signature version 4 as described in the below link. It seems the newer S3 
accounts support only AWS signature version 4 and not 2. If any of you can 
share the code in GIThub, it would be very helpful.

http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html#RESTAuthenticationQueryStringAuth

Thanks,
Durai.

_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to