fix: Add account_deleted_accounts to RiskSummary

This commit is contained in:
wangruidong
2025-03-19 15:23:38 +08:00
committed by w940853815
parent 2a31a7d444
commit e0d6b843ee
2 changed files with 40 additions and 31 deletions

View File

@@ -43,6 +43,7 @@ class PamDashboardApi(APIView):
'total_sudoers_changed_accounts': ('sudoers_changed_count', Q(risk='sudoers_changed')),
'total_authorized_keys_changed_accounts': (
'authorized_keys_changed_count', Q(risk='authorized_keys_changed')),
'total_account_deleted_accounts': ('account_deleted_count', Q(risk='account_deleted')),
'total_password_expired_accounts': ('password_expired_count', Q(risk='password_expired')),
'total_long_time_password_accounts': ('long_time_password_count', Q(risk='long_time_password')),
'total_weak_password_accounts': ('weak_password_count', Q(risk='weak_password')),