Bug #34332
closedusability issues for user without execute_jobs_on_infrastructure_hosts permissions
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2046281
Description of problem:
User without execute_jobs_on_infrastructure_hosts permission is not able to run rex jobs against Satellite and Capsule, but the UI does not sufficiently reflect this
Version-Release number of selected component (if applicable):
How reproducible:
always
Steps to Reproduce:
Case1:
1. have a user with job invocations perms but without execute_jobs_on_infrastructure_hosts permission (e.g. Rex Manager role)
2. On the hosts page, select just the satellite or capsule host.
3. Select Select Action > Schedule remote job
4. In the Rex job dialog, the search query is prefilled with "name ^ ()"
This allows user to trigger the job as the form validation doesn't trigger on a non-empty search field
Case2:
1. having the same user, navigate to the sat or capsule host details
2. "Schedule remote job" button is active and triggers the Rex form with "name ^ ()" prefilled
Actual results:
User can run a job against no hosts
Expected results:
In case 1 the search query field should be empty, in case 2 the "Schedule remote job" button should be disabled
Additional info:
Updated by Adam Ruzicka almost 3 years ago
- Related to Bug #34333: Ansible should take special infra role permission into account when displaying buttons added
Updated by Adam Ruzicka almost 3 years ago
- Related to Bug #34331: Leapp does not check permissions when generating host action buttons added
Updated by The Foreman Bot almost 3 years ago
- Status changed from New to Ready For Testing
- Assignee set to Adam Ruzicka
- Pull request https://github.com/theforeman/foreman_remote_execution/pull/688 added
Updated by Adam Ruzicka almost 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_plugin|1e286ddcafb6bc39b98a7069465db2fcf0802ea3.
Updated by Adam Ruzicka almost 3 years ago
- Fixed in Releases foreman_remote_execution-5.0.2 added
Updated by Adam Ruzicka almost 3 years ago
- Fixed in Releases foreman_remote_execution-6.0.0 added
- Fixed in Releases deleted (
)