VMware Cloud Community
AMINEat
Enthusiast
Enthusiast

Roles (read & write) in VIO

Hello,

I don't find how to create role who can just view instance for exemple !!

someone can help and show how to create role in VIO ????

Thanks

Reply
0 Kudos
4 Replies
zlao
Enthusiast
Enthusiast

Hi,

You may create any role with keystone

but you may need to customize access policy (policy.json file) for nova

if you want to different permissions to take effect on these roles.

Regards,

Zhongcheng

Reply
0 Kudos
AMINEat
Enthusiast
Enthusiast

Hi,

Thank you for your answer

i need syntaxe for customize access in policy.json nova if you help me !!! i try everything but nothing work

Thank's

Reply
0 Kudos
zlao
Enthusiast
Enthusiast

After creating a new role (openstack role create...),

You may create a new rule in the policy.json

"XXX_role_required": "role:XXX",

then

for each action that you want to define ACL

specify the rule to apply

"ACTION_NAME": "rule:XXX_role_required",

You may refer to the default policy.json for ACTION_NAME.

You will also need to restart the service after the changes.

Regards,

Zhongcheng

Reply
0 Kudos
AMINEat
Enthusiast
Enthusiast

Hi,

I did it in policy.json in nova but i have the same problem, nothing work !

Reply
0 Kudos