Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-4008

RangerTagEnricher to ignore invalid resources

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0, 2.4.0
    • plugins
    • None

    Description

      When tags downloaded by plugins includes a resource with invalid resource hierarchy (like: hiveservice/database/table/column), the plugin ignores the entire tags downloaded and continues to enforce current tags (if any), with the following error:
      {{}}

      2022-12-01T10:33:33.913Z ERROR RangerTagRefresher(serviceName=dev_hive)-16193 org.apache.ranger.plugin.contextenricher.RangerTagEnricher Could not create service-resource-matcher for service-resource:[RangerServiceResource={ id={8} guid={null} isEnabled={true} createdBy={null} updatedBy={null} createTime={null} updateTime={null} version={null} guid={null} serviceName={null} resourceElements={hiveservice={RangerPolicyResource={values={dev_hive } isExcludes={false} isRecursive={false} }} column={RangerPolicyResource={values={region } isExcludes={false} isRecursive={false} }} database={RangerPolicyResource={values={db1 } isExcludes={false} isRecursive={false} }} table={RangerPolicyResource={values={tbl1 } isExcludes={false} isRecursive={false} }} } ownerUser={null} additionalInfo={} resourceSignature={xxx} }]  

       
      Instead of ignoring entire downloaded tags, the plugin should only ignore incorrect resources.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment