Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1830247 - Ansible variables not visible to user role containing the filter view_ansible_variables
Summary: Ansible variables not visible to user role containing the filter view_ansible...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Ansible - Configuration Management
Version: 6.7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 6.10.0
Assignee: Marek Hulan
QA Contact: Danny Synk
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-01 09:51 UTC by mithun kalyat
Modified: 2023-09-07 23:02 UTC (History)
5 users (show)

Fixed In Version: tfm-rubygem-foreman_ansible-6.3.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:09:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 30090 0 Normal New Ansible variables not visible to user role containing the filter view_ansible_variables 2021-02-12 04:14:02 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:09:31 UTC

Description mithun kalyat 2020-05-01 09:51:30 UTC
Description of problem:

Ansible variables not visible to user containing the filter "Ansible variable": view_ansible_variables

Version-Release number of selected component (if applicable):

Red Hat Satellite 6

How to reproduce :

The variables present in Satellite.

Users view if no filter is set (permission denied).

The filter which will be applied: view_ansible_variables.

Users view if permission is granted: empty list.


Steps to Reproduce:

1. Create user and role from Satellite webui :

  Administer --> Users

  Administer --> Roles 

Assign the role to the user.

2. Create filter for the role :

  Resource Type ---> Ansible variable ---> Choose view_ansible_variables ---> Save filter and role

3. Login as new user, access Configure ---> Variables list is empty. As admin user, able to see the list.

Actual results:

Unable to view the roles with given filter.

Expected results:

Should be able to view the roles with given filter.

Additional info:

1) I tried the same for roles with view_ansible_roles filter which works fine.

2) Even tried the following filters for variable, still list it empty for the new user.

 create_ansible_variables, edit_ansible_variables, import_ansible_variables

Comment 3 Dominik Matoulek 2020-06-10 11:26:07 UTC
Created redmine issue https://projects.theforeman.org/issues/30090 from this bug

Comment 4 Bryan Kearney 2021-03-26 12:03:39 UTC
Upstream bug assigned to mhulan

Comment 5 Bryan Kearney 2021-03-26 12:03:42 UTC
Upstream bug assigned to mhulan

Comment 6 Bryan Kearney 2021-04-28 04:03:17 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30090 has been resolved.

Comment 7 Danny Synk 2021-06-21 16:26:32 UTC
Steps to test:

1. As the admin user, import the redhatofficial.rhel7_stig role, which includes 246 variables.
2. Create a role with only the "view_ansible_variables" permission filter.
3. Create a user and add only the role created in step 2.
4. Log in to the Satellite webUI as the user created in step 3.
5. Navigate in the webUI to Configure > Variables page.

Expected Results:

246 Ansible variables are visible to the user.

Actual Results:

246 Ansible variables are visible to the user.

Verified on Satellite 6.10, snap 5 (tfm-rubygem-foreman_ansible-6.3.0-1.el7sat.noarch).

Comment 10 errata-xmlrpc 2021-11-16 14:09:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Satellite 6.10 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:4702


Note You need to log in before you can comment on or make changes to this bug.