Project

General

Profile

Actions

Bug #25579

closed

with "Ansible Roles Manager" and "View hosts" roles, user still needs "Remote Excution User" to run roles on host

Added by Ondřej Pražák over 6 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-

Description

Description of problem:
User with "Ansible Roles Manager" and "View hosts" roles, still needs "Remote Excution User" to run roles on host.

How reproducible:
always

Steps to Reproduce:
1. Create user with "Ansible Roles Manager" and "View hosts" roles
2. Have host with 2 Ansible roles attached
3. Login as that new user
4. Hosts -> All hosts -> <host>

Actual results:
There is no "Run Ansible roles" button, although I have "play_roles_on_host" permission

Expected results:
I would expect role and permission names matches to what they allow you to do


Related issues 1 (0 open1 closed)

Related to Foreman Remote Execution - Bug #33143: Host REX buttons visible for unauthorized userClosedOndřej EzrActions
Actions #1

Updated by Ondřej Ezr about 4 years ago

  • Subject changed from with "Ansible Roles Manager" and "View hosts" roles, user still needs "Remote Excution User" to run roles on host to with "Ansible Roles Manager" and "View hosts" roles, user still needs "Remote Excution User" to run roles on host
  • Status changed from New to Resolved

This has already been fixed.

Actions #2

Updated by Ondřej Ezr almost 4 years ago

We are not checking the permissions when displaying button, so to resolve this these two should be fixed together:

- Users who do not have permissions to run ansible roles should not see the button
- play_ansible_roles should be enough by itself and not need to have run_rex as well

Actions #3

Updated by Ondřej Ezr almost 4 years ago

  • Status changed from Resolved to New
Actions #4

Updated by Ondřej Ezr almost 4 years ago

  • Related to Bug #33143: Host REX buttons visible for unauthorized user added
Actions #5

Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ondřej Ezr
  • Pull request https://github.com/theforeman/foreman_ansible/pull/434 added
Actions #6

Updated by Ondřej Ezr almost 4 years ago

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

Updated by The Foreman Bot almost 4 years ago

  • Pull request https://github.com/theforeman/foreman_ansible/pull/440 added
Actions #8

Updated by The Foreman Bot almost 4 years ago

  • Pull request https://github.com/theforeman/foreman_ansible/pull/441 added
Actions #9

Updated by Ondřej Ezr almost 4 years ago

  • Fixed in Releases foreman_ansible-7.0.0 added
Actions

Also available in: Atom PDF