You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Madhan Neethiraj (Jira)" <ji...@apache.org> on 2022/01/02 21:51:00 UTC
[jira] [Updated] (RANGER-3567) support for using user attributes in policy resources
[ https://issues.apache.org/jira/browse/RANGER-3567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Madhan Neethiraj updated RANGER-3567:
-------------------------------------
Description:
It will be useful to be able to specify policy resources using user attributes - like
* path=/data/{{${{USER.dept}}}}/*
** matches path /data/sales for users with attribute dept=sales
** matches path /data/mktg for user with attribute dept=mktg
* database=test_{{${{USER.dept}}}}, table={{${{USER._name}}}}
** matches database _test_sales_ and table _scot_ for user scot with attribute dept=sales
** matches database _test_mktg_ and table _emily_ for user emily with attribute dept=mktg
was:
It will be useful to be able to specify policy resources using user attributes - like
* path=/data/${\{USER.dept}}/*
** matches path /data/sales for users with attribute dept=sales
** matches path /data/mktg for user with attribute dept=mktg
* database=test_${\{USER.dept}}, table=${\{USER._name}}
** matches database _test_sales_ and table _scot_ for user scot with attribute dept=sales
** matches database _test_mktg_ and table _emily_ for user emily with attribute dept=mktg
> support for using user attributes in policy resources
> -----------------------------------------------------
>
> Key: RANGER-3567
> URL: https://issues.apache.org/jira/browse/RANGER-3567
> Project: Ranger
> Issue Type: Improvement
> Components: plugins
> Reporter: Madhan Neethiraj
> Assignee: Madhan Neethiraj
> Priority: Major
>
> It will be useful to be able to specify policy resources using user attributes - like
> * path=/data/{{${{USER.dept}}}}/*
> ** matches path /data/sales for users with attribute dept=sales
> ** matches path /data/mktg for user with attribute dept=mktg
> * database=test_{{${{USER.dept}}}}, table={{${{USER._name}}}}
> ** matches database _test_sales_ and table _scot_ for user scot with attribute dept=sales
> ** matches database _test_mktg_ and table _emily_ for user emily with attribute dept=mktg
--
This message was sent by Atlassian Jira
(v8.20.1#820001)