You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Barbara Eckman (Jira)" <ji...@apache.org> on 2022/08/24 16:18:00 UTC
[jira] [Commented] (RANGER-3865) support for using user attributes in masking expressions
[ https://issues.apache.org/jira/browse/RANGER-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17584352#comment-17584352 ]
Barbara Eckman commented on RANGER-3865:
----------------------------------------
Is this built to work with all plugins, or just hive?
> support for using user attributes in masking expressions
> --------------------------------------------------------
>
> Key: RANGER-3865
> URL: https://issues.apache.org/jira/browse/RANGER-3865
> Project: Ranger
> Issue Type: Improvement
> Components: plugins
> Reporter: Madhan Neethiraj
> Assignee: Madhan Neethiraj
> Priority: Major
> Fix For: 3.0.0, 2.4.0
>
> Attachments: RANGER-3865.patch
>
>
> RANGER-3550 introduced support for referencing user attributes in row-filter expressions.
> Extending use of user attributes in masking expressions can help address more use cases, including the following:
> Restrict users to see email address of customers in user's country only; email address of other customers must be masked:
> {code:java}
> CASE WHEN country = '${{USER.country}}' THEN {col} ELSE mask({col}) END{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)