34aef9d091d60e567d3631010b288d7f4d49a532
Commit Graph

7929 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Matthew Oliver
34aef9d091 Add chaging secret key for external KMS section
This patch updates the overview_encryption page to add a
`Changing the encryption root secret of external KMS's` section
to point out the slight difference in naming. I.E:
 key_id_<secret_id> vs. encryption_root_secret_<secret_id>
This patch refers to both multikey support in the KMIP and KMS
key masters, so really should land after both of them.
Related-Change-Id: Ie52508e47d15ec5c4e96902d3c9f5f282d275683
Related-Change-Id: I4f485dcb31e5bea511c4e539c54681091fc5bb1c
Change-Id: Ie4cd8ae038501c8abc43d09cf0b207ca375a4366
2018年11月26日 21:38:56 -08:00
Matthew Oliver
fda3052a2d Multi-key KMS keymaster
Now that the trivial keymaster supports multiple keys, let's not
forget about the KMS/Barbican keymaster. Additional keys are
configured as:
 key_id_<secret_id> = <KMS unique identifier>
As with the trivial keymaster, the key to use for PUTs and POSTs is
specified with:
 active_root_secret_id = <secret_id>
Change-Id: I4f485dcb31e5bea511c4e539c54681091fc5bb1c
2018年11月26日 21:38:56 -08:00
Zuul
e58dce1e4e Merge "Use eventlet.patcher.original to get Python select module in get_hub" 2018年11月27日 03:59:53 +00:00
Zuul
e148640f8b Merge "Fix typo" 2018年11月26日 22:14:30 +00:00
Zuul
8aff0a0b66 Merge "Fix typo" 2018年11月26日 22:14:28 +00:00
Romain de Joux
4809884d9f Use eventlet.patcher.original to get Python select module in get_hub
get_hub function was added in commit b155da42 with the idea to bypass
eventlet automatic hub selection that prefers epoll if available by default.
Since version 0.20.0 eventlet removed select.poll() function in its patched
select module (eventlet.green.select), see:
 - https://github.com/eventlet/eventlet/commit/614a20462
So if eventlet monkey patching is done before a get_hub() call (as now in
wsgi.py since commit c9410c7d) if we use 'import select' we get the eventlet
version that don't have poll attribute.
To prevent that we use eventlet.patcher.original function to get python select
module to test if poll() is available on current platform.
Change-Id: I69b3db3951b3d3b6583845978deb2883492e7f0f
Closes-Bug: 1804627
2018年11月26日 23:04:30 +01:00
Tim Burke
582f0585e8 py3: encryption follow-up
Change-Id: Ic680a11fa3133b3d6f3fa6fa007ccfbeb540899a
2018年11月20日 14:27:19 -08:00
Tim Burke
37b814657e py3: port encryption
This got away from me a bit with the functional tests masquerading as
unit tests.
Change-Id: I1237c02eff96e53fff8f9661a2d85c4695b73371
2018年11月20日 01:30:04 -06:00
zhufl
3465d639e3 Add missing ws seperator between words
This is to add missing ws seperator between words, usually
in log messages.
Change-Id: I6b88fab428b93def77632f9aed29fc2de4380b0d
2018年11月19日 15:23:25 +08:00
Zuul
78da780722 Merge "Handle non-ASCII characters in S3 v2 listings." 2018年11月16日 13:34:08 +00:00
Zuul
6f699d877e Merge "Only url-quote Keys when encoding-type=url" 2018年11月16日 13:34:06 +00:00
Timur Alperovich
370f7d7a37 Handle non-ASCII characters in S3 v2 listings.
When computing the base-64 encoded continuation token, s3Api should
UTF-8 encode the object names.
Change-Id: I3f3edc17e05e7c1e7c6afec66973179e51c7d9d8
2018年11月14日 17:29:02 -08:00
wangdequn
a85dc0a225 update docs link address
Change-Id: I03f05c0f7683ded756f19b50243af2108aae7b3e
2018年11月12日 17:17:17 +00:00
Tim Burke
c1c65a7e9f Only url-quote Keys when encoding-type=url
Previously, we'd even url-quote ETags, leading to weird things like
 <ETag>%22a27a822070b843ed6407f4f38afdaa20%22</ETag>
in listings, where those '%22's should be double quotes.
Change-Id: I0f5e0e410c8297a4898caae00c196fa3b3862100
2018年11月09日 16:20:19 -08:00
Zuul
168dc91bd9 Merge "py3: port account/container replicators" 2018年11月09日 19:43:50 +00:00
chenxiangui
662fd818cf Fix typo
Fix the typo 'a' to 'an' in test_diskfile.py
Change-Id: I26332766e76b4f0b728e0e7a41fa75afae2517a8
2018年11月09日 20:28:51 +08:00
chenxiangui
c5e33b0b84 Fix typo
Fix typo in test_auditor.py
Change-Id: I23a95d251bf034a41f2d6aaf825b9a29fadf39c4
2018年11月09日 20:10:02 +08:00
Zuul
166b85e468 Merge "s3api: Add basic support for ?versions bucket listings" 2018年11月09日 00:19:40 +00:00
karen chan
a2fb335e4b s3api: Add basic support for ?versions bucket listings
We still don't have support for toggling S3 bucket versioning, but we
can at least support getting the latest versions of all objects.
See https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETVersion.html
for more information about the API. Note that the returned format is
distinct from both "GET Bucket (List Objects) Version 1" and "GET Bucket
(List Objects) Version 2" APIs.
Change-Id: Ic57c273a3d5d7cdc34ca3a03e35e99b202a0bb01
2018年11月08日 21:13:52 +00:00
liuyamin
34e48d50bf Remove setup.py check from pep8 job
Using "python setup.py check -r -s" method of checking the package has
been deprecated with the new recommendation to build the sdist and
wheel, then running "twine check" against the output.
Luckily, there is already a job that covers this that only runs when the
README, setup.py, or setup.cfg files change, making running this in the
pep8 job redundant. This covered by the test-release-openstack-python3
that is defined in the publish-to-pypi-python3 template.
More details can be found in this mailing list post:
http://lists.openstack.org/pipermail/openstack-dev/2018-October/136136.html
Change-Id: I6ff57e0146da44ec736cfe7a61d45dd31ea65b90
2018年11月08日 10:26:41 +08:00
Zuul
8922f3a8e8 Merge "Clean up HASH_PATH_* patching" 2018年11月07日 23:26:56 +00:00
Tim Burke
bc4494f24d py3: port account/container replicators
Change-Id: Ia2662d8f75883e1cc41b9277c65f8b771f56f902
2018年11月06日 16:54:20 -08:00
Zuul
6e664de7df Merge "py3: Monkey-patch json.loads to accept bytes on py35" 2018年11月03日 01:08:37 +00:00
Zuul
89d9420bb2 Merge "Fix usage of multiple accounts in functional tests" 2018年11月03日 01:08:35 +00:00
Zuul
50c6b85359 Merge "Update min tox version to 2.3.2" 2018年11月02日 22:22:06 +00:00
Tim Burke
c112203e0e py3: Monkey-patch json.loads to accept bytes on py35
I'm tired of creating code churn where I just slap
 .decode("nearly arbitrary choice of encoding")
