You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Madhan Neethiraj (Jira)" <ji...@apache.org> on 2024/06/21 15:19:00 UTC
[jira] [Updated] (RANGER-4769) Admin audit generation: avoid code duplication by moving the implementation to base classes
[ https://issues.apache.org/jira/browse/RANGER-4769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Madhan Neethiraj updated RANGER-4769:
-------------------------------------
Fix Version/s: 2.5.0
> Admin audit generation: avoid code duplication by moving the implementation to base classes
> -------------------------------------------------------------------------------------------
>
> Key: RANGER-4769
> URL: https://issues.apache.org/jira/browse/RANGER-4769
> Project: Ranger
> Issue Type: Sub-task
> Components: Ranger
> Reporter: Madhan Neethiraj
> Assignee: Madhan Neethiraj
> Priority: Major
> Fix For: 3.0.0, 2.5.0
>
> Attachments: RANGER-4769.patch
>
>
> When an object (like policy, security-zone, role) is updated, admin audit logs are generated with the details of the updated attributes. The logic to compute updated attributes is implemented in 13 classes, as listed below:
> # RangerPolicyService.getTransactionLog()
> # RangerRoleService.getTransactionLog()
> # RangerSecurityZoneServiceService.getTransactionLog()
> # RangerServiceService.getTransactionLog()
> # RangerGdsBaseModelService.createTransactionLog()
> # XAssetService.getTransactionLog()
> # XAuditMapService.getTransactionLog()
> # XGroupService.getTransactionLog()
> # XGroupUserService.getTransactionLog()
> # XPermMapService.getTransactionLog()
> # XPortalUserService.getTransactionLog()
> # XResourceService.getTransactionLog()
> # XUserService.getTransactionLog()
> To avoid unnecessary code duplication, consider moving implementations in above classes to their base class - like RangerBaseModelService and AbstractBaseResourceService.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)