12246 Commits

Author SHA1 Message Date
Zuul
c191747a2a Merge "Filter users/groups in ldap with whitespaces" 2017-11-14 20:26:47 +00:00
Zuul
a6c4b75e1b Merge "Two different API achieve listing role assignments" 2017-11-13 15:58:49 +00:00
OpenStack Proposal Bot
d2da034a93 Updated from global requirements
Change-Id: I55b360f23bca8b22e79bd7884cb415b87e8bf4e4
2017-11-13 10:19:51 +00:00
Zuul
52bb8757e6 Merge "Ensure listing projects always returns tags" 2017-11-07 03:40:42 +00:00
Zuul
2b6ec14397 Merge "Remove v2 token value model" 2017-11-04 12:51:50 +00:00
Zuul
c4b7bcf452 Merge "Remove ensure_default_domain_exists" 2017-11-04 11:06:30 +00:00
Zuul
cadb94e457 Merge "Change url in middleware test to v3" 2017-11-04 10:51:42 +00:00
Zuul
aabebd1fdb Merge "Confusing notes of ephemeral user's domain" 2017-11-04 00:12:40 +00:00
Zuul
cfe240dbd8 Merge "Remove unnecessary dependency injection" 2017-11-04 00:12:39 +00:00
Zuul
b9dee73323 Merge "Remove v2 schema and validation tests" 2017-11-04 00:12:37 +00:00
Zuul
601605f181 Merge "Add non-voting rolling upgrade test" 2017-11-04 00:05:10 +00:00
OpenStack Proposal Bot
82a761746e Updated from global requirements
Change-Id: Ie305b778b7ebb80e8901666b433b07b74804fe80
2017-11-03 17:51:18 +00:00
prashkre
789573a0f1 Filter users/groups in ldap with whitespaces
All users and groups are required to have a name. With this fix,
Keystone will ignore users and groups that do have only white
spaces as value for the LDAP attribute which Keystone has been
configured to use for that entity's name.

Change-Id: Id539e1b7e1cea8b05cd9bb753707e1fc98244d29
Closes-Bug: #1727726
2017-11-03 20:52:41 +05:30
Matthew Edmonds
621ea65b96 Deprecate policies API
The policies API should never be used. This marks it deprecated in
the API reference so that operators do not waste time looking at it.
It also logs a deprecation warning if the API is called.

Change-Id: I816997826e931a253777145e2c5f894e39182a8f
2017-11-02 14:59:53 -04:00
Zuul
d6785bba89 Merge "Implement project tags API controller and router" 2017-11-01 10:31:45 +00:00
Gage Hugo
aaccc5bd58 Change url in middleware test to v3
This changes the url for checking normalized URLS with middleware from
v2.0 urls to v3.

Change-Id: Ic78d7842d7b3c36c2eb9cd74a3bd04b837af77c0
2017-11-01 05:09:27 +00:00
Gage Hugo
e2295edab8 Remove ensure_default_domain_exists
With the removal of the V2.0 API in Queens, this functionality
was only used with the v2 resource controller and can now be
removed. Also removed the associated tests.

Change-Id: Id0503bc0610cff5fb635cd021088658bc06aef26
2017-11-01 00:07:51 -05:00
Zuul
f928370953 Merge "Implement project tags logic into manager" 2017-11-01 01:26:41 +00:00
Zuul
0c266a09dd Merge "Implement backend logic for project tags" 2017-10-31 06:08:42 +00:00
Zuul
a86aca8ed0 Merge "Fix endpoint examples in api-ref" 2017-10-30 15:06:21 +00:00
Zuul
cf06c4e40a Merge "Update API reference link in README" 2017-10-30 15:06:20 +00:00
Zuul
931c63c43a Merge "Consolidate V2Controller functionality" 2017-10-30 15:06:18 +00:00
Lance Bragstad
59a3ea300b Ensure listing projects always returns tags
This just adds a test to make sure we always return the tags
attribute when listing projects. This was brought up in a tempest
review:

  https://review.openstack.org/#/c/485344/7

This commit just adds the test coverage.

Change-Id: I4cc8a150d4b0823755804937e50220dfcfb2a750
2017-10-26 16:52:33 +00:00
Gage Hugo
0d3e20a282 Consolidate V2Controller functionality
Since ec2 is the only use-case left for using the V2Controller,
we can consolidate what is left into two v3_to_v2 functions.
These can be removed once ec2 functionality is removed.

