swift/test/unit/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 Initial commit of Swift code 2010-07-12 17:03:45 -05:00
corrupted_example.db Real files for bad databases. 2011-08-02 18:21:25 +00:00
malformed_example.db Real files for bad databases. 2011-08-02 18:21:25 +00:00
test_bench.py updated copyright date for all files 2012-03-19 13:45:34 -05:00
test_bufferedhttp.py Fix PEP8 issues in ./test/unit/common . 2012-08-31 11:24:46 +08:00
test_constraints.py Relax mount point name checking. 2012-10-18 11:24:18 -05:00
test_daemon.py updated copyright date for all files 2012-03-19 13:45:34 -05:00
test_db_replicator.py Refactor db_replicator's roundrobin_datadirs 2012-11-15 21:44:14 +00:00
test_db.py Fix PEP8 issues in ./test/unit/common . 2012-08-31 11:24:46 +08:00
test_direct_client.py updated copyright date for all files 2012-03-19 13:45:34 -05:00
test_exceptions.py updated copyright date for all files 2012-03-19 13:45:34 -05:00
test_init.py Fix PEP8 issues in ./test/unit/common . 2012-08-31 11:24:46 +08:00
test_internal_client.py Fixed bugs with internal client and object expirer 2012-11-08 00:05:35 +00:00
test_manager.py Warn when killing fails with EPERM 2012-10-03 08:28:36 -07:00
test_memcached.py Use a delta timeout for memcache where possible 2012-11-16 14:57:36 -05:00
test_swob.py Better TempAuth storage URL guessing 2012-11-10 16:39:25 +00:00
test_utils.py statsd timing refactor 2012-11-06 15:39:25 -08:00
test_wsgi.py Fixed bugs re: make_pre_authed* and SCRIPT_NAME 2012-10-30 15:54:05 +00:00