Skip to content

Commit

Permalink
Add auditing for system plugin changes (#14147)
Browse files Browse the repository at this point in the history
Generate audit trail for changes made via system.general and
system.advanced.
  • Loading branch information
anodos325 authored Aug 6, 2024
1 parent 988b829 commit 92896c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ async def __validate_fields(self, schema, data):
('rm', {'name': 'isolated_gpu_pci_ids'}),
('add', Password('sed_passwd')),
('attr', {'update': True}),
)
),
audit='System advanced update'
)
async def do_update(self, data):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ async def validate_general_settings(self, data, schema):
('add', Int('ui_restart_delay', null=True)),
('attr', {'update': True}),
),
audit='System general update'
)
async def do_update(self, data):
"""
Expand Down

0 comments on commit 92896c3

Please sign in to comment.