Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 3.0.0, 2.5.0
    • Ranger
    • None

    Description

      Upon performing Policy Import some of the corresponding Audit Admin logs are improper.

      1. While importing if we check Override Policy checkbox then it would delete the existing policy and create new policy for the specific resource. Observed for this action in Audit Admin tab we are seeing  "Unknown" value in Action column.
        1. Also upon clicking the log modal opens which does not show any data.
      2. Import End Audit log should be the Last log seen in Audit Admin tab, however here we are seeing one policy creation log after the Import log.
      3. Upon clicking on Import End log, modal opens which shows its details, here the Export time format is wrong.

       

      Steps to repro:

      1. In Service Manager page , export the policies for all the services by clicking on top right Export button.
      2. Now import the policy by clicking on top right Import button, select the above exported policy json file, check the "Override Policy" box. 
      3. Now click on Import. Once import done check the logs in Audit Admin tab.

       

      Snapshot attached for reference.

      Attachments

        Activity

          commit cd7f5075543d8b604440a2f73e2752baab6c5c9a (HEAD -> ranger-2.5, origin/ranger-2.5)
          Author: Rakesh Gupta <rakesh.gupta.dev264@gmail.com>
          Date:   Tue Jul 23 17:22:49 2024 +0530
          
              RANGER-4864: fixed incorrect admin audit log for policy import operation
          
              Signed-off-by: Madhan Neethiraj <madhan@apache.org>
          
          madhan Madhan Neethiraj added a comment - commit cd7f5075543d8b604440a2f73e2752baab6c5c9a (HEAD -> ranger-2.5, origin/ranger-2.5) Author: Rakesh Gupta <rakesh.gupta.dev264@gmail.com> Date: Tue Jul 23 17:22:49 2024 +0530 RANGER-4864: fixed incorrect admin audit log for policy import operation Signed-off-by: Madhan Neethiraj <madhan@apache.org>
          rakeshgupta264 Rakesh Gupta added a comment -
          commit e97f95cf11572405d7b276c347ea29d37c94f229 (HEAD -> master, origin/master, origin/HEAD)
          Author: Rakesh Gupta <rakesh.gupta.dev264@gmail.com>
          Date:   Tue Jul 23 17:22:49 2024 +0530    
          
              RANGER-4864: Upon performing Policy Import some of Audit Admin logs are improper
              
              Signed-off-by: Dhaval.Rajpara <dhavalrajpara1304@gmail.com>
          rakeshgupta264 Rakesh Gupta added a comment - commit e97f95cf11572405d7b276c347ea29d37c94f229 (HEAD -> master, origin/master, origin/HEAD) Author: Rakesh Gupta <rakesh.gupta.dev264@gmail.com> Date:   Tue Jul 23 17:22:49 2024 +0530    RANGER-4864: Upon performing Policy Import some of Audit Admin logs are improper          Signed-off-by: Dhaval.Rajpara <dhavalrajpara1304@gmail.com>

          People

            rakeshgupta264 Rakesh Gupta
            vishalbhavsar Vishal Bhavsar
            Votes:
            0 Vote for this issue
            Watchers:
            Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment