1705 Commits

Author SHA1 Message Date
John Dickinson
e75bb9045b fixed pep8 issue and renamed strcmp_const_time to streq_const_time
Change-Id: Ifc21f0ec08ac2ba120a67795e82082b18e08584e
2012-02-28 21:38:30 -06:00
Jenkins
9316a8f876 Merge "Use constant time string comparisons for auth." 2012-02-29 03:35:29 +00:00
Jenkins
1a7453f014 Merge "Blueprint cli-auth: common cli args" 2012-02-28 21:42:54 +00:00
Jenkins
5104cf4cfc Merge "added account_autocreate = true to example proxy config" 2012-02-28 21:28:33 +00:00
Russell Bryant
1f0798f4fb Use constant time string comparisons for auth.
Fix bug 942644.

Use constant time string comparisons when doing authentication to help
guard against timing attacks.

Change-Id: I88c4c5cd9edd9e5d60db07b6ae2638b74a2a2e17
2012-02-28 14:57:12 -05:00
Jenkins
85ee3aa9d5 Merge "set query_string 'qs' in direct_get_account and direct_get_container, but didn't pass it to http_connect" 2012-02-28 19:15:19 +00:00
John Dickinson
a6567e60ab added emails to AUTHORS file
Change-Id: Ib379e45b3869725121fbc02e5be788163c04619b
2012-02-27 13:31:38 -06:00
Jenkins
091d6a230b Merge "Fix lp:875301" 2012-02-27 19:01:30 +00:00
Jenkins
963d158afe Merge "Added logging to start and end of audit passes." 2012-02-27 16:34:27 +00:00
monsterxx03
fa4bb91fc6 set query_string 'qs' in direct_get_account and direct_get_container, but didn't pass it to http_connect
Change-Id: I44ded709fa174aacd66c2962231f2f5997dc0f71
2012-02-27 11:58:35 +08:00
Doug Weimer
72267260b1 Prevent a possible divide by 0 in obj/auditor.py.
Fixes bug 941731. If 'elapsed=0' in audit_all_objects set it
to 0.000001 to avoid divide by 0.

Change-Id: If0b43568033167818c482c8927863bea1dccfe57
2012-02-27 02:44:27 +00:00
gholt
b65db95abd Added logging to start and end of audit passes.
Change-Id: Ibf64387f53e4b6ce532272e0a5005a1f1d54fb53
2012-02-23 08:01:21 -08:00
Pete Zaitcev
133052b1ca Fix lp:875301
Pure formatting, not a word changed.

Change-Id: I95671428c5ad648497b0275489492d04e85ac79e
Bug: 875301
2012-02-22 18:43:05 -07:00
Pete Zaitcev
6f7f95ffde Add Fedora to SAIO.
In the past we had a document at Wiki, called RHELInstructions,
but it was permanently out of date, and someone deleted it, in
order to stop the confusion.

Differences for Fedora as quite small and it makes sense to maintain
them inside the main document.

This patch also fixes a couple of obvious problems:
 - a missing period
 - unwanted leading space that breaks a paragraph

Still no idea how to remove color from [swift-hash].

Change-Id: I73cda027c9d9bf695cd640a6d55735d82fba0048
2012-02-22 08:19:37 -07:00
Jenkins
48f7af6195 Merge "tempurl and formpost set REMOTE_USER" 2012-02-16 18:46:10 +00:00
gholt
c2f663787e Fix tempurl docs.
Change-Id: I77511241693b493b97eda2264d0c3e3d7e1df8d6
2012-02-10 21:44:17 +00:00
John Dickinson
17e95941dd added account_autocreate = true to example proxy config
Change-Id: Ib25c61da37bcbbda7bbd729560996ef6b3be1670
2012-02-09 07:40:00 -06:00
gholt
22ea604b94 tempurl and formpost set REMOTE_USER
This is to allow them to pass through staticweb.

