Skip to content

Commit dca05da

Browse files
Update test instructions to re-use the manager role if possible
Signed-off-by: Markus Hentsch <[email protected]>
1 parent df70355 commit dca05da

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Tests/iam/iaas-roles/README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@ The test suite strictly requires an OpenStack user that possesses the following
99
1. the "`member`" role in the project referenced as authentication target
1010
2. access permissions to the "`list_roles`" in the Identity API
1111

12-
The second requirement (access to "`list_roles`") is usually not granted to users with the "`member`" role in default configurations and only works for user accounts also possessing the "`admin`" role.
13-
So the test would require an user account possessing both the "`member`" and "`admin`" role.
12+
The second requirement (access to "`list_roles`") is usually not granted to users with the "`member`" role in default configurations and only works for user accounts also possessing the "`manager`" role in the domain.
13+
So the test would require an user account possessing both the "`member`" role in a project as well as the "`manager`" role in the domain.
1414

15-
One alternative way to address this without granting the "`admin`" role to the test account is to create a dedicated role in the cloud environment which only has access to the role list endpoint and assign it to the user account intended for testing (in addition to the "`member`" role).
15+
Note that the "`manager`" role only works this way starting with OpenStack Keystone 2024.2.
16+
If an older Keystone release is used, see the alternative instructions below.
17+
18+
#### Alternative using a dedicated role
19+
20+
One alternative way to address this is for older Keystone releases is to create a dedicated role in the cloud environment which only has access to the role list endpoint and assign it to the user account intended for testing (in addition to the "`member`" role).
1621

1722
To achieve this, first the role has to be created and assigned:
1823

@@ -22,7 +27,8 @@ openstack role add --user ... --project ... member
2227
openstack role add --user ... --project ... scs-conformance-tester
2328
```
2429

25-
Finally, the policy definition for the role list endpoint has to be extended to allow this role:
30+
Finally, the Keystone API policy definition for the role list endpoint has to be extended to allow this role.
31+
The following is an example entry for `/etc/keystone/policy.yaml` of the Keystone service:
2632

2733
```yaml
2834
"identity:list_roles": "... or role:scs-conformance-tester"

0 commit comments

Comments
 (0)