Project

General

Profile

Actions

Bug #9100

closed

Katello permissions not working on user groups

Added by Daniel Lobato Garcia about 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Web UI
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Currently, permissions in Katello (view_lifecycle_environments,etc...) are not being properly used when inherited from a user group. Katello permissions work well when assigned directly to an user.

Steps I followed (on nightly):
1) As admin, create a user without any roles, or taxonomies.
2) Log in as said user. It doesn't show anything that requires a permission as expected.
3) As admin create a role, with three filters to view lifecycle environments, activation keys, and compute resources
4) As admin, create an user group, and add the previously created user and role to it.
5) Refresh the page with the non-admin user. You should see the Content menu with Lifecycle Environments, Activation Keys and Compute Resources, as expected.
6) Click on any of Lifecycle Environments and Activation Keys. You will get a 403 and a Permission denied error.
7) Click on Infrastructure > Compute Resources. It will show the list of compute resources

Expected results:
'Katello' roles inherited from user groups should work on users.

Actual results:
"Permission Denied" message seen when providing roles to user_groups.

Actions #1

Updated by Eric Helms about 9 years ago

  • Target version set to 66
  • translation missing: en.field_release set to 23
  • Triaged changed from No to Yes
Actions #2

Updated by Eric Helms about 9 years ago

  • Status changed from New to Need more information

Is this a Katello only issue or an all plugins issue? Since we are using the Foreman permission system entirely, this would at my first glance, appear to be more of an issue with how the permissions are being handled by Foreman and potentially related to plugins themselves?

Actions #3

Updated by Daniel Lobato Garcia about 9 years ago

Seems like Katello only, I tried granting PuppetDB dashboard and Docker management roles through an user group and these permissions are transferred properly.

Actions #4

Updated by Eric Helms about 9 years ago

  • Category set to Web UI
  • Assignee set to Eric Helms
Actions #5

Updated by Eric Helms about 9 years ago

  • Status changed from Need more information to Assigned
  • translation missing: en.field_release changed from 23 to 33
Actions #6

Updated by The Foreman Bot about 9 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/bastion/pull/41 added
  • Pull request deleted ()
Actions #7

Updated by Eric Helms about 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Applied in changeset bastion:commit:bastion|a78e4a115d7b312be36cb9371db990134b3ba47d.

Actions

Also available in: Atom PDF