Change-Id: I3a4731738efe934238e38567a3c2cf514a3d7f23
2017-10-26 16:03:12 +00:00
Guo Shan
64fdb17921 Remove v2 token value model
Since v2.0 apis had been removed, this functionality was only used
with v2 token and no longer needed.

Change-Id: I450245120adf3184808386ba2c669080f2b23d1b
2017-10-26 16:09:11 +08:00
Zuul
6220b62074 Merge "Partially clarify federation auth plugins" 2017-10-26 02:41:40 +00:00
Jesse Pretorius
f03927f01d Add non-voting rolling upgrade test
This patch implements a replacement of the legacy rolling
upgrade test previously implemented. The job and pipeline
is defined in-repo to ensure that the keystone team has
complete control over the voting status, pipelines it is
in, etc.

The test uses the 'upgrade' tox environment in the
openstack/openstack-ansible-os_keystone repository which
executes a build of two keystone containers using the
the head of the stable branch of keystone, then upgrades
to the proposed review. The upgrade is a complete rolling
upgrade using MariaDB as a database.

Depends-On: If39e4bec8db0be04b13dfc005ee404b73c0b65d3
Depends-On: Ia5ab6aa43f912b3cb4adf98154cd3da12688c2e0
Change-Id: I78bb5e18c1ce0ddf18494f7cd0ef1ab6953be771
2017-10-25 10:34:21 +00:00
Zuul
9de4e4ee19 Merge "Remove "no auth token" debug log" 2017-10-24 23:27:08 +00:00
Zuul
ebbe9194a1 Merge "Handle ldap size limit exeeded exception" 2017-10-24 23:23:00 +00:00
Colleen Murphy
dd473ce7ec Remove "no auth token" debug log
When things go badly and we turn on debug logs, we start seeing this
message about a missing auth token for every auth request. To the
untrained eye, it looks like the culprit when you are debugging auth
problems. In reality, it usually just means the initial POST
/auth/tokens request was sent, which does not include the X-Auth-Token
header. This log adds more confusion than clarify, so this patch removes
itin favor of a code comment.

Change-Id: I4657523a170607d664b73ac1f1ab44d7f1460b33
Closes-bug: #1726736
2017-10-24 21:54:14 +02:00
Colleen Murphy
cbdc84ac7f Partially clarify federation auth plugins
Federation protocols in keystone are very confusing due to the way they
have evolved since the original service provider implementation where
the auth plugin was defined in saml2.py. We renamed saml2.py to
mapped.py[1] and now we can effectively support any federation protocol
as long as there is some kind of Apache module that can understand it
and pass certain IdP and user attributes through to keystone. So we
started recommending not using the 'saml2' auth plugin and instead using
the 'mapped' plugin, eventually removing the the notice when we removed
the plugin[2]. Since the name of the federation protocol resource
created in keystone must match one of the [auth]/methods, we also
changed the documentation to start creating the 'mapped' protocol and
use 'mapped' in the Apache settings[3]. This was really the wrong
course. 'mapped' is not a protocol. Using only 'mapped' prevents us from
defining multiple remote_id_attributes for different protocols.

This patch changes references to the 'mapped' protocol and 'mapped'
plugin back to 'saml2' (we never changed the openid ones). While the
saml2 plugin does not itself exist, it is defined as an entrypoint to
the mapped plugin, so it all works out. This doesn't solve the problem
for if we want to define different remote_id_attributes for different
SAML2.0 implementations, but there is a workaround for that[4]. Using
'saml2' as the protocol name is just much more intuitive than 'mapped'.

[1] https://git.openstack.org/cgit/openstack/keystone-specs/tree/specs/keystone/juno/generic-mapping-federation.rst
[2] https://review.openstack.org/#/c/397456/
[3] https://review.openstack.org/#/c/371210/
[4] https://bugs.launchpad.net/keystone/+bug/1724645/comments/1

Change-Id: I23fc3f1f651c12c4e3c1987dc71008e6e97b4ed8
Related-bug: #1724645
2017-10-24 11:52:33 +02:00
Zuul
8954c27cb1 Merge "Remove identity v2 to v3 test case" 2017-10-24 04:32:06 +00:00
prashkre
f776fc1838 Handle ldap size limit exeeded exception
LDAP servers have sizelimit configuration to limit the number of
user/group objects that can be returned for an LDAP query. This
change catches the size limit exceeded exception when users/groups
returned from ldap search query exceeds the configured limit and
responds with an appropriate error message instead of default
500 error message.

Change-Id: I9949bb7d458b4b037616c701e0e4d362bfa36473
Closes-Bug: #1712415
2017-10-24 09:15:41 +05:30
Zuul
bd1684975b Merge "Correct parameter to follow convention" 2017-10-23 15:06:41 +00:00
Zuul
5622bc3838 Merge "Remove v2 token test models" 2017-10-23 15:04:38 +00:00
Zuul
0b14fa7c39 Merge "Remove/update v2 catalog endpoint tests" 2017-10-23 14:57:58 +00:00
Zuul
9a809c3505 Merge "Remove expired password v2 test" 2017-10-23 14:31:59 +00:00
Zuul
40641009d4 Merge "Refactor test_backend_ldap tests" 2017-10-23 13:58:33 +00:00
Chengwei Yang
ef4f8363c2 policy.v3cloudsample.json: remove redundant blank space
Change-Id: Ieb7fb108889f5ce2bfb2e137d4e5551e8d9bb5d7
Signed-off-by: Chengwei Yang <yangchengwei@qiyi.com>
2017-10-23 18:57:26 +08:00
Zuul
6d0f94891f Merge "Reorganize api-ref: v3 domains" 2017-10-22 21:30:15 +00:00
Gage Hugo
1956f6aa7d Remove expired password v2 test
With the removal of the v2.0 APIs in Queens, we can
remove the test here for authenticating with an expired
password for a v2 user.

Change-Id: Id7e6cc032fc2ffa2f19132de8d1ccb98ce6be93b
2017-10-21 17:23:06 -05:00
Gage Hugo
e619551b05 Remove v2 token test models
With the removal of the v2.0 APIs in Queens, we can remove
the testing for v2 tokens as well as the test fixtures for them.

Change-Id: I2e8388ba783a2f394d781800c6d7cd64243d3a28
2017-10-21 22:21:17 +00:00
Gage Hugo
ef4e7d11f5 Remove/update v2 catalog endpoint tests
With the removal of the v2.0 APIs in Queens, we can remove the
test for v2 get_catalog_endpoint_disabled as well as the test that
skips it for templated backend. This also updates the test fixture
endpoints to specify the v3 url.

Change-Id: Ic9521276cc8ac91c2a9b7553c34bea5690f03fa7
2017-10-21 16:45:12 -05:00
Samuel de Medeiros Queiroz
350f09d5ff Remove unnecessary dependency injection
V2Controller and V3Controller inherit from Application. Both depend on
the "policy_api", but neither need "assignment_api" or
"token_provider_api".

This commit removes "assignment_api" and "token_provider_api" as
required dependencies and move the required annotation of "policy_api"
to V2Controller and V3Controller class declaration.

Change-Id: I5f7d61a0003797ed1bf0c342fef170260d0503fd
2017-10-21 13:18:43 +00:00
Zuul
2f4540fb23 Merge "Emit deprecation warning for federated domain/project APIs" 2017-10-20 20:28:47 +00:00
Guo Shan
aeeac733b4 Remove identity v2 to v3 test case
Since v2.0 identity api had been removed[1], these tests are
no longer needed.
[1]https://review.openstack.org/#/c/499783/

Change-Id: Iba1bd2e16fd5d0e816cf495ed10d5d82d8fe8038
2017-10-20 11:55:37 +08:00
Suramya Shah
0ff3534cd8 Reorganize api-ref: v3 domains
Reorganize as per the documentation session at PTG:
https://etherpad.openstack.org/p/queens-ptg-keystone-doc-cleanup

Change-Id: I7180f8a6ca547041e1d5f33708341fb16cea0954
Signed-off-by: Suramya Shah <shah.suramya@gmail.com>
2017-10-20 08:42:00 +05:30
Gage Hugo
8e84a4c1d7 Correct parameter to follow convention
This change corrects the "project_tag_query" to be
"project_tag_path" in order to follow the convention for
documentation.

Change-Id: I9968162f51b9fbdfc3d02fb54bc918d595aee9bd
2017-10-19 17:27:40 -05:00
Zuul
8e61136eff Merge "Add project tags api-ref documentation and reno" 2017-10-19 22:22:03 +00:00
Gage Hugo
665cca0161 Remove v2 schema and validation tests
With the removal of the v2.0 APIs in Queens, the schema
for specific v2.0 actions can be removed.

Change-Id: Id63dbdab0b13995e6d42d19f6c224f23a2ce8d19
2017-10-19 17:20:47 -05:00