10674 Commits

Author SHA1 Message Date
xianming mao
408820cbe3 Use ConfigParser instead of SafeConfigParser
The SafeConfigParser class has been renamed to ConfigParser in Python
3.2 [1]. This alias will be removed in future versions.So we can use
ConfigParser directly instead.

[1] http://bugs.python.org/issue10627

Closes-Bug: #1618666
Change-Id: If01186cefad2149d65ffcc1fc6550d72d26f5b11
2016-09-12 16:21:37 +00:00
Eric Brown
bf5711ef02 Remove the dead link in schema migration doc
The schema migration document refers to a another document that
doesn't exist. This patch removes the reference since no appropriate
link could be found.

The doc was also updated to include the copyright.

This fix also resolves a warning in the tox doc build:

/keystone/doc/source/online_schema_migration_examples.rst:23:
WARNING: undefined label: online-migration (if the link has no
caption the label must precede a section header)

Change-Id: I4732651f8c5efd9fa494fd5fba5dad1f782d89a2
Closes-Bug: #1622035
2016-09-09 15:45:52 -07:00
Jenkins
179c5605f9 Merge "Use freezegun for change password tests" 2016-09-09 18:54:58 +00:00
OpenStack Proposal Bot
e56dbe8d58 Updated from global requirements
Change-Id: I2bad9b39ed9ad4995e14e1c253abb3f8cbac9267
2016-09-09 16:05:04 +00:00
Jenkins
ae4473b5c2 Merge "standardize release note page ordering" 2016-09-08 23:18:20 +00:00
Jenkins
dd6f187e7f Merge "Update sample keystone.conf for Newton" 2016-09-08 23:11:00 +00:00
Jenkins
46cdbf47bd Merge "New notes on advanced upgrade/fallback for cluster" 2016-09-08 23:04:36 +00:00
Matt Fischer
9418f2609f New notes on advanced upgrade/fallback for cluster
For clustered Keystone nodes it's possible to optimize the upgrade
process to minimize downtime. Additionally a process to quickly restore
after a failed upgrade are described.

Change-Id: I746d46a968dd887b0559644f91ae207055146390
2016-09-08 20:51:19 +00:00
Doug Hellmann
06b050cfa3 standardize release note page ordering
In order to support automatically updating the release notes when we
create stable branches, we want the pages to be in a standard order.
This patch updates the order to be reverse chronological, so the most
recent notes appear at the top.

Change-Id: Ib364dcc8eb31275a31c83b68d7914263b183e393
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-09-08 14:53:59 -04:00
Jenkins
ded78e86cb Merge "Replace six iteration methods with standard ones" 2016-09-08 18:46:05 +00:00
Jenkins
1a94728581 Merge "[api-ref] Correct response code status" 2016-09-08 14:05:40 +00:00
Jenkins
e69b839843 Merge "Add docs for the null key" 2016-09-08 14:05:33 +00:00
Jenkins
5594d45ea7 Merge "Log warning if null key is used for encryption" 2016-09-08 14:05:24 +00:00
Jenkins
8ebeb6415e Merge "Introduce null key for credential encryption" 2016-09-08 14:05:15 +00:00
Jenkins
b96f6fa6b0 Merge "Updates configuration doc with latest changes" 2016-09-08 14:04:23 +00:00
Nguyen Phuong An
77a002bd3f [api-ref] Correct response code status
This patch corrects response code status in keystone api.

Change-Id: I5e4a65990a50c37ab6cce55cba90fc5ca1b54ba1
2016-09-08 11:59:12 +00:00
Lu lei
e7b845cca9 Replace six iteration methods with standard ones
1.As mentioned in [1], we should avoid using six.iterXXX
to achieve iterators. We can use dict.XXX instead, as it will
return iterators in PY3 as well.

2.In py2, the performance about list should be negligible,
see the link [2].

[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html

Change-Id: I8ca16e539d3bd1ef9ac685f1852a2f5e745f8731
2016-09-08 18:56:31 +08:00
Jenkins
45770923db Merge "Fixes a nit in a comment" 2016-09-08 05:04:38 +00:00
Jenkins
470a8a50c0 Merge "Project domain must match role domain for assignment" 2016-09-08 03:46:04 +00:00
David Stanek
3332edf6a6 Fixes a nit in a comment
Change-Id: Ife39b9edae41997a2d766f70d2a9c0e074e237d3
2016-09-08 02:55:23 +00:00
Eric Brown
85b2faa9cc Updates configuration doc with latest changes
* A number of the keystone.conf sections were missing from the
  documentation about configuration files.
* The object attributes were out-dated. The attribute
  password_expires_at and others were missing.

Change-Id: I7c87021aa7511ba9cb6ab3de93e74be7209b6ead
2016-09-07 17:28:35 -07:00
Lance Bragstad
9059f2ea8d Use freezegun for change password tests
We recently added a test for PCI password compliance that changes
passwords and attempts to get a token right afterwords. This causes
race conditions with Fernet tokens and we typcially use freezegun in
the tests to address it.

This commit does follows the same convention we've done elsewhere in
keystone.

Change-Id: I34e60b6fe56ae32ae0a32c8345b951bf9fe53ba9
2016-09-07 22:16:29 +00:00
Dolph Mathews
9a559c730a Update sample keystone.conf for Newton
Change-Id: Id1ff0484121be2be5d3e265149771fc8b8ae632a
2016-09-07 20:41:47 +00:00
Jenkins
6814292b3a Merge "More nit doc fixes" 2016-09-07 20:37:48 +00:00
Jenkins
e91c6fb7dc Merge "Keep the order of passwords in tests" 2016-09-07 19:20:56 +00:00
Sean Perry
73bdbe1f87 Project domain must match role domain for assignment
When assigning a Domain specific role to a user it is OK if the user
is from a different domain, but the project's domain must match the
role's domain.

Closes-Bug: 1590587
Change-Id: I1d63415de0130794939998c3e142ebdce9ddf39d
2016-09-07 11:43:53 -07:00
Lance Bragstad
407f08ec14 Add docs for the null key
Add information regarding the null key to the encrypted credentials
documentation.

Change-Id: Idbf4b1b15c9777b81d2a92d9c2e20a87e3eb6c53
Closes-Bug: 1619758
2016-09-07 18:38:55 +00:00
Lance Bragstad
59f117f6a8 Log warning if null key is used for encryption
The null key doesn't provide any real encryption protection. It only
provides security through obscurity since the null key is a known
thing. This commit makes it so we log a warning every time it is
used for encryption.

Change-Id: I10e8b6697c3b35c3ae6e8a1cec5e53f0913b42e6
Related-Bug: 1619758
2016-09-07 18:38:49 +00:00
Lance Bragstad
e9b64378e6 Introduce null key for credential encryption
To ease upgrades from Mitaka to Newton, we are introducing the
concept of a null key to keystone's implementation of credential
encryption. The null key can be assumed by keystone if no other
keys exists in the configured `CONF [credential] key_repository`
and it is a known value, so it doesn't need to be orchestrated
across nodes in multi-node deployments.

This allows an operator to upgrade from Mitaka to Newton without
having to setup a credential key repository beforehand. It is
strongly recommended that deployers configure their key_repository
and migrate off of the null key as soon as possible. Since the null
key is a known value, it is no more secure than storing secrets in
plain text. It is only here to ease the upgrade process for
deployers.

Change-Id: I6cca7e40ce36a8a24dc73f92b22487998da6a1ae
Related-Bug: 1619758
2016-09-07 18:38:34 +00:00
Eric Brown
3c3df9049b More nit doc fixes
Fixed some more trivial doc items missed in the previous patch.

* Removed extra underlining characters
* Removed extra blank lines at the end of the file

Change-Id: Ida511ff6fc0d28ee68c1ded1e272ed9cba1be4d7
2016-09-07 11:27:14 -07:00
Jenkins
6a93e9b06c Merge "Fix up some doc nits" 2016-09-07 17:22:53 +00:00
Jenkins
59f379896e Merge "[api-ref] Correcting parameter's type" 2016-09-07 17:04:04 +00:00
Boris Bobrov
2cf1b1e255 Keep the order of passwords in tests
While multiple passwords are stored for a user, only the latest one is
used for authentication. When `created_at` in tests get changed, the
order of password might change too.

Keep the order of passwords by giving earlier passwords an earlier date
of creation.

Change-Id: I68861bc5c379dcf1cf060081f7802917d6f0c4b9
2016-09-07 15:34:07 +00:00
Jenkins
cc912af562 Merge "[api-ref] Stop supporting os-api-ref 1.0.0" 2016-09-07 06:20:24 +00:00
Ha Van Tu
fb7be8ccd0 [api-ref] Stop supporting os-api-ref 1.0.0
The os-api-ref 1.0.0 is out. We can remove the support to older version
now.
Reference:
https://github.com/openstack/senlin/commit/
6d41feb58dd836d426c9b6f025846dbbf7295097
https://review.openstack.org/#/c/362170/

Change-Id: Ibdd4547d5cf90b31ddff0b548e649d46286cf70e
2016-09-07 11:55:14 +07:00
Eric Brown
a984bfffe0 Fix up some doc nits
Trivial fixes:
* extra lines at the end of files
* extra underlining characters
* spacing

Change-Id: I9e40a7f6d2e5e7bb76f2754558a5f8a86de83020
2016-09-06 21:27:24 -07:00
Jenkins
4e004111da Merge "Correct link type" 2016-09-07 03:53:46 +00:00
Jenkins
00a146bc8c Merge "Set default value for [saml]/idp_contact_surname" 2016-09-07 01:58:32 +00:00
Jenkins
05f667dd7a Merge "Emit log message for fernet tokens only" 2016-09-07 01:58:25 +00:00
Jenkins
0048156901 Merge "Only cache callables in the base manager" 2016-09-06 20:28:59 +00:00
David Stanek
83e3c00809 Only cache callables in the base manager
The base manager had an issue where if a property was accessed through the
__getattr__ it would be cached.

Closes-Bug: 1620722
Change-Id: Iad7ca87a30fd5fa9f8bc88a0c7f74acca2ae1a56
2016-09-06 16:42:20 +00:00
Nguyen Phuong An
5c9fa41834 [api-ref] Correcting parameter's type
This patch corrects some parameter's type such as 'type: list'
to 'type: array' or 'type: array of...' to 'type: array' because we
don't have 'type: list' in 'JSON Schema primitive types' [1]

[1] http://json-schema.org/latest/json-schema-core.html#anchor8

Change-Id: Ic638ef48fcf0f60c55cec975ee20a71d1830b319
2016-09-06 04:17:38 +00:00
Ha Van Tu
602cc57c07 Correct link type
In some tables [1], link parameter's type is wrong. This patch
change these parameters from 'string' to 'object'.

[1]
http://developer.openstack.org/api-ref/identity/v3/#list-users
http://developer.openstack.org/api-ref/identity/v3/#list-groups
http://developer.openstack.org/api-ref/identity/v3/#list-projects

Change-Id: I32916b4f3703b1411ddb1e643dd5f2b27fa6af99
2016-09-06 10:08:18 +07:00
Jenkins
b47f10290e Merge "Fix problems in service api doc" 2016-09-05 19:09:56 +00:00
Jenkins
40fd768260 Merge "Add the deprecated_since to deprecated options" 2016-09-05 15:30:59 +00:00
tengqm
fbe462f031 Fix problems in service api doc
This patch fixes the following problems found in the api doc:

- The 'service_id' field should not appear in a service create request;
- The 'enabled', 'description' fields should be optional when doing a
  service update.

Change-Id: Iac91a9f2d29a458f1e3eb93e64fea6a508b9980c
2016-09-05 09:14:25 -04:00
Jenkins
e3579c65f2 Merge "Raise NotImplementedError instead of NotImplemented" 2016-09-05 13:01:46 +00:00
Jenkins
a4188ac980 Merge "Add doctor checks for credential fernet keys" 2016-09-05 04:14:24 +00:00
Jenkins
3ea0858e5d Merge "Block global roles implying domain specific roles" 2016-09-05 03:54:54 +00:00
Ji-Wei
5a49379b34 Raise NotImplementedError instead of NotImplemented
NotImplementedError is the name of the exception
(https://docs.python.org/2/library/exceptions.html).
NotImplemented is the name of a constant
(https://docs.python.org/2/library/constants.html).
>>> raise NotImplemented()
Traceback (most recent call last):
  File "<pyshell#31>", line 1, in <module>
    raise NotImplemented()
TypeError: 'NotImplementedType' object is not callable
>>> raise NotImplementedError()
Traceback (most recent call last):
  File "<pyshell#32>", line 1, in <module>
    raise NotImplementedError()
NotImplementedError

This patch fix it.

Change-Id: I36292e5ee18bd792205a8ff527f4ae9705c61b61
Closes-Bug: #1339855
2016-09-04 03:47:56 +00:00