diff --git a/paas2/VERSION b/paas2/VERSION index e25a7a9eb..33d8a7b77 100644 --- a/paas2/VERSION +++ b/paas2/VERSION @@ -1 +1 @@ -2.12.46 +2.12.47 diff --git a/paas2/esb/components/esb_conf.py b/paas2/esb/components/esb_conf.py index 2b215ff3c..34fa110e4 100644 --- a/paas2/esb/components/esb_conf.py +++ b/paas2/esb/components/esb_conf.py @@ -15,7 +15,7 @@ from django.conf import settings from components.component import ApiChannelForAPIS, ESBApiChannelForAPIS, FTAApiChannelForAPIS -from esb.bkapp.validators import AppAuthValidator +from esb.bkapp.validators import AppAuthValidator, AppCodeWhiteListValidator from esb.bkauth.validators import UserAuthWithBKTokenValidator @@ -584,6 +584,73 @@ def _rel_path(x): }, }, ), + ( + "/v1/usermanage/login/check/", + { + "comp_codename": "generic.v2.usermanage.usermanage_component", + "request_validators": [ + AppAuthValidator(), + AppCodeWhiteListValidator( + ( + "bk_login", + "bk_paas", + "bk_console", + ) + ), + ], + "is_hidden": True, + "comp_conf": { + "name": "api_v1_login_check", + "dest_http_method": "POST", + "dest_path": "/api/v1/login/check/", + }, + }, + ), + ( + "/v1/usermanage/login/profile/", + { + "comp_codename": "generic.v2.usermanage.usermanage_component", + "request_validators": [ + AppAuthValidator(), + AppCodeWhiteListValidator( + ( + "bk_login", + "bk_paas", + "bk_console", + ) + ), + ], + "is_hidden": True, + "comp_conf": { + "name": "api_v1_login_profile", + "dest_http_method": "POST", + "dest_path": "/api/v1/login/profile/", + }, + }, + ), + ( + "/v1/usermanage/login/profile/query/", + { + "comp_codename": "generic.v2.usermanage.usermanage_component", + "request_validators": [ + AppAuthValidator(), + AppCodeWhiteListValidator( + ( + "bk_login", + "bk_paas", + "bk_console", + ) + ), + ], + "is_hidden": True, + "comp_conf": { + "name": "api_v1_login_profile_query", + "dest_http_method": "POST", + "dest_path": "/api/v1/login/profile/query/", + }, + }, + ), + ], }, "esb": { diff --git a/paas2/release.md b/paas2/release.md index e722b36f5..5826fe47e 100644 --- a/paas2/release.md +++ b/paas2/release.md @@ -1,5 +1,8 @@ Release Log =============================== +# 2.12.47 + - update: esb update usermanage apis, for bk_login + # 2.12.46 - update: esb add with_jwt_header=True for usermanage