[
https://issues.apache.org/jira/browse/RANGER-3753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17534438#comment-17534438
]
Madhan Neethiraj commented on RANGER-3753:
------------------------------------------
Fix committed in master branch:
{noformat}
commit 2c62d8b7824351a06861d1acafc853a62dd97e4c (HEAD -> master, origin/master,
origin/HEAD)
Author: Madhan Neethiraj <[email protected]>
Date: Tue May 10 00:49:01 2022 -0700 RANGER-3753: fix for masking and
row-filter policies to recognize {OWNER} user {noformat}
[~rmani] - I suggest to include this fix in 2.3 release. Can you please review
and approve? Thanks!
> Hive masking policies don't recognize {OWNER} user
> --------------------------------------------------
>
> Key: RANGER-3753
> URL: https://issues.apache.org/jira/browse/RANGER-3753
> Project: Ranger
> Issue Type: Bug
> Components: plugins
> Reporter: Madhan Neethiraj
> Assignee: Madhan Neethiraj
> Priority: Major
> Fix For: 3.0.0, 2.3.0
>
> Attachments: RANGER-3753.patch
>
>
> Hive masking policies don't recognize \{OWNER} user. Consider the following
> masking policy:
> {noformat}
> resource: database=db1, table=tbl1, column=col1
> policyItem-1: user={OWNER}, accessType=select, maskType=MASK_NONE
> policyItem-2: group=public, accessType=select, maskType=MASK_NULL{noformat}
>
> Expected result:
> When column db1.tbl1.col1 is accessed by the owner of table, the column value
> should be returned to the user without applying any masking. For all other
> users, NULL value should be returned.
> Observed result:
> Value returned for all users is NULL, even for the owner of the table.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)