[ 
https://issues.apache.org/jira/browse/HDFS-12300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xiao Chen updated HDFS-12300:
-----------------------------
    Attachment: HDFS-12300.01.patch

Finally find some cycles to get this rolling.

Patch 1 attached, example audit logs could be seen by running the added unit 
test.

Tried to keep existing behavior in FSN - namely do not use 
{{Token#decodeIdentifier}} due to (I guess) the overhead of reflection. 
Extracted the existing code to {{DFSUtil}}, and fixed a surprising stream 
leakage which I'm not sure why hasn't caused any issues thus far.

> Audit-log delegation token related operations
> ---------------------------------------------
>
>                 Key: HDFS-12300
>                 URL: https://issues.apache.org/jira/browse/HDFS-12300
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: namenode
>    Affects Versions: 0.22.0
>            Reporter: Xiao Chen
>            Assignee: Xiao Chen
>         Attachments: HDFS-12300.01.patch
>
>
> When inspecting the code, I found that the following methods in FSNamesystem 
> are not audit logged:
> - getDelegationToken
> - renewDelegationToken
> - cancelDelegationToken
> The audit log itself does have a logTokenTrackingId field to additionally log 
> some details when a token is used for authentication.
> After emailing the community, we should add that.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to