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
Patch in review board