256 Commits

Author SHA1 Message Date
David Goetz
db4689689a minor bug fixes- pre ratelimit caching of container size 2010-10-06 13:11:58 -07:00
David Goetz
72d40bd9f6 adding ratelimiting middleware and unit tests 2010-10-04 14:11:48 -07:00
John Dickinson
8ed75703fc Fixes bug where "/" was not allowed in Destination header in COPY requests 2010-09-24 15:22:15 +00:00
John Dickinson
e68dc69016 fixed COPY bug and adds tests so it won't happend again 2010-09-24 09:51:00 -05:00
Chuck Thier
b39fcb86bb object-updater now records successful updates in the pickle, so that in failure scenarios it doesn't have to retry the ones the were successful before. 2010-09-23 18:22:48 +00:00
gholt
9a4598abd6 Fixed bug where the object auditor hadn't been calling invalidate_hash. 2010-09-23 18:22:06 +00:00
Chuck Thier
044b065cda Refactored to correctly write the pickle to disk 2010-09-23 16:09:30 +00:00
Michael Barton
ead226e706 Make check_xml_encodable to only validate utf-8 correctness 2010-09-22 20:22:04 +00:00
gholt
2d6015a0a8 Fixed bug where the object auditor hadn't been calling invalidate_hash 2010-09-22 13:07:15 -07:00
Michael Barton
36c05a28ef unused code 2010-09-22 19:53:38 +00:00
Michael Barton
9ea5d0b3a1 Make check_xml_encodable to only validate utf-8 correctness 2010-09-22 19:34:52 +00:00
Chuck Thier
1d26b15a4e Updated object updater to keep track of successes so it doesn't retry updating nodes that it has already updated 2010-09-21 20:31:14 +00:00
Anne Gentle
f828723075 Simple typo fix on the Swift Getting Started page to spell development correctly. 2010-09-21 19:02:17 +00:00
Anne Gentle
fe03bebcb0 Corrects a typo in the Getting Started page 2010-09-21 10:56:41 -05:00
gholt
43b6a501f7 devauth-middleware will not set its authorize func unless the token or account starts with the reseller prefix; if its not going to use its authorize func, it will set a deny-by-default func if one is not set already 2010-09-17 19:32:27 +00:00
gholt
c5513de8ac More doc updates, little refactoring too 2010-09-17 11:26:30 -07:00
Jay Payne
ef5ad2f41d fixed two bugs in the "ls" section
1.  changed dir location
2.  corrected spelling errors
2010-09-17 17:02:23 +00:00
gholt
903a800fa2 Merged changes from lp:~clay-gerrard/swift/authpatch2.1 2010-09-17 09:32:39 -07:00
Clay Gerrard
e911634dea after I was sure all cases were covered, I rearranged code to be more like greg's; added comments, and tests 2010-09-17 11:03:07 -05:00
Jay Payne
013194b71b corrected dir order and spelling errors in ls section 2010-09-17 15:54:05 +00:00
Clay Gerrard
d5770ee214 trying to make sense of auth middleware and reseller prefix 2010-09-16 16:44:44 -05:00
gholt
01059884b3 Update to better support no-reseller-prefix and multiple auth middleware 2010-09-16 11:14:09 -07:00
gholt
73ee6708df Merge updates from trunk 2010-09-16 10:48:15 -07:00
Jay Payne
3bdd789f74 swift-get-nodes cleanup 2010-09-16 15:19:53 +00:00
Jay Payne
12d8f14891 Fixed pep8 errors, dir error in the listing, made dryer 2010-09-16 13:54:17 +00:00
gholt
bb8b506919 Just a bit of PEP8ing 2010-09-16 13:02:26 +00:00
gholt
c138ad99a2 Just a bit of PEP8ing 2010-09-15 20:52:54 -07:00
gholt
9b9c64d27c Notify if reseller_prefix does not match what is in auth.db 2010-09-16 03:29:44 +00:00
gholt
2000556522 Made auth.db upgrade message a bit more clear. 2010-09-15 19:07:35 -07:00
gholt
f68a0b0af2 Notify if reseller_prefix does not match what is in auth.db 2010-09-15 18:44:54 -07:00
gholt
c60c409d61 devauth-middleware will not set its authorize func unless the token or account starts with the reseller prefix; if its not going to use its authorize func, it will set a deny-by-default func if one is not set already 2010-09-15 14:26:53 -07:00
gholt
a8b37dfecd auth-server: Change 400 to 409 when trying to add an existing user 2010-09-15 20:37:06 +00:00
gholt
c55a069468 auth-server: Change 400 to 409 when trying to add an existing user 2010-09-15 13:11:06 -07:00
gholt
899d31279d Locking down the DevAuth by adding support for a super admin and reseller admins. 2010-09-15 19:32:33 +00:00
Jay Payne
cbbfb80f86 Clean up code that was requested 2010-09-15 19:28:57 +00:00
Jay Payne
257be3212c Added "HandOff" locations to swift-get-nodes 2010-09-15 13:32:22 +00:00
Jay Payne
e61c21b98f Adds HandOff locations to the various displays 2010-09-14 06:51:20 +00:00
gholt
dcbb51cc71 Updated docs. 2010-09-11 17:23:24 -07:00
gholt
2b995be46c Bugfixes. Rest of tests. 2010-09-11 17:03:09 -07:00
gholt
b56bf3a0f3 DevAuth support for reseller admins and an initial super admin. DevAuth server no longer needs the account ring or direct account server access. Proxy server supports account PUTs. 2010-09-10 13:40:43 -07:00
gholt
118ffba216 Add container-level ACLs. Refactor auth to be more pluggable. Document how to make your own auth. 2010-09-10 15:37:02 +00:00
gholt
7057a7c3b3 Proof that test "coverage" != no obvious bugs 2010-09-10 07:52:10 -07:00
gholt
6b353a520f Fix bug on auto-container create during upload. 2010-09-09 10:42:41 -07:00
gholt
c931d7602a Updated included client.py in st 2010-09-09 10:28:50 -07:00
gholt
a5df15005b Got rid of inter-reseller ACLs. Enforce ACLs to only work within a reseller space. Updated docs and tests. We can expand to inter-reseller in the future with ACLs like .x:RESELLER_group 2010-09-09 10:24:25 -07:00
gholt
d2ec027e22 For ACL strings: Shortened .ref to just .r, though .ref, .referer, and .referrer are all accepted. Updated 'Creating Your Own Auth Middleware' to describe how the DevAuth server works and suggestions for creating one's own. Added reseller_prefix (optional) implementation. Used urlparse in referrer_allowed. Fixed bug where group names would get lowercased by clean_acl. Changed .r:any to .r:*. Allowed .r:*.example.com to mean .r:.example.com. Made proxy log just the first authenticated group (the user) alongside the token. Moved proxy callback to clean_acl before the length check of the metadata. Cleaned up redundant logic in first proxy swift.authorize callback. Bit better docs. More and updated tests. 2010-09-08 22:37:27 -07:00
gholt
85b8d97086 Referrers now support user:pass part of URLs; rest of tests for what has changed 2010-09-06 13:26:31 -07:00
gholt
d0367fdf19 Updated direct_client to match the changes in client 2010-09-05 21:06:16 -07:00
gholt
2edfd2b951 Doc fixes and updates 2010-09-05 20:30:09 -07:00
gholt
235c0e9bd5 Fixed typos; bug fix in auth db upgrade; renamed a couple things to better reflect their new usage; updated docs 2010-09-05 19:53:08 -07:00