summaryrefslogtreecommitdiff
path: root/nova/policies/console_output.py
diff options
context:
space:
mode:
authorGhanshyam Mann <gmann@ghanshyammann.com>2022-07-09 19:30:38 -0500
committerGhanshyam <gmann@ghanshyammann.com>2022-08-24 16:33:27 +0000
commit909b0b02470dc795fd3d2775ee33864b055dd678 (patch)
tree2e1fd40589578eb25d7ebc0a8e5f92303563a84f /nova/policies/console_output.py
parent066e1e69d1394839a9f0bde4ca8c3a0db2d52396 (diff)
downloadnova-909b0b02470dc795fd3d2775ee33864b055dd678.tar.gz
Keep legacy admin behaviour in new RBAC
While discussing the new RBAC (scope_type and project admin vs system admin things) with operators in berlin ops meetup and via emails, and policy popup meetings, we got the feedback that we need to keep the legacy admin behaviour same as it is otherwise it is going to be a big breaking change for many of the operators. Same feedback for scope_type. - https://etherpad.opendev.org/p/BER-2022-OPS-SRBAC - https://etherpad.opendev.org/p/rbac-operator-feedback By considering the feedback, we decided to postpone the system scope implementation, release project reader role and not to change the legacy admin behaviour. To keep the legacy admin behaviour unchanged, we need to modify our policy new default so that legacy admin continue to have the access to the APIs they are able to access in old RBAC. Basically the below changes: - PROJECT_ADMIN -> ADMIN (legacy admin who can do things in all projects) - PROJECT_MEMBER -> PROJECT_MEMBER_OR_ADMIN (give access to legacy admin too) - PROJECT_READER -> PROJECT_READER_OR_ADMIN (give access to legacy admin too) Complete direction on RBAC is updated in community wide goal - https://review.opendev.org/c/openstack/governance/+/847418/13 Change-Id: I37e706f75a36fb27da1bdd5fba671cb1bcadc745
Diffstat (limited to 'nova/policies/console_output.py')
-rw-r--r--nova/policies/console_output.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/policies/console_output.py b/nova/policies/console_output.py
index 4a5a21ef55..625971b5d7 100644
--- a/nova/policies/console_output.py
+++ b/nova/policies/console_output.py
@@ -24,7 +24,7 @@ BASE_POLICY_NAME = 'os_compute_api:os-console-output'
console_output_policies = [
policy.DocumentedRuleDefault(
name=BASE_POLICY_NAME,
- check_str=base.PROJECT_MEMBER,
+ check_str=base.PROJECT_MEMBER_OR_ADMIN,
description='Show console output for a server',
operations=[
{