From: Matt Benjamin <mbenjamin@redhat.com>
To: The Sacred Order of the Squid Cybernetic <ceph-devel@vger.kernel.org>
Subject: rgw: using aws4 auth with boto
Date: Thu, 2 Jun 2016 12:07:43 -0400 (EDT) [thread overview]
Message-ID: <1112504184.45552234.1464883663435.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <1051461959.45549645.1464883404364.JavaMail.zimbra@redhat.com>
Hi,
Some random notes on using aws4 signatures with boto S3 client.
.boto:
[Boto]
debug = 2
[s3]
use-sigv4 = True
With use-sigv4 enabled, I had issues with boto--what error you see may depend on the method used to create an S3Connection--use connect_s3 in my tests,
and found I was able to run if I added an initializer for the class member self.region_name to the S#HmacAuthV4Handler ctor:
class S3HmacAuthV4Handler(HmacAuthV4Handler, AuthHandler):
"""
Implements a variant of Version 4 HMAC authorization specific to S3.
"""
capability = ['hmac-v4-s3']
def __init__(self, *args, **kwargs):
super(S3HmacAuthV4Handler, self).__init__(*args, **kwargs)
self.region_name = ""
This was against a pip-installed boto.
Matt
--
Matt Benjamin
Red Hat, Inc.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103
http://www.redhat.com/en/technologies/storage
tel. 734-707-0660
fax. 734-769-8938
cel. 734-216-5309
parent reply other threads:[~2016-06-02 16:07 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1051461959.45549645.1464883404364.JavaMail.zimbra@redhat.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1112504184.45552234.1464883663435.JavaMail.zimbra@redhat.com \
--to=mbenjamin@redhat.com \
--cc=ceph-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox