10260 Commits

Author SHA1 Message Date
Tin Lam
05f8578787 Add schema validation to v2 create tenant
Partially implements: bp schema-validation-extent

Change-Id: I67296656df073c01de2e26d64e798e76aae1cb9e
2016-07-27 03:47:07 +00:00
Jenkins
94e83aff17 Merge "Add schema validation to create role" 2016-07-25 03:26:31 +00:00
Jenkins
7a8898d95b Merge "Added cache for id mapping manager" 2016-07-25 02:59:23 +00:00
Jenkins
a4580a8087 Merge "PCI-DSS Password strength requirements" 2016-07-23 03:58:34 +00:00
Jenkins
a1ba4a22f6 Merge "PCI-DSS Adds password_expires_at to API docs" 2016-07-22 23:17:17 +00:00
Jenkins
c05d287ee2 Merge "Migrate OS-FEDERATION from specs repo" 2016-07-22 18:21:32 +00:00
Ronald De Rose
dfd5d25910 PCI-DSS Adds password_expires_at to API docs
This patch adds a new user response attribute, password_expires_at,
to the Identity API v3 documentation.

Passord expires validation implementation:
https://review.openstack.org/333360

Depends-On: I07c10de627898d6ac79578dc24292ded4a2190f1
Partially-implements: blueprint pci-dss
Change-Id: I37136f79488d7469f0b8b24e3f5628899e40cac0
2016-07-22 17:47:27 +00:00
gage hugo
80b4ffaa9f Add schema validation to create role
Added validation for create role in v2 api

Partially implements: bp schema-validation-extent

Change-Id: I36dad2085e4147c8954a120a2537a247ce085791
2016-07-22 09:37:25 -05:00
Jenkins
7e127fd4b2 Merge "deprecate a few more LDAP config options" 2016-07-21 21:47:49 +00:00
Jenkins
b6fc525c8f Merge "Fix up the api-ref request/response parameters for projects" 2016-07-21 17:49:40 +00:00
Jenkins
0cecda6ff0 Merge "Clarify V2 API for enabling or disabling user" 2016-07-21 17:49:28 +00:00
Jenkins
f854241d0f Merge "password is not required for updating a user" 2016-07-21 17:48:25 +00:00
Jenkins
25c11ef293 Merge "Removed duplicate parameter in v2-admin api-ref" 2016-07-21 06:00:47 +00:00
Henry Nash
0b49d43e5b Fix up the api-ref request/response parameters for projects
A number of the examples are also updated, since not all of
them were valid combinations of domain_id, parent_id and
is_domain.

Change-Id: Id642762cd6acfdf6142b24caf3de1d16db599065
2016-07-21 06:07:43 +01:00
Jenkins
408cc2742a Merge "Fix the errors in params in api-ref for V3 region" 2016-07-21 03:48:24 +00:00
Dave Chen
0f13aed2d8 password is not required for updating a user
This patch fixes the nits from the below commit:

https://review.openstack.org/#/c/342089/

Change-Id: I062979ccce393e74e72c3d812657123151e476fd
2016-07-21 11:13:15 +08:00
Dave Chen
002de1b183 Clarify V2 API for enabling or disabling user
This small change make it clear that the API can also disable a
user and the request body with `enabled` attribute is always needed.

Change-Id: I4e242d36e9830fd162634c5a864f6a787a4de9d7
Related-Bug: #1603905
2016-07-21 10:50:04 +08:00
Jenkins
9b3302a7e2 Merge "Fix the errors in params in api-ref for V3 user" 2016-07-21 00:32:10 +00:00
gage hugo
0e6752b7f5 Removed duplicate parameter in v2-admin api-ref
user_id was listed twice under the update user request parameters.
This fix removes the duplicated parameter.

Change-Id: I9c70aff00f151c4907101335174adf3624d4f686
2016-07-20 19:05:49 -05:00
Jenkins
c70e69b317 Merge "Remove get_user_id in trust controller" 2016-07-20 20:35:52 +00:00
Jenkins
7c6ea30ccf Merge "Cleanup trusts controller" 2016-07-20 20:33:09 +00:00
Jenkins
0fe056d639 Merge "Add Python 3.5 classifier" 2016-07-20 16:14:22 +00:00
Jenkins
0d7eb58930 Merge "Handle Py35 fix of ast.node.col_offset bug" 2016-07-20 16:14:12 +00:00
Dave Chen
e183c14be7 Fix the errors in params in api-ref for V3 region
Change-Id: If412bb5424e61f45793f498112950ca02682a650
2016-07-20 22:12:58 +08:00
Dave Chen
14018e95f3 Fix the errors in params in api-ref for V3 user
This patch also take the chance to fix some examples.

Change-Id: I512d3dcc8a73d50b2bbee5f3d3b9f44c359e7416
2016-07-20 22:05:23 +08:00
Jenkins
8dfb874724 Merge "Run AuthTokenTests against fernet and uuid" 2016-07-20 13:51:44 +00:00
Jenkins
a1a2202b7a Merge "Clean up api-ref for domains" 2016-07-20 11:18:16 +00:00
liuhongjiang
53bb53a814 Added cache for id mapping manager
When using a identity driver without providing uuid, and using default
sql id mapping driver, if there are lots of users, then it may take
minutes to list users. Adding cache to the id mapping manager can
improve the performance.

After adding the cache, when listing 12000 users though the keystone
api, and the time is reduced from about 75 seconds to 20 seconds.

Closes-Bug: #1582585
Change-Id: I72eeb88926d8babb09a61e99f6f594371987f393
2016-07-20 10:57:13 +08:00
Jenkins
38aa653366 Merge "Updated from global requirements" 2016-07-19 23:38:23 +00:00
Jenkins
46ac7a078e Merge "Pass request to v2 token authenticate" 2016-07-19 22:53:36 +00:00
Jenkins
85b00a60f3 Merge "Prevent error when duplicate mapping is created" 2016-07-19 22:47:24 +00:00
Jenkins
f8c297b272 Merge "keystone-manage doctor" 2016-07-19 22:47:15 +00:00
OpenStack Proposal Bot
b679f2b440 Updated from global requirements
Change-Id: I652cc271d0b7affb9d62e0d7bf6a5240a2790b8e
2016-07-19 21:08:11 +00:00
Eric Brown
32233609a0 Add Python 3.5 classifier
Since the Python 3.5 gate job builds cleanly now, we should claim
support for Python 3.5 in the metadata's classifier.

Change-Id: I215313560d6bb3501093c95870c12cde1f11b5a5
2016-07-19 20:53:06 +00:00
Eric Brown
05b5dfe144 Handle Py35 fix of ast.node.col_offset bug
In 3.5, the ast module returns the correct value for the col_offset
of a function definition whereas earlier versions did not. The value
is off by one column.

Closes-Bug: #1603236

Change-Id: I7835d7ed8d652a6bd585e8e0372fab402424038d
2016-07-19 13:51:32 -07:00
Steve Martinelli
2293342191 deprecate a few more LDAP config options
These options should have been deprecated in Mitaka (when LDAP
write support was deprecated), but were missed. Mark them as
deprecated now.

bp deprecated-as-of-newton

Change-Id: I683c1cb27ff28d7600e743fe9a17ceab112a5ad3
2016-07-19 20:26:49 +00:00
Jenkins
18a1f1a554 Merge "Use freezegun to increment the clock in test_v3_filters" 2016-07-19 18:25:48 +00:00
Henry Nash
e8eeb433e1 Clean up api-ref for domains
Change-Id: Ia829c95945ae13e481a773815065bd2372b5895b
2016-07-19 17:33:54 +01:00
Jenkins
9f77e26b18 Merge "Clean up the api-ref for groups" 2016-07-19 10:26:04 +00:00
Jenkins
9adda34914 Merge "v2 api: add APIs for setting a user's password" 2016-07-19 01:50:27 +00:00
Dolph Mathews
059f35302d keystone-manage doctor
This introduces a new keystone-manage command called 'doctor' which
attempts to diagnose and report on various ill-advised configurations
and deployment states.

The number of checks we could perform is basically endless, so this is
just a random sampling of checks to get the ball rolling. The idea is
that as new features are introduced, as default configurations change,
as we have new recommendations to make to deployers, etc, we can
implement new checks in keystone-manage doctor and communicate our
concerns directly to those operated affected deployments.

Change-Id: Ib6660c1a885c439ca03357870628b2ea52e39e9d
Implements: bp keystone-manage-doctor
2016-07-18 15:51:57 -07:00
Steve Martinelli
7f7cfe7b7e v2 api: add APIs for setting a user's password
Add support for an admin setting a user's password, the route
is defined here:

https://github.com/openstack/keystone/blob/master/keystone/v2_crud/admin_crud.py#L110-L114

Also, this patch updates the sample response and sample request
for enabling a user, since the two APIs are very similar.

Change-Id: I3ad0d4ab8ebec7481954997cd0b127627a18f13d
2016-07-18 21:17:13 +00:00
Clenimar Filemon
74a8e5be18 Update os-inherit API reference
In order to match the keystone-specs version [1].

[1] Ia838dff1863b1b77472079b32783ae31557b1ef5
Change-Id: I648a66107477daff491a55f7004ec4b4306832e6
2016-07-18 17:51:57 -03:00
OpenStack Proposal Bot
b61b1c5a76 Updated from global requirements
Change-Id: I9e499dbeb035922f4d299eff435c68fee2b000a6
2016-07-18 18:09:35 +00:00
Lance Bragstad
72e6196d54 Run AuthTokenTests against fernet and uuid
Previously, AuthTokenTests inherited the test structure and ran the tests with
the default keystone configuration. This commit breaks AuthTokenTests to
inherit from `object` and sets up FernetAuthTokenTests and UUIDAuthTokenTests
to setup configuration appropriately and run the tests.

This fix was originally a part of https://review.openstack.org/#/c/258650 but
this is an attempt to break 258650 into smaller, more reviewable, pieces.

Co-Authored-By: Raildo Mascena <raildo@lsd.ufcg.edu.br>
Co-Authored-By: Adam Young <ayound@redhat.com>

Change-Id: I9acacfe7db4997add5505a9ee1972139af11979e
Partial-Bug: 1561054
2016-07-18 17:12:14 +00:00
Jenkins
1bfcdef822 Merge "Fix the username value in federated tokens" 2016-07-18 16:58:22 +00:00
Lance Bragstad
7646e2181b Use freezegun to increment the clock in test_v3_filters
In preparation for making Fernet the default token provider, we must freeze and
increment the clock in certain tests. This is because Fernet does not support
sub-second precision and if a Fernet token is validated in the same second that
a revocation event has occured, it will be considered invalid.

This commit makes it so that we freeze the clock in
test_list_users_filtered_by_funny_name() and increment it by one second when we
go to list users by name.

This fix was originally a part of https://review.openstack.org/#/c/258650 but
this is an attempt to break 258650 into smaller, more reviewable, pieces.

Partial-Bug: 1561054
Change-Id: I3ea4af702e6914775156c605799992a41e8e75c5
2016-07-18 15:47:51 +00:00
Jenkins
df30ac6efc Merge "Fix the wrong check condition" 2016-07-18 13:38:30 +00:00
Boris Bobrov
29624d47e3 Prevent error when duplicate mapping is created
The mapping has unique constraint and creating a mapping with the same
local entity will fail. Creation of mapping with the same local entity
might happen because of race condition, that would happen if 2 processes
start mapping of the same local entity at the same time.

Return the existing public_id if creation failed due to duplicate.

Change-Id: Ic6e6ec9614e16a49c791dc6c06a4464d18be09be
Related-Bug: 1582585
2016-07-18 12:38:48 +03:00
Dave Chen
9df02bfb55 Fix the wrong check condition
Keystone has the code to prevent `None` value to be returned in the
revoke event, but there is wrong check condition that leads to
the `access_token_id` with None will be returned to end user.

Closes-Bug: #1603861
Change-Id: Ifc2908ffb6b8353d24a6416338d8fadb0e0b2a21
2016-07-18 15:17:24 +08:00