swift/etc
Clay Gerrard 4aba2fbb25 Check if REST API version is valid
Swift doesn't check if the used API version is valid. Currently there
is only one valid REST API version, but that might change in the
future.

This patch enforces "v1" or "v1.0" as the version string when accessing
account, containers and objects.

The list of accepted version strings can be manually overridden using a
comma-separated list in swift.conf to make this backward-compatible.
The constraint loader has been modified slightly to accept strings as
well as integers.

Any request to an account, container, and object which does not
provide the correct version string will get a 400 BadRequest response.

The allowed api versions are by default excluded from /info.

Co-Authored-By: Christian Schwede <christian.schwede@enovance.com>
Co-Authored-By: John Dickinson <me@not.mn>

Closes Bug #1437442

Change-Id: I5ab6e236544378abf2eab562ab759513d09bc256
2015-04-14 16:00:37 -07:00
..
account-server.conf-sample Fixes several typos (Swift) 2014-09-18 21:18:50 -07:00
container-reconciler.conf-sample Swift configuration parameter audit 2014-08-06 11:12:14 +10:00
container-server.conf-sample Update container sync to use internal client 2015-04-14 00:52:17 -07:00
container-sync-realms.conf-sample New container sync configuration option 2014-01-10 23:48:00 +00:00
dispersion.conf-sample Swift configuration parameter audit 2014-08-06 11:12:14 +10:00
drive-audit.conf-sample Adds console logging to swift-drive-audit 2014-12-18 14:19:12 +05:30
internal-client.conf-sample Update container sync to use internal client 2015-04-14 00:52:17 -07:00
memcache.conf-sample Make more memcache options configurable 2015-01-14 11:16:32 -05:00
mime.types-sample PEP 8 compliance and small modification to mime.types file 2010-11-23 19:26:02 -06:00
object-expirer.conf-sample Merge "Swift configuration parameter audit" 2014-08-06 16:18:02 +00:00
object-server.conf-sample Erasure Code Reconstructor 2015-04-14 00:52:17 -07:00
proxy-server.conf-sample Check if REST API version is valid 2015-04-14 16:00:37 -07:00
rsyncd.conf-sample Added missing lockfile configuration to sample rsync.conf 2011-02-12 18:27:59 -08:00
swift-rsyslog.conf-sample Add sample rsyslog.conf. 2013-06-25 10:24:26 +08:00
swift.conf-sample Check if REST API version is valid 2015-04-14 16:00:37 -07:00