Project

General

Profile

Bug #20470

Filter modification on roles is not audited

Added by Tomer Brisker about 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Audit Log
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

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

Description of problem:
If we create, delete or rename a role, it is creating an audit entry, but when we add or remove a filter, it does not appear in audits.

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

How reproducible:
100%

Steps to Reproduce:
1. Create a new role: Administer > Roles
2. Click on "New role"
3. For this example, I am creating a role called: bug_test_role
4. Click Submit
5. Under Monitor > Audits
We can see a new entry
Ex: Admin (192.168.1.1) created Role: bug_test_role
6. Go back to Administer > Roles
7. Click on bug_test_role to edit the role
8. Add 1 or more filter to that role
9, Under Monitor > Audits
No new entry is created for the Filter added to the role

Actual results:
No audit entry is created.

Expected results:
Have a "update" entry for the role indicating what filter were added or removed

Additional info:
More details on the audit logs from the api
Check the audits logs from the API
  1. curl -X GET -s -k -u admin:changeme https://satellite.domain.com/api/v2/audits | jq .results[] | jq 'select(.auditable_name=="bug_test_role")'

Associated revisions

Revision ce76bd81 (diff)
Added by Tomer Brisker about 3 years ago

Fixes #20470 - Audit role filter changes

History

#1 Updated by The Foreman Bot about 3 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Tomer Brisker
  • Pull request https://github.com/theforeman/foreman/pull/4708 added

#2 Updated by Anonymous about 3 years ago

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

#3 Updated by Marek Hulán about 3 years ago

  • Legacy Backlogs Release (now unused) set to 296

Also available in: Atom PDF