Friday, 2023-01-20

opendevreviewMerged openstack/horizon stable/yoga: Fix flavor id auto generation  https://review.opendev.org/c/openstack/horizon/+/86690901:42
*** ozzzo1 is now known as ozzzo08:12
zigoHi there! We modified the Designate policy to only allow people with "dnsmember" role to be able to use Designate's API.11:58
zigoNow, we would like to only enable the Designate panel if the user has the "dnsmember" role.11:58
zigoHow do I check a user's role in Horizon then? Would it be possible to add such code in the local/enable thingy of Designate dashbaord?11:58
zigovishalmanchanda: amotoki: ^11:58
rdopierazigo: the enable scripts run when horizon is started, they have no idea about the user12:06
zigoOh ... :/12:07
rdopierayou can have code that checks the user in the panel itself: https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/identity/domains/panel.py#L2612:08
vishalmanchandazigo: For checking the role for a member in horizon Go to Identity->Users->Select User(click on detailView for that user)->open Role assignments tab12:09
rdopieravishalmanchanda: I think they are asking about checking it in code12:10
zigoYeah...12:10
zigoWe want to hide all DNS operation if the user has no "dnsmember" role.12:10
vishalmanchandaok12:11
rdopierazigo: you would probably use this? https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/keystone.py#L66412:12
rdopieraor one of the functions further down in that file12:13
zigoThanks a lot! We'll investigate it.12:13
rdopieraI see we use keystone.is_domain_admin in some places, might be worthwhile looking at how that is implemented12:14
rdopierazigo: the dashboard object also has a similar permission check function12:20
rdopierahttps://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/identity/dashboard.py#L2612:21
opendevreviewAndrey Kurilin proposed openstack/horizon master: DNM: Restore old behaviour of nova.createServer method  https://review.opendev.org/c/openstack/horizon/+/87128514:45
zigoFinally, we implemented a policy in /etc/openstack-dashboard/policy/designate_policy.json, loaded it with POLICY_FILES in local_settings.py, and then added the policy in the panels.py of designate-dashboard.14:51
zigoIs this the way? :)14:51
zigo(we're in Victoria if that maters...)14:51
opendevreviewAndrey Kurilin proposed openstack/horizon master: Fix applying OPENSTACK_SERVER_DEFAULT_USER_DATA value  https://review.opendev.org/c/openstack/horizon/+/86808314:54
opendevreviewJan Jasek proposed openstack/horizon stable/zed: Fix delete image tests.  https://review.opendev.org/c/openstack/horizon/+/87129816:03

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!