-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ 功能建议 ] 查询表权限检验和动态脱敏功能改造 #145
Labels
enhancement
New feature or request
Comments
Closed
这里分别列出不支持表权限校验和脱敏的场景,欢迎补充 表权限校验失效
脱敏失效
|
表权限校验失效
作者您好,在我们的使用中出现了表权限校验失效的问题 |
This was referenced Sep 7, 2019
Closed
先处理表权限检验的问题,表权限使用sqlparser解析检验,相比inception支持更多语法 |
This was referenced Dec 1, 2019
MySQL查询权限已使用goInception解析,兼容更多检验场景 |
Closed
Closed
卒,无进一步改造计划 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
目前遇到的问题/使用障碍
表权限
关于表权限检验,目前是利用inception的语法树打印获取SQL包含的表信息,再按照用户拥有的权限列表进行判断,不支持子查询的解析
查询脱敏
包括MySQL和MsSQL的实现,相关配置项:QUERY_CHECK说明
MySQL查询脱敏需要先解析语句,获取select信息,提取脱敏字段,再针对脱敏字段去正则匹配脱敏规则,进行字符替换
MsSQL的实现则相对简单,不需要解析语句,直接对所有查询结果数据进行匹配替换
解析语句比较精准,没有误伤,但是语法解析相对困难,会存在比较多的限制
希望如何解决/实现它
其他信息
语法解析相关开源库
The text was updated successfully, but these errors were encountered: