You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/04/15 04:46:00 UTC

[jira] [Work logged] (KNOX-2730) Fix missing Correlation id in audit logs

     [ https://issues.apache.org/jira/browse/KNOX-2730?focusedWorklogId=757293&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-757293 ]

ASF GitHub Bot logged work on KNOX-2730:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/Apr/22 04:45
            Start Date: 15/Apr/22 04:45
    Worklog Time Spent: 10m 
      Work Description: moresandeep opened a new pull request, #558:
URL: https://github.com/apache/knox/pull/558

   ## What changes were proposed in this pull request?
   There was a change a while ago due to which correlation id in audit logs was missing in the last audit message for a request. This PR fixes that issue.
   
   ## How was this patch tested?
   This patch was tested locally on local Knox instance. 
   
   **Before Patch**
   ```
   22/04/14 02:17:24 ||6bb6e07e-1540-47e9-9e07-7798563fe125|audit|[0:0:0:0:0:0:0:1]|WEATHER||||access|uri|/gateway/sandbox/weather/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14|unavailable|Request method: GET
   22/04/14 02:17:24 ||6bb6e07e-1540-47e9-9e07-7798563fe125|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||authentication|uri|/gateway/sandbox/weather/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14|success|
   22/04/14 02:17:24 ||6bb6e07e-1540-47e9-9e07-7798563fe125|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||authentication|uri|/gateway/sandbox/weather/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14|success|Groups: []
   22/04/14 02:17:24 ||6bb6e07e-1540-47e9-9e07-7798563fe125|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||identity-mapping|principal|guest|success|Groups: []
   22/04/14 02:17:24 ||6bb6e07e-1540-47e9-9e07-7798563fe125|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||dispatch|uri|http://api.openweathermap.org:80/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14&user.name=guest|unavailable|Request method: GET
   22/04/14 02:17:25 ||6bb6e07e-1540-47e9-9e07-7798563fe125|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||dispatch|uri|http://api.openweathermap.org:80/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14&user.name=guest|success|Response status: 200
   22/04/14 02:17:25 |||audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||access|uri|/gateway/sandbox/weather/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14|success|Response status: 200
   ```
   
   **After Patch**
   ```
   22/04/15 00:31:58 ||3a931834-3751-40f9-a4d7-aa6232e8bde4|audit|[0:0:0:0:0:0:0:1]|WEATHER||||access|uri|/gateway/sandbox/weather/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14|unavailable|Request method: GET
   22/04/15 00:31:58 ||3a931834-3751-40f9-a4d7-aa6232e8bde4|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||authentication|uri|/gateway/sandbox/weather/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14|success|
   22/04/15 00:31:58 ||3a931834-3751-40f9-a4d7-aa6232e8bde4|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||authentication|uri|/gateway/sandbox/weather/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14|success|Groups: []
   22/04/15 00:31:58 ||3a931834-3751-40f9-a4d7-aa6232e8bde4|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||identity-mapping|principal|guest|success|Groups: []
   22/04/15 00:31:59 ||3a931834-3751-40f9-a4d7-aa6232e8bde4|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||dispatch|uri|http://api.openweathermap.org:80/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14&user.name=guest|unavailable|Request method: GET
   22/04/15 00:32:00 ||3a931834-3751-40f9-a4d7-aa6232e8bde4|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||dispatch|uri|http://api.openweathermap.org:80/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14&user.name=guest|success|Response status: 200
   22/04/15 00:32:00 ||3a931834-3751-40f9-a4d7-aa6232e8bde4|audit|[0:0:0:0:0:0:0:1]|WEATHER|guest|||access|uri|/gateway/sandbox/weather/data/2.5/forecast?id=524901&APPID=54557732afcfe106bfc955b9da04fb14|success|Response status: 200
   ```




Issue Time Tracking
-------------------

            Worklog Id:     (was: 757293)
    Remaining Estimate: 0h
            Time Spent: 10m

> Fix missing Correlation id in audit logs
> ----------------------------------------
>
>                 Key: KNOX-2730
>                 URL: https://issues.apache.org/jira/browse/KNOX-2730
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>            Reporter: Sandeep More
>            Assignee: Sandeep More
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> In some calls knox is not adding correlation ids to the audit logs
> 22/04/11 09:13:36 |||audit|[0:0:0:0:0:0:0:1]|WEBHDFS|knoxui|||access|uri|/gateway/gateway/webhdfs/v1/?op=LISTSTATUS|success|Response status: 200



--
This message was sent by Atlassian Jira
(v8.20.1#820001)