diff --git a/iam/__version__.py b/iam/__version__.py index 268300d..7a1faa9 100644 --- a/iam/__version__.py +++ b/iam/__version__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -__version__ = "1.2.0" +__version__ = "1.2.1" diff --git a/iam/utils.py b/iam/utils.py index 16a4a6f..7e8e45f 100644 --- a/iam/utils.py +++ b/iam/utils.py @@ -83,6 +83,8 @@ def gen_perms_apply_data(system, subject, action_to_resources_list): if topo_path: for part in topo_path[1:-1].split("/"): + # NOTE: old _bk_iam_path_ is like /set,1/host,2/ + # while the new _bk_iam_path_ is like /bk_cmdb,set,1/bk_cmdb,host,2/ node_parts = part.split(",") rtype, rid = "", "" if len(node_parts) == 2: diff --git a/release.md b/release.md index 3160696..d04a539 100644 --- a/release.md +++ b/release.md @@ -1,5 +1,15 @@ 版本日志 =============== + +# v1.2.1 + +- add: operator `string_contains` #68 +- update: 规范化所有操作符左值/右值, 并增加校验(校验失败直接False) +- refactor: expression eval + +注意: 如果使用 RBAC 接入权限中心, 必须使用这个版本的 SDK(action.auth_type="rbac") + + # v1.2.0 - support django 3.2