swift/swift/common/middleware
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
..
__init__.py Initial commit of middleware refactor 2010-08-20 00:42:38 +00:00
acl.py Random pep8 fixes! 2012-10-13 12:04:25 +11:00
catch_errors.py change catch_errors to use WSGIContext 2012-11-15 13:18:38 -08:00
cname_lookup.py local WSGI Request and Response classes 2012-09-28 14:48:48 -07:00
domain_remap.py local WSGI Request and Response classes 2012-09-28 14:48:48 -07:00
formpost.py FormPost logging bugfix and slight refactor 2012-07-03 19:04:40 +00:00
healthcheck.py local WSGI Request and Response classes 2012-09-28 14:48:48 -07:00
keystoneauth.py Remove IP-based container-sync ACLs from auth middlewares. 2012-11-16 18:47:06 -08:00
memcache.py Fix bug where serialization_format is ignored 2012-09-18 18:24:47 +00:00
name_check.py local WSGI Request and Response classes 2012-09-28 14:48:48 -07:00
proxy_logging.py Fix 500 on GET of many-segment manifest. 2012-11-12 15:02:04 -08:00
ratelimit.py local WSGI Request and Response classes 2012-09-28 14:48:48 -07:00
recon.py changed TRUE_VALUES references to utils.config_true_value() call 2012-10-29 13:59:01 -07:00
staticweb.py changed TRUE_VALUES references to utils.config_true_value() call 2012-10-29 13:59:01 -07:00
tempauth.py Remove IP-based container-sync ACLs from auth middlewares. 2012-11-16 18:47:06 -08:00
tempurl.py Reverted the pulling out of various middleware: 2012-05-16 21:25:10 +00:00