Project

General

Profile

Actions

Bug #35994

closed

Permission denied on Ansible part of host page when usergroup of user have administrator role

Added by Nofar Alfassi about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2158508

Description of problem:
With user which is non-admin but it is in usergroup which should give him administrator role is possible to access lot of pages, but on

WebUI -> Hosts -> select host -> Ansible

is shown below

Permission denied
You are not authorized to view the page. Request the following permissions from administrator: view_ansible_roles.

Version-Release number of selected component (if applicable):
satellite-6.12.0-4.el8sat.noarch

How reproducible:
Always

Steps to Reproduce:
1. Create user with non-admin (in my case ldap based)
2. Create usergroup with administrator role (in my case ldap based)
3. As user from (1) log in and try to access
WebUI -> Hosts -> select host -> Ansible

Actual results:
Permission denied
You are not authorized to view the page. Request the following permissions from administrator: view_ansible_roles.

Expected results:
See Ansible page as user should be administrator due to usergroup

Additional info:
Reproducer ready

Actions #1

Updated by Nofar Alfassi about 1 year ago

  • Subject changed from Permission denied on Ansible part of host page when usergroup of user have administrator role to Permission denied on Ansible part of host page when usergroup of user have administrator role
  • Assignee set to Nofar Alfassi
  • Target version changed from foreman_ansible-10.0.0 to foreman_ansible-11.0.0
Actions #2

Updated by The Foreman Bot about 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_ansible/pull/587 added
Actions #3

Updated by The Foreman Bot about 1 year ago

  • Fixed in Releases foreman_ansible-11.0.0 added
Actions #4

Updated by Nofar Alfassi about 1 year ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by The Foreman Bot about 1 year ago

  • Pull request https://github.com/theforeman/foreman_ansible/pull/593 added
Actions #6

Updated by The Foreman Bot about 1 year ago

  • Fixed in Releases foreman_ansible-10.0.0 added
Actions #7

Updated by Nofar Alfassi about 1 year ago

  • Fixed in Releases foreman_ansible-10.4.0, foreman_ansible-11.1.0 added
  • Fixed in Releases deleted (foreman_ansible-10.0.0, foreman_ansible-11.0.0)
Actions

Also available in: Atom PDF