Change-Id: I421b1dba89b298c6dbd8e99d7aa8d4e98f0c28e3
2012-02-09 02:49:14 +00:00
John Dickinson
c078c7af56 1.4.7 version bump
Change-Id: Ib6fbd5fb86e817ac63d14d9e05aff121ab0cfd86
2012-02-08 15:42:42 -06:00
John Dickinson
1021989b60 updated changelog for 1.4.6
Change-Id: If77964f27ad8d47aa02dd73b771b77cc6558ef37
2012-02-08 15:13:13 -06:00
Dean Troyer
6800ec378b Blueprint cli-auth: common cli args
Add --auth_url, --username and --password and OS_* env vars as
aliases to --auth, --user and --key.

Default to --auth-version=2.0 if none of --auth, --user or --key
are set or if OS_AUTH_URL is set.

Ensure trailing '/' is present in --auth so URLs are created correctly.

Fixes lp925212

Change-Id: Ic0008c5d5c1ab4fddbaab5d982ab60fed2c50019
2012-02-08 15:06:40 -06:00
John Dickinson
19ab70745d updated authors file
Change-Id: Id483bb1cec1b8b27788fe1233e1795adea6e5e49
2012-02-08 14:30:39 -06:00
David Goetz
a98ce6eade Change tpooled_get_hashes back to err,err on Timeout, (object server REPLICATE needs it) and unit tests
Change-Id: Ic60c33570594fd2c0939043863b013aa2103505d
2012-02-08 10:22:39 -08:00
Jenkins
dc9ce595ae Merge "Allow to pass arguments to nosetest." 2012-02-08 16:28:55 +00:00
Jenkins
92db54c223 Merge "Added timeout option to swift-recon" 2012-02-08 16:25:23 +00:00
gholt
0406323f9b Added timeout option to swift-recon
Change-Id: I0d3c55a11c5e3252f0fd4b128ab840403c7f55f6
2012-02-08 00:06:55 +00:00
David Goetz
0f997425ea skip host in http_connect if specified in headers
Change-Id: If614768f2aaf7ca8b06985c8efcd4120b324b290
2012-02-07 12:02:24 -08:00
Russell Bryant
e90424e88b Call setgroups() before setuid() and setgid().
Fixes bug 989569.

This patch ensures that the list of groups is completely reset when dropping
privileges.

Change-Id: I049f75e66e08a4a6361504b013bc68c4c38ef093
2012-02-07 14:20:42 -05:00
Chmouel Boudjnah
5a145145ac Allow to pass arguments to nosetest.
When running .functests or .unittests allow to pass argument on the
command line for nosetests.

Fixes bug 925636

Change-Id: Icb07c192328528900b502fbc937b9c83f70a4b0f
2012-02-02 19:47:39 +01:00
Jenkins
80a3cb556d Merge "Consistent timestamp formatting for last_modified." 2012-02-02 17:35:01 +00:00
Juan J. Martinez
bb3bfe1dbd Consistent timestamp formatting for last_modified.
Fixes bug 798268.

Python datetime's isoformat() uses %Y-%m-%dT%H:%M:%S.%f format, but
the miliseconds part is not included when it's zero.

As consequence the compliant ISO 8601 format was not consistent
when performing a GET request over a container (listing objects info).

Change-Id: Ifed3f0adf3eaca47304c142615169bd3f1901631
2012-02-02 11:54:15 +00:00
gholt
17b3506741 Fix bug regarding negative Content-Length headers.
Change-Id: Ib8e2a5271c33f57429a9683db233610416887ea3
2012-01-31 16:58:00 +00:00
Jenkins
a196386ee6 Merge "removed tools/rfc.sh" 2012-01-30 19:51:10 +00:00
Jenkins
a6f87a7dd4 Merge "Fix permissions when creating files/permissions." 2012-01-30 19:38:21 +00:00
Felipe Reyes
21ad3b8b3a remove unsed imports and variables
This cleanup is for the swift.common package

