We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
string_contains
项目->模块->主机
模块 1
host._bk_iam_path_ string_contains /bk_cmdb,set,1/
host._bk_iam_path_ = [/bk_cmdb,project,/bk_cmdb,set,1/, /bk_cmdb,project,y/bk_cmdb,set,2/]
objectValue string_contains PolicyValue
objectValues
PolicyValue
strings.Contains(objectValue, PolicyValue)
PolicyValue in objectValue
这一版变更, 对所有 SDK 操作符的左值/右值做了规范, 提前校验(具体参考上面的 PR), 相关的文档说明: #1293 (comment) ;
建议java sdk 也按照这个规范统一加下校验;
The text was updated successfully, but these errors were encountered:
reviewed
Sorry, something went wrong.
wklken
No branches or pull requests
SDK 变更
string_contains
操作符说明:
项目->模块->主机
(实例视图)权限的时候, 如果勾选中间节点, 例如模块 1
, 那么此时配置的权限策略是host._bk_iam_path_ string_contains /bk_cmdb,set,1/
host._bk_iam_path_ = [/bk_cmdb,project,/bk_cmdb,set,1/, /bk_cmdb,project,y/bk_cmdb,set,2/]
那么, 相当于路径中只要有对应的子串, 就有权限;objectValue string_contains PolicyValue
其中,objectValues
可能是单个, 也可能是多个(接入系统传入, 不限制),PolicyValue
只会有一个(权限中心表达式生成时控制)strings.Contains(objectValue, PolicyValue)
; Python 的实现PolicyValue in objectValue
(具体参考上面的 PR)其他
这一版变更, 对所有 SDK 操作符的左值/右值做了规范, 提前校验(具体参考上面的 PR), 相关的文档说明: #1293 (comment) ;
建议java sdk 也按照这个规范统一加下校验;
The text was updated successfully, but these errors were encountered: