Changes in openstack_dashboard/conf/*policy.json won't take effect for Panel visibility until User re-logins
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
In Progress
|
Low
|
Unassigned |
Bug Description
The Panel class is a subclass of HorizonComponent class, which should check `self.policy_rules` while determining whether the entity is visible or not. Unfortunately the actual values `self.policy_rules` relies upon are being loaded during first request to Horizon, also the final result of checking whether Panel is visible or not will be cached in user session.
Speaking of concrete example, for Identity -> Users panel https:/
While reloading Horizon is fine - because changing kind of server settings is involved, the need to sign-out and the sign-in for the visibility changes to take effect is not.
Changed in horizon: | |
assignee: | nobody → Timur Sufiev (tsufiev-x) |
summary: |
- Attribute `policy_rules` of a Panel instance is not considered while - determining the Panel visibility + Changes in openstack_dashboard/conf/*policy.json won't take effect for + Panel visibility until User re-logins |
description: | updated |
description: | updated |
Changed in horizon: | |
importance: | Undecided → Low |
Changed in horizon: | |
assignee: | Timur Sufiev (tsufiev-x) → nobody |
@Timur: I tested it and happened that my panel has been disabled. But I had to log out and restart Horizon so it can update the policy that was already in memory. There is a double problem here:
1) Horizon isn't considering policy changes until restart
2) Permissions are persistent while the session is opened