Project

General

Profile

Bug #32425

[BUG] Non-Admin users cannot generate the command for registration while having "Register hosts" role associated in Satellite 6.9

Added by Leos Stejskal about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

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

Description of problem:

Non-Admin users cannot generate the curl command for automated registration while having "Register hosts" role associated with them.

Version-Release number of selected component (if applicable):
satellite-6.9.1-1.el7sat.noarch

How reproducible:
Always

Steps to Reproduce:
1. Create a user called testuser in the Satellite server and assign the "Register hosts" role to the same.

2. Login to Satellite UI using that testuser.

3. Go to Hosts --> All Hosts --> Register Host

4. Select All Parameters as applicable related to registration

5. Click on "Generate Command"

Actual results:

echo "ERROR: not_found";
exit 1

Expected results:

It should be able to generate the curl command with token as expected [ or it can for an admin user ]

Additional info:

The prerequisites section of the doc https://access.redhat.com/documentation/en-us/red_hat_satellite/6.9/html-single/managing_hosts/index#registering-a-host-to-project-using-the-global-registration-template_managing-hosts mentions following:

"The Satellite user that generates the curl command must have the create_hosts permission."

But it also needs to have "view_smart_proxies" permission.

If I clone the "Register hosts" role, add the "view_smart_proxies" permission for that role and then assign the cloned role to my non-admin user i.e. testuser, I will be able to generate the curl command and register the host as expected.

Associated revisions

Revision 35a0d5f7 (diff)
Added by Stejskal Leos about 1 year ago

Fixes #32425 - Add 'view_smart_proxies' permission to 'Register hosts' role

History

#1 Updated by The Foreman Bot about 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/9316 added

#2 Updated by James Jeffers about 1 year ago

  • Triaged changed from No to Yes
  • Target version set to Katello 4.1.0

#3 Updated by The Foreman Bot about 1 year ago

  • Fixed in Releases Katello 4.2.0 added

#4 Updated by Anonymous about 1 year ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF