Programming odds and ends — InfiniBand, RDMA, and low-latency networking for now.

s3fuse, now with Google Storage support

Just posted version 0.11 of s3fuse, my FUSE driver for Amazon S3 and, now, Google Storage for Developers. 0.11 also improves stability, error handling, logging, and directory caching. Give it a try. In addition to a source tarball, packages are available for both Debian and Red Hat.

Advertisements

5 responses

  1. M P

    Awesome!! Looking forward especially to more stability and improved google storage support.

    December 5, 2011 at 5:31 am

  2. Richard Sharpe

    I notice that Amazon says:

    Authorization = “AWS” + ” ” + AWSAccessKeyId + “:” + Signature;

    Signature = Base64( HMAC-SHA1( UTF-8-Encoding-Of( YourSecretAccessKeyID, StringToSign ) ) );

    While you use hmac_md5 …

    How is that possible?

    Send me email …

    December 25, 2011 at 11:12 am

  3. Richard Sharpe

    OK, I take that back:

    string util::sign(const string &key, const string &data)
    {
    unsigned int hmac_md5_len;
    uint8_t hmac_md5[EVP_MAX_MD_SIZE];

    HMAC(
    EVP_sha1(),
    reinterpret_cast(key.data()),
    key.size(),
    reinterpret_cast(data.data()),
    data.size(),
    hmac_md5,
    &hmac_md5_len);

    return base64_encode(hmac_md5, hmac_md5_len);
    }

    You are using EVP_shar1, it is just that your variables have ‘md5’ in them.

    December 25, 2011 at 11:23 am

    • Yep, you’re right — I just checked in a change for that. Thanks!

      December 26, 2011 at 6:01 pm

  4. Richard Sharpe

    Thanks, BTW.

    Your code served as a useful comparison on how to get the authentication hash correct for a Samba VFS I have started writing. The description by Amazon contained enough ambiguity, it seems to me, that a reference was useful.

    December 27, 2011 at 12:23 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s