Swift3 Middleware for OpenStack Swift, allowing access to OpenStack swift via the Amazon S3 API.
dbc94b7098
Currently, swift3 abuses an access key as a S3 user id, which is not human readable string in the case of keystone auth. Let's use the following form: [tenant name]:[user name] This is the same format as what the tempauth middleware uses. Change-Id: I026bd28f0be81a38be515276c1dab532dcff7130 |
||
---|---|---|
doc/source | ||
swift3 | ||
.gitignore | ||
.gitreview | ||
.unittests | ||
AUTHORS | ||
CHANGELOG | ||
LICENSE | ||
README.md | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
Swift3
Swift3 Middleware for OpenStack Swift, allowing access to OpenStack swift via the Amazon S3 API.
Install
-
Install Swift3 with
sudo python setup.py install
orsudo python setup.py develop
or via whatever packaging system you may be using. -
Alter your proxy-server.conf pipeline to have swift3:
If you use tempauth:
Was::
[pipeline:main]
pipeline = catch_errors cache tempauth proxy-server
Change To::
[pipeline:main]
pipeline = catch_errors cache swift3 tempauth proxy-server
If you use keystone:
Was::
[pipeline:main]
pipeline = catch_errors cache authtoken keystone proxy-server
Change To::
[pipeline:main]
pipeline = catch_errors cache swift3 s3token authtoken keystone proxy-server
-
Add to your proxy-server.conf the section for the Swift3 WSGI filter::
[filter:swift3] use = egg:swift3#swift3
You also need to add the following if you use keystone (adjust port, host, protocol configurations for your environment):
[filter:s3token]
paste.filter_factory = keystone.middleware.s3_token:filter_factory
auth_port = 35357
auth_host = 127.0.0.1
auth_protocol = http