AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
14.11k
stars
3.43k
forks
source link
Frontend UI Fails to display role permissions of a Workflow template when assigning all roles to an individual user. #15541
[X] I understand that AWX is open source software provided for free and that I might not receive a timely response.
[X] I am NOT reporting a (potential) security vulnerability. (These should be emailed to security@ansible.com instead.)
Bug Summary
After setting additional roles/permissions on a workflow template the page resets to display "No Role Found, please add roles to populate this list" however there are roles assigned.
The roles are still in place in the back end as the users can still access the workflow as normal.
AWX version
AWX 24.6.1
Select the relevant components
[X] UI
[ ] UI (tech preview)
[ ] API
[ ] Docs
[ ] Collection
[ ] CLI
[ ] Other
Installation method
kubernetes
Modifications
no
Ansible version
AWX 24.6.1
Operating system
Ubuntu 22.04 LTS
Web browser
Chrome
Steps to reproduce
Log In as global administrator
Locate an existing workflow template with roles assigned and click the Access tab
Click the Add button
Select Users
Select a normal user
Tick Admin, Execute, Read, Approve
Click Save
Expected results
List of roles under access tab correctly lists all roles applied to the workflow tempalte
Was mentioned by another user in July with less detail but closed with no explanation. #15372
I am able to reproduce this now. Would be nice if others can confirm.
Deployment method awx-operator 2.19.1
Please confirm the following
security@ansible.com
instead.)Bug Summary
After setting additional roles/permissions on a workflow template the page resets to display "No Role Found, please add roles to populate this list" however there are roles assigned. The roles are still in place in the back end as the users can still access the workflow as normal.
AWX version
AWX 24.6.1
Select the relevant components
Installation method
kubernetes
Modifications
no
Ansible version
AWX 24.6.1
Operating system
Ubuntu 22.04 LTS
Web browser
Chrome
Steps to reproduce
Log In as global administrator Locate an existing workflow template with roles assigned and click the
Access
tab Click theAdd
button SelectUsers
Select a normal user TickAdmin
,Execute
,Read
,Approve
Click SaveExpected results
List of roles under access tab correctly lists all roles applied to the workflow tempalte
Actual results
List turns blank
Browser console shows 500 errors acessing https://awx.hostname.com/api/v2/workflow_job_templates/232/access_list/?order_by=first_name&page=1&page_size=5
Additional information
Was mentioned by another user in July with less detail but closed with no explanation. #15372 I am able to reproduce this now. Would be nice if others can confirm. Deployment method awx-operator 2.19.1