Change-Id: Ibe74d4f0ae0376395f620b9be24a52cb8a4a5d98
2012-01-28 22:38:57 -08:00
Thierry Carrez
b23d2eb422 Drop eval-based json parser fallback
Drop potentially-unsafe eval-based json parser that was
used as a fallback in case simplejson and json were not
available. Let's assume people run Python 2.6 or can
install simplejson if they are not. Fixes bug 909568.

Change-Id: I1b1860a77de5075fcea291a4f1b320a3e9e6261f
2012-01-24 16:34:13 +01:00
John Dickinson
3d9672799d removed tools/rfc.sh
Change-Id: I297c3801991cbed2c360b3324d005ed003a1108d
2012-01-23 15:43:48 -06:00
Chmouel Boudjnah
16a5faaaba PEP8 fixes.
Change-Id: I3c33c03547f97ca7afbb47c3bddfdeabf152afe2
2012-01-20 15:07:55 -06:00
Jenkins
09d392073c Merge "Add missing files in tarball" 2012-01-19 20:36:13 +00:00
Jenkins
1a032415e2 Merge "Fix for UTF-8 encoding/quoting issues in staticweb" 2012-01-19 20:35:05 +00:00
Chmouel Boudjnah
ff98c0ebb3 Fix permissions when creating files/permissions.
Set umask to 022 when creating directories instead of 0.

Change-Id: I8915d31907282f999df4ea3991d2ef440baee537
2012-01-19 10:45:26 -06:00
Chmouel Boudjnah
36af76fb9d Make binaries executables.
Set the excecutable bit on swift-form-signature swift-object-expirer
swift-init swift-temp-url binaries. Fixes bug 918430

Change-Id: Iafecf0b542ee8f607e765879edbffa1cb463d3eb
2012-01-18 16:08:26 -06:00
gholt
a7cc6e1cb9 Fix for UTF-8 encoding/quoting issues in staticweb
Also added ; charset=UTF-8 to the content-type.

Change-Id: I144a9fa2647b47663863b06636968beaa68a5d60
2012-01-18 16:39:20 +00:00
gholt
e1597a0ae2 Make memcached allow no port = default port
Change-Id: I5a6cb714a4fd7a57db63aa17bb043fcc7a8eb29b
2012-01-12 22:30:32 +00:00
Jenkins
05ae8686b9 Merge "Bug #904830: use type==object-store instead of name==swift from service catalog" 2012-01-12 15:37:24 +00:00
Thierry Carrez
47346f6490 Add missing files in tarball
Fix MANIFEST.in to include all files in released tarballs.
Note that tools/rfc.sh is ignored since it's only for (deprecated)
gerrit support. Fixes bug 912193.

Change-Id: Ic9952220a67d5583e639fcb9e74f472dd9f0fdef
2012-01-12 10:41:14 +01:00
gholt
7fc1721d7d TempURL and FormPost Middleware
Change-Id: I8d2ce2abdfe3a44605c9441ad7b1abc6c77e282d
2012-01-10 21:57:52 +00:00
gholt
338be6a681 Added memcache.conf option
Change-Id: Idfcb97421a5c1476b776acef94c7b997dab55aa9
2012-01-10 02:01:47 +00:00
Brent Roskos
76afb46d91 Updated whataremyips -> added try/catch block to prevent error related to known
netifaces issue:

https://bugs.launchpad.net/ubuntu/+source/netifaces/+bug/753009

Change-Id: I0f4ccdcf6d1655923d39ed44f4eb81203d3e525b
2012-01-05 12:32:15 -05:00
Donagh McCabe
6fe46ad056 Bug #904830: use type==object-store instead of name==swift from service catalog
The name field in the service catalog is an operator-specified, marketing name.
The type field contains the canonical name for the service (i.e., swift is
object-store).

Change-Id: I8556b3e6fddd8784f259170195352478d9c6ae32
2012-01-05 11:12:13 +00:00