Repository navigation
WIP: Adjust Domain Manager policies for Horizon and Terraform compatibility - #384
Conversation
Aligns the `identity:list_user_projects` policy rule with Keystone's defaults [1] by incorporating the `_or_owner` part of it. This enables Domain Managers to successfully log in using Horizon. [1] https://files.openstack.org/docs/developer/keystone/sample_files/sample_policy.html Signed-off-by: Markus Hentsch <[email protected]>
|
This modification is also required to make the |
|
Project details are also not working. Probably You can reproduce this by visiting a listed user in |
FTR, this concerns non-domain-manager users, for which it is actually necessary. It does not make a difference for Domain Managers.
I can reproduce this with all policy overrides disabled (i.e. deleting |
Further aligns policy rules where admin_or_owner is used in Keystone's defaults for better Horizon compatibility. Signed-off-by: Markus Hentsch <[email protected]>
… defaults Aims to achieve full compatibility with legacy setups (using "rule:admin_required") as well as the more recent system scope and new RBAC defaults. Separates the upstream part of the definitions into a dedicated section for better maintainability. Signed-off-by: Markus Hentsch <[email protected]>
Lifts the restriction to domain-manager-managed roles for "identity:check_grant" and "identity:list_grants" (read-only operations) to enable discoverability of role assignments even for roles which cannot be assigned or revoked by Domain Managers directly but should be visible to them. Signed-off-by: Markus Hentsch <[email protected]>
a4d73db to
9449c8c
Compare
|
@berendt Could you test these changes again? I will take over from @markus-hentsch and work on any further bugs you might find. |
|
@josephineSei I cannot reproduce it right now. I have added the state from this PR in our testbed and it runs both the playbook for the test (https://github.com/osism/testbed/blob/main/environments/openstack/playbook-test-identity.yml) and Refstack (2022.11) completely. |
|
@berendt does this mean, we can approve and merge this PR? |
|
Fro my POV it can be merged. |
josephineSei
left a comment
There was a problem hiding this comment.
I looked through the changes and it seems we got a whole policy file within this standard. I only have the question, whether we want this in the standard or maybe a separated extra file?
The last option has the positive side effect, that, when something in the upstream policy changes we do not have to adjust the standard. But maybe that is exactly what we want.
|
When we split out implementation notes out of standards, we might move the policy file there. |
Set correct reference Signed-off-by: josephineSei <[email protected]>
Overhauls the Domain Manager policy configuration to improve compatibility with Horizon and Terraform.
Note the following section from the corresponding issue:
Footnotes
https://github.com/SovereignCloudStack/minutes/blob/main/iaas/20231122.md?plain=1#L107-L110 ↩