swift/swift/common
Samuel Merritt 357b12dc2b Remove IP-based container-sync ACLs from auth middlewares.
The determination of the client IP looked at the X-Cluster-Client-Ip
and X-Forwarded-For headers in the incoming HTTP request. This is
trivially spoofable by a malicious client, so there's no security
gained by having the check there.

Worse, having the check there provides a false sense of security to
cluster operators. It sounds like it's based on the client IP, so an
attacker would have to do IP spoofing to defeat it. However, it's
really just a shared secret, and there's already a secret key set
up. Basically, it looks like 2-factor auth (IP+key), but it's really
1-factor (key).

Now, the one case where this might provide some security is where the
Swift cluster is behind an external load balancer that strips off the
X-Cluster-Client-Ip and X-Forwarded-For headers and substitutes its
own. I don't think it's worth the tradeoff, hence this commit.

Fixes bug 1068420 for very small values of "fixes".

DocImpact

Change-Id: I2bef64c2e1e4df8a612a5531a35721202deb6964
2012-11-16 18:47:06 -08:00
..
middleware Remove IP-based container-sync ACLs from auth middlewares. 2012-11-16 18:47:06 -08:00
ring builder.add_devs gets next id if not provided 2012-09-14 16:11:50 -05:00
__init__.py moved LIMIT_LISTING const to swift.common.constraints, added test.unit.MockTrue, 100% test coverage on swift.common.constraints 2010-07-29 13:30:16 -05:00
bench.py Merge "Make swift-bench use less memory with large object sizes." 2012-11-09 21:33:32 +00:00
bufferedhttp.py Refactor http_connect() to use http_connect_raw() 2012-11-15 21:57:06 -05:00
constraints.py Relax mount point name checking. 2012-10-18 11:24:18 -05:00
daemon.py changed TRUE_VALUES references to utils.config_true_value() call 2012-10-29 13:59:01 -07:00
db.py fix typing in swift/common.db, swift/container/server.db 2012-10-09 01:37:46 +04:00
db_replicator.py Refactor db_replicator's roundrobin_datadirs 2012-11-15 21:44:14 +00:00
direct_client.py Make swift-bench use less memory with large object sizes. 2012-11-09 11:10:00 -08:00
exceptions.py obj replicator speed up 2012-09-10 15:12:39 -07:00
http.py local WSGI Request and Response classes 2012-09-28 14:48:48 -07:00
internal_client.py Fixed bugs with internal client and object expirer 2012-11-08 00:05:35 +00:00
manager.py Random pep8 fixes! 2012-10-13 12:04:25 +11:00
memcached.py Use a delta timeout for memcache where possible 2012-11-16 14:57:36 -05:00
swob.py Better TempAuth storage URL guessing 2012-11-10 16:39:25 +00:00
utils.py statsd timing refactor 2012-11-06 15:39:25 -08:00
wsgi.py check response status in WSGIContext._app_call 2012-11-14 03:12:21 -08:00