in a bunch of places.
Change-Id: I79b2bc59fed130ca537e96c1074212861d7db6b8
2018年11月02日 21:38:53 +00:00
whoami-rajat
7a21272627 Update min tox version to 2.3.2
The commands used by constraints need at least tox 2.3.2. Update to
reflect reality, which should help with local running of constraints
targets.
Change-Id: I0051938d70bdb3060981e8ce1cd2a72ca8d292ff
2018年11月02日 19:01:06 +00:00
Tim Burke
887ba87c5a Add "historical document" note to ring background docs
Change-Id: Ib00193b62c1f35b06a93f261bd6cb0d2f9167b86
2018年11月02日 17:21:19 +00:00
Tim Burke
3420921a33 Clean up HASH_PATH_* patching
Previously, we'd sometimes shove strings into HASH_PATH_PREFIX or
HASH_PATH_SUFFIX, which would blow up on py3. Now, always use bytes.
Change-Id: Icab9981e8920da505c2395eb040f8261f2da6d2e
2018年11月01日 20:52:33 +00:00
Zuul
a13e44b39d Merge "py3: adapt common/db_replicator.py" 2018年11月01日 10:34:00 +00:00
Zuul
614e85d479 Merge "Remove empty directories after a revert job" 2018年11月01日 04:34:04 +00:00
Zuul
77733f6256 Merge "added note about double url quoting" 2018年11月01日 02:39:51 +00:00
Zuul
dd2448f708 Merge "Use correct headers in reconstructor requests" 2018年11月01日 02:39:49 +00:00
John Dickinson
11e81cfc8f added note about double url quoting
Change-Id: I196fc4212b5405c410c9bfb850cd0d4737094c47
2018年10月31日 11:41:37 -07:00
Clay Gerrard
441df4fc93 Use correct headers in reconstructor requests
As long as the reconstructor collects parts from all policies each job
must be considered to have it's storage policy index and we can't use
global state for policy specific headers. It's good hygiene to avoid
mutating the global state regardless.
Under load with multiple policies we observed essentially empty handoff
parts "re-appearing" on nodes until adding these changes.
Closes-Bug: #1671180
Change-Id: Id0e5f2743e05d81da7b26b2f05c90ba3c68e4d72
2018年10月31日 08:41:56 -05:00
Zuul
35c5f666de Merge "Add databases_per_second to db daemons" 2018年10月31日 07:58:38 +00:00
Zuul
f4487d7399 Merge "SSYNC: stop sharing global available_map/send_map" 2018年10月31日 02:02:42 +00:00
Zuul
205101eb5a Merge "SSYNC: Stop sharing a global response" 2018年10月31日 02:02:41 +00:00
Gerard Gine
e8a7729a0d Fix usage of multiple accounts in functional tests
Some tests make use of multiple accounts without checking of they have
been set up. This commit tries to fix some of these situations.
Change-Id: I461679e78e19ce0866c7618c581a8cb573cca7f5
2018年10月30日 22:59:22 +00:00
Clay Gerrard
06cf5d298f Add databases_per_second to db daemons
Most daemons have a "go as fast as you can then sleep for 30 seconds"
strategy towards resource utilization; the object-updater and
object-auditor however have some "X_per_second" options that allow
operators much better control over how they spend their I/O budget.
This change extends that pattern into the account-replicator,
container-replicator, and container-sharder which have been known to peg
CPUs when they're not IO limited.
Partial-Bug: #1784753
Change-Id: Ib7f2497794fa2f384a1a6ab500b657c624426384
2018年10月30日 22:28:05 +00:00
Zuul
2cfe31551d Merge "Allow multiple keymasters" 2018年10月30日 06:55:54 +00:00
Zuul
0e4e58158d Merge "Simplify the decryption of container listings" 2018年10月30日 06:55:52 +00:00
Zuul
965b056999 Merge "Unify handle_get/handle_head in decrypter" 2018年10月30日 06:55:50 +00:00
Zuul
79a9143624 Merge "Follow up s3api ensures any string for secret as bytes string" 2018年10月30日 06:55:09 +00:00
Zuul
f6df4dbeb4 Merge "s3api: Ensure secret is utf8 in check_signature" 2018年10月30日 06:55:06 +00:00
Romain LE DISEZ
2d1c438191 SSYNC: stop sharing global available_map/send_map
Change-Id: Iaba8abb81dec792ee92e3715ecc459b57755fcae
2018年10月29日 17:39:58 +01:00
Romain LE DISEZ
6b94cf204a SSYNC: Stop sharing a global response
Change-Id: Ia431d20e1132cc139ac067d66d5d1626ec07117f
2018年10月29日 17:39:45 +01:00
Romain LE DISEZ
e4ad56abb1 SSYNC: Stop sharing a global connection
Change-Id: Id5988887f01532b27c3888a126764524d2466011
2018年10月29日 17:39:31 +01:00
Romain LE DISEZ
46c6fab1cf SSYNC: Remove useless self.failures in sender
Change-Id: Ie5264af0bf2a8d557489c597c3fdc5728e69c6e8
2018年10月29日 10:51:38 +01:00
Zuul
24bf5eea8c Merge "Fix up the test for .ismount" 2018年10月27日 04:48:10 +00:00