[
https://issues.apache.org/jira/browse/HDDS-6398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-6398:
---------------------------------
Labels: pull-request-available (was: )
> Add audit logs for DelegationToken
> ----------------------------------
>
> Key: HDDS-6398
> URL: https://issues.apache.org/jira/browse/HDDS-6398
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Rakesh Radhakrishnan
> Assignee: Jyotinder Singh
> Priority: Major
> Labels: pull-request-available
>
> This task is to add audit logs for DelegationToken calls in OM.
> *[A]* Please refer interface *OzoneManagerSecurityProtocol* for the APIs.
> # getDelegationToken
> # renewDelegationToken
> # cancelDelegationToken
>
> *[B]* Please add audit logs for {*}OzoneManagerProtocol{*}.java APIs as well.
> {code:java}
> List<ServiceInfo> getServiceList() throws IOException;
> ServiceInfoEx getServiceInfo() throws IOException;
> {code}
>
> +Note:+ Shouldn't add any critical user details like credentials etc.
>
> Sample code snippet that can be used to add audit logs:-
> {code:java}
> } catch (Exception ex) {
> ....
> auditSuccess = false;
> AUDIT.logReadFailure(buildAuditMessageForFailure(OMAction,
> auditMap, ex));
> throw ex;
> } finally {
> if (auditSuccess) {
> AUDIT.logReadSuccess(buildAuditMessageForSuccess(OMAction,
> auditMap));
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]