Project

General

Profile

Actions

Bug #38448

closed

subscription-manager environments --set raises Forbidden error until the user is Admin

Added by Lucy Fu 3 days ago. Updated about 15 hours ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Description of problem:
Trying to change Host's LCE/CV environment, `subscription-manager environments --set` command is used. The command requires authorization (until SAT-29869 is implemented).

However, the authorized user must be Admin. No non-admin user can authorize the request.

How reproducible:
100%

Is this issue a regression from an earlier version:
probably not

Steps to Reproduce:

1. Create a Satellite user and assign to it all roles. Dont set it as an Administrator

2. Have a Content Host registered to the Satellite.

3. Change the Host's environment from command line (even to the current env):

```
subscription-manager environments --set LCE/my_cv --username new_user --password its_password
```

4. Try the same but for admin user.

Actual behavior:
3. fails, until one sets the user as Admin.

More details in Jira card.

Actions #1

Updated by The Foreman Bot 3 days ago

  • Status changed from New to Ready For Testing
  • Assignee set to Lucy Fu
  • Pull request https://github.com/Katello/katello/pull/11401 added
Actions #2

Updated by Partha Aji 3 days ago

  • Target version changed from Katello Next to Katello 4.17.0
  • Triaged changed from No to Yes
Actions #3

Updated by The Foreman Bot 2 days ago

  • Fixed in Releases Katello 4.18.0 added
Actions #4

Updated by Lucy Fu 2 days ago

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

Updated by Samir Jha about 15 hours ago

  • Category set to Hosts
Actions

Also available in: Atom PDF