Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-4170

v2/entity/bulk Entity GET API is able to read unauthorised entities too when skipFailedEntities is passed as True

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 3.0.0, 2.2.0
    • atlas-core
    • None

    Description

      As part of https://issues.apache.org/jira/browse/ATLAS-3855, skipFailedEntities was introduced to ignore the entities where it fails to read

      When skipFailedEntities is not passed or is passed as skipFailedEntities=False, then we get 403 with below error as expected

      {    
      "errorCode": "ATLAS-403-00-001",    
      "errorMessage": "hrt is not authorized to perform read entity: guid=ad0f349c-1fe6-46f0-be6d-98ca2e754e1c"
      } 

      But when we pass skipFailedEntities=True, then API is able to retrieve the data for even those entities on which the user has explicit deny conditions. Ideally, we should be ignoring these unauthorised entities and return data only for authorised ones. 
       

      Attachments

        1. ATLAS-4170.patch
          2 kB
          Sidharth Kumar Mishra

        Issue Links

          Activity

            People

              sidharthkmishra Sidharth Kumar Mishra
              sidharthkmishra Sidharth Kumar Mishra
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: