Skip to content

Commit 4e98623

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Remove policy for self-service password changes"
2 parents b43b402 + 77bf1ad commit 4e98623

File tree

4 files changed

+20
-9
lines changed

4 files changed

+20
-9
lines changed

doc/source/getting-started/policy_mapping.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ identity:list_users GET /v3/users
4343
identity:create_user POST /v3/users
4444
identity:update_user PATCH /v3/users/{user_id}
4545
identity:delete_user DELETE /v3/users/{user_id}
46-
identity:change_password POST /v3/users/{user_id}/password
4746

4847
identity:get_group GET /v3/groups/{group_id}
4948
identity:list_groups GET /v3/groups

etc/policy.v3cloudsample.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@
128128
"identity:update_policy": "rule:cloud_admin",
129129
"identity:delete_policy": "rule:cloud_admin",
130130

131-
"identity:change_password": "rule:owner",
132131
"identity:check_token": "rule:admin_or_owner",
133132
"identity:validate_token": "rule:service_admin_or_owner",
134133
"identity:validate_token_head": "rule:service_or_admin",

keystone/common/policies/user.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,7 @@
6262
check_str=base.RULE_ADMIN_REQUIRED,
6363
description='Delete a user.',
6464
operations=[{'path': '/v3/users/{user_id}',
65-
'method': 'DELETE'}]),
66-
policy.DocumentedRuleDefault(
67-
name=base.IDENTITY % 'change_password',
68-
check_str=base.RULE_ADMIN_OR_OWNER,
69-
description='Self-service password change.',
70-
operations=[{'path': '/v3/users/{user_id}/password',
71-
'method': 'POST'}])
65+
'method': 'DELETE'}])
7266
]
7367

7468

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
upgrade:
3+
- |
4+
[`bug 1705485 <https://bugs.launchpad.net/keystone/+bug/1705485>`_]
5+
The `change_password` protection policy can be removed from file-based
6+
policies. This policy is no longer used to protect the self-service
7+
password change API since the logic was moved into code. Note that the
8+
administrative password reset functionality is still protected via policy
9+
on the `update_user` API.
10+
fixes:
11+
- |
12+
[`bug 1705485 <https://bugs.launchpad.net/keystone/+bug/1705485>`_]
13+
A `previous change <https://review.openstack.org/#/c/404022/>`_ removed
14+
policy from the self-service password API. Since a user is required to
15+
authenticate to change their password, protection via policy didn't
16+
necessarily make sense. This change removes the default policy from code,
17+
since it is no longer required or used by the service. Note that
18+
administrative password resets for users are still protected via policy
19+
through a separate endpoint.

0 commit comments

Comments
 (0)