You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by GitBox <gi...@apache.org> on 2022/08/11 03:14:54 UTC
[GitHub] [incubator-kyuubi] bowenliang123 opened a new issue, #3217: [DOCS] Add config suggestion for Ragner userstore enricher in Authz doc
bowenliang123 opened a new issue, #3217:
URL: https://github.com/apache/incubator-kyuubi/issues/3217
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
### Search before asking
- [X] I have searched in the [issues](https://github.com/apache/incubator-kyuubi/issues?q=is%3Aissue) and found no similar issues.
### Which parts of the documentation do you think need improvement?
Support macros in Row-filter condition expression, introduced in Ranger 2.3 ([release notes](https://cwiki.apache.org/confluence/display/RANGER/Apache+Ranger+2.3.0+-+Release+Notes)), is an major feature to significantly simplify the row-filter condition expression by replacing explicit condition query by using user/group's attributes in practices.
- [RANGER-3605](https://issues.apache.org/jira/browse/RANGER-3605) : Support macros in row-filter/condition expressions
- [RANGER-3550](https://issues.apache.org/jira/browse/RANGER-3550) : support for using user/tag attributes in row-filter expressions and conditions
Consider user `liangtiancheng` with attribute `born_city` = `guangzhou`, we can define the row filter condition with `city='${{USER.born_city}}'` with macros.
However, This feature implicit relies on an config named `ranger.plugin.spark.enable.implicit.userstore.enricher` and the default value `false` will prevent `RangerUserStoreEnricher` fetching user/group and their attributes. Macros in row-filter condition will fallback to null value (as lack of user attributes value in `UserStore` of auth context) in script transformation as unexpected.
Improving doc of `ranger-spark-security.xml` to aware of this feature and related config.
### Affects Version(s)
1.6.0
### Improving the documentation
By adding the config suggestion here in AuthZ plugin docs of sample `ranger-spark-security.xml` in <https://github.com/apache/incubator-kyuubi/blob/master/docs/security/authorization/spark/install.md>
```
<property>
<name>ranger.plugin.spark.enable.implicit.userstore.enricher</name>
<value>true</value>
<description>Enable UserStoreEnricher for fetching user and group attributes if using marcros or scripts in row-filters since Ranger 2.3</description>
</property>
```
### Anything else
_No response_
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org
[GitHub] [incubator-kyuubi] bowenliang123 commented on issue #3217: [DOCS] Docs for using Marcos in row-level filter in Authz
Posted by GitBox <gi...@apache.org>.
bowenliang123 commented on issue #3217:
URL: https://github.com/apache/incubator-kyuubi/issues/3217#issuecomment-1220491462
> BTW, we can bump ranger version from 2.2.0 to 2.3.0, @bowenliang123 would you like to open PR for it?
Sure. But let's have further investigation to see what to improve the docs and key features.
On my side , I still have some uncertainties about policies on group and group attributes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org
[GitHub] [incubator-kyuubi] yaooqinn commented on issue #3217: [DOCS] Add Ranger UserStoreEnricher enable config suggestion in Authz
Posted by GitBox <gi...@apache.org>.
yaooqinn commented on issue #3217:
URL: https://github.com/apache/incubator-kyuubi/issues/3217#issuecomment-1211545858
sounds nice.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org
[GitHub] [incubator-kyuubi] pan3793 commented on issue #3217: [DOCS] Add Ranger UserStoreEnricher enable config suggestion in Authz
Posted by GitBox <gi...@apache.org>.
pan3793 commented on issue #3217:
URL: https://github.com/apache/incubator-kyuubi/issues/3217#issuecomment-1217485846
Great, 1.6.0 is expected to be out in late Aug. or early Sept. Changed it back to 1.6.0.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org
[GitHub] [incubator-kyuubi] bowenliang123 commented on issue #3217: [DOCS] Additional configs for using Marcos in row-level filter in Authz
Posted by GitBox <gi...@apache.org>.
bowenliang123 commented on issue #3217:
URL: https://github.com/apache/incubator-kyuubi/issues/3217#issuecomment-1219264354
@Ero98 FYI.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org
[GitHub] [incubator-kyuubi] pan3793 commented on issue #3217: [DOCS] Add Ranger UserStoreEnricher enable config suggestion in Authz
Posted by GitBox <gi...@apache.org>.
pan3793 commented on issue #3217:
URL: https://github.com/apache/incubator-kyuubi/issues/3217#issuecomment-1217383810
Hi, @bowenliang123, changed to milestone 1.7.0 because the community are going to release recently
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org
[GitHub] [incubator-kyuubi] pan3793 commented on issue #3217: [DOCS] Additional configs for using Marcos in row-level filter in Authz
Posted by GitBox <gi...@apache.org>.
pan3793 commented on issue #3217:
URL: https://github.com/apache/incubator-kyuubi/issues/3217#issuecomment-1219271537
BTW, we can bump ranger version from 2.2.0 to 2.3.0, @bowenliang123 would you like to open PR for it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org
[GitHub] [incubator-kyuubi] pan3793 commented on issue #3217: [DOCS] Additional configs for using Marcos in row-level filter in Authz
Posted by GitBox <gi...@apache.org>.
pan3793 commented on issue #3217:
URL: https://github.com/apache/incubator-kyuubi/issues/3217#issuecomment-1219264813
Thanks @bowenliang123 I'm going to check it ASAP, also cc @zhouyifan279
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org
[GitHub] [incubator-kyuubi] bowenliang123 commented on issue #3217: [DOCS] Add Ranger UserStoreEnricher enable config suggestion in Authz
Posted by GitBox <gi...@apache.org>.
bowenliang123 commented on issue #3217:
URL: https://github.com/apache/incubator-kyuubi/issues/3217#issuecomment-1217505179
Still some uncertainties in using Ranger's policy marcos with user/group attrs to be clearify and verify. That's reason I have to take more time than I expected.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org
[GitHub] [incubator-kyuubi] bowenliang123 commented on issue #3217: [DOCS] Additional configs for using Marcos in row-level filter in Authz
Posted by GitBox <gi...@apache.org>.
bowenliang123 commented on issue #3217:
URL: https://github.com/apache/incubator-kyuubi/issues/3217#issuecomment-1219259140
@pan3793 PR https://github.com/apache/incubator-kyuubi/pull/3267 is created for this issue. Please have a check if interested.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org
[GitHub] [incubator-kyuubi] yaooqinn closed issue #3217: [DOCS] Docs for using Marcos in row-level filter in Authz
Posted by GitBox <gi...@apache.org>.
yaooqinn closed issue #3217: [DOCS] Docs for using Marcos in row-level filter in Authz
URL: https://github.com/apache/incubator-kyuubi/issues/3217
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org
[GitHub] [incubator-kyuubi] bowenliang123 commented on issue #3217: [DOCS] Add Ranger UserStoreEnricher enable config suggestion in Authz
Posted by GitBox <gi...@apache.org>.
bowenliang123 commented on issue #3217:
URL: https://github.com/apache/incubator-kyuubi/issues/3217#issuecomment-1211703334
Will submit a PR when matured at proper time.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org
[GitHub] [incubator-kyuubi] bowenliang123 commented on issue #3217: [DOCS] Add Ranger UserStoreEnricher enable config suggestion in Authz
Posted by GitBox <gi...@apache.org>.
bowenliang123 commented on issue #3217:
URL: https://github.com/apache/incubator-kyuubi/issues/3217#issuecomment-1217471314
@pan3793 alright.
What is the release date scheduled for 1.6.0? If it is close to end of Auguest, I could catch up with it and submit an pr this week.
The enrichment is not about to modify any code implementation other than docs, and I will continue to deploy kyuubi 1.6.0 with ranger 2.3.0 for this feature in real practices.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org
[GitHub] [incubator-kyuubi] yikf commented on issue #3217: [DOCS] Docs for using Marcos in row-level filter in Authz
Posted by GitBox <gi...@apache.org>.
yikf commented on issue #3217:
URL: https://github.com/apache/incubator-kyuubi/issues/3217#issuecomment-1220487186
> BTW, we can bump ranger version from 2.2.0 to 2.3.0, @bowenliang123 would you like to open PR for it?
i'm interesed in this, will fill a title
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org