Project

General

Profile

Actions

Bug #10644

closed

User without edit_classes permission removes host group class associations

Added by Anatoly Zhestov almost 9 years ago. Updated almost 7 years ago.

Status:
Feedback
Priority:
High
Assignee:
-
Category:
Users, Roles and Permissions
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

reproduce:
1 Make host group test_classes
2 Assign any puppet class to group(hosts, for example)
3 Add some parameter in group. test_param=999
4 Create user role testuser
5 Add to role filters as image:

6 Assign role testuser to some LDAP user(local not checked)
7 Login as LDAP user
8 change test_param=sdafsa, add parameter test_param2=000
9 Press Submit
10 Check Audits - some like

User IP created Hostgroup : test_param2 / test_classes
User IP updated Hostgroup : test_param / test_classes
User IP removed Hostgroup Class: 681 / test_classes
Removed test_classes from test_classes

11 Check host group classes - is empty now.
No more classes assigned to this group.


Files

foreman.png View foreman.png 41.5 KB Anatoly Zhestov, 05/28/2015 12:24 PM
Actions #1

Updated by Dominic Cleal almost 9 years ago

  • Subject changed from users can autoerase all puppet classes assigned to group without any desire to User without edit_classes permission removes host group class associations
  • Category set to Users, Roles and Permissions

Untested, but sounds like it's when the user's missing the edit_classes permission.

Actions #2

Updated by Anatoly Zhestov almost 9 years ago

Dominic Cleal wrote:

Untested, but sounds like it's when the user's missing the edit_classes permission.

Exactly. But i need of user who's not have this permission.

Actions #3

Updated by Anatoly Zhestov almost 9 years ago

1.8.2 - bug still exist

Actions #4

Updated by Anatoly Zhestov almost 9 years ago

UPDATE!
Bug caused by filter:
Audited/adapters/active record/audit view_audit_logs hostgroup = test_classes

With checked "unlimited" in filter view_audit_logs () - no any class deleted!

Actions #5

Updated by Anatoly Zhestov almost 9 years ago

ups. error.
Right is:
Host class edit_classes Toggle_check none

Actions #6

Updated by Anonymous almost 7 years ago

  • Status changed from New to Feedback

what's the status here?

Actions

Also available in: Atom PDF