Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3923 Dataset policies
  3. RANGER-4470

GDS data structure updates to capture masking order and sub-resource type

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • Ranger
    • None

    Description

      RangerDataShare.defaultMasks captures the default mask to be applied for columns based on tags. A column could have multiple tags and only one mask can be applied, that mask applied should be deterministic. Instead of modeling defaultMasks as a Map, using List will help the dataShare owner to specify the order:

      • replace Map<String, RangerPolicyItemDataMaskInfo> defaultMasks with List<RangerTagDataMaskInfo> defaultTagMasks

      RangerSharedResource.subResourceNames specifies the list of subResourceNames (like columns) that are to be shared. However the type of the sub-resource is not included. Given a service-def could have multiple child resource-types, it will be critical to capture the sub-resource-type as well:

      • replace subResourceNames with subResource and subResourceType

      Attachments

        1. RANGER-4470.patch
          33 kB
          Madhan Neethiraj

        Activity

          madhan Madhan Neethiraj added a comment - Patch in review board

          Merged in RANGER-3923 branch:

          commit 5103c4df08a13e83d11e46228f48a6a8249d88c2 (HEAD -> RANGER-3923, origin/RANGER-3923)
          Author: Madhan Neethiraj <madhan@apache.org>
          Date:   Tue Oct 10 08:34:33 2023 -0700
          
              RANGER-4470: renamed defaultMasks to defaultTagMasks in RangerDataShare, subResourceNames to subResource in RangerSharedResource
          
          madhan Madhan Neethiraj added a comment - Merged in RANGER-3923 branch: commit 5103c4df08a13e83d11e46228f48a6a8249d88c2 (HEAD -> RANGER-3923, origin/RANGER-3923) Author: Madhan Neethiraj <madhan@apache.org> Date: Tue Oct 10 08:34:33 2023 -0700 RANGER-4470: renamed defaultMasks to defaultTagMasks in RangerDataShare, subResourceNames to subResource in RangerSharedResource

          People

            madhan Madhan Neethiraj
            madhan Madhan Neethiraj
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: