Skip to content

Commit

Permalink
add auth_location to log_fields (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-smile authored Nov 27, 2023
1 parent e6e0682 commit 204d882
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dashboard-front/src/language/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export default {
"包含小写字母、数字、下划线或点号,长度小于255个字符": "Consists of lowercase letters, numbers, underscores(_) and dots(.), length less than 255",
"前缀(generic).小写的系统名.小写的组件类名": "prefix(generic).lowercase-system-name.lowercase-component-class-name",
"权限级别": "Permission Level",
"无权限,应用不需申请组件API权限;普通权限,应用需在开发者中心申请组件API权限,审批通过后访问": "No Limit, app does not need to apply permission; Normal, app needs to apply permission in the developer center",
"无限制,应用不需申请组件API权限;普通权限,应用需在开发者中心申请组件API权限,审批通过后访问": "No Limit, app does not need to apply permission; Normal, app needs to apply permission in the developer center",
"超时时长": "Timeout",
"未设置时使用系统的超时时长,最大600秒": "Use system timeout if not set, max 600 seconds",
"组件配置": "Component Config",
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard-front/src/language/lang/zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export default {
"包含小写字母、数字、下划线或点号,长度小于255个字符": "包含小写字母、数字、下划线或点号,长度小于255个字符",
"前缀(generic).小写的系统名.小写的组件类名": "前缀(generic).小写的系统名.小写的组件类名",
"权限级别": "权限级别",
"无权限,应用不需申请组件API权限;普通权限,应用需在开发者中心申请组件API权限,审批通过后访问": "无权限,应用不需申请组件API权限;普通权限,应用需在开发者中心申请组件API权限,审批通过后访问",
"无限制,应用不需申请组件API权限;普通权限,应用需在开发者中心申请组件API权限,审批通过后访问": "无限制,应用不需申请组件API权限;普通权限,应用需在开发者中心申请组件API权限,审批通过后访问",
"超时时长": "超时时长",
"未设置时使用系统的超时时长,最大600秒": "未设置时使用系统的超时时长,最大600秒",
"组件配置": "组件配置",
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard-front/src/views/component-manager/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
:name="option.name">
</bk-option>
</bk-select>
<p class="tips" slot="tip"><i class="apigateway-icon icon-ag-info"></i> {{ $t('无权限,应用不需申请组件API权限;普通权限,应用需在开发者中心申请组件API权限,审批通过后访问') }} </p>
<p class="tips" slot="tip"><i class="apigateway-icon icon-ag-info"></i> {{ $t('无限制,应用不需申请组件API权限;普通权限,应用需在开发者中心申请组件API权限,审批通过后访问') }} </p>
</bk-form-item>
<bk-form-item :label="$t('用户认证')" :required="true" property="verified_user_required" :error-display-type="'normal'">
<bk-checkbox
Expand Down
2 changes: 2 additions & 0 deletions src/dashboard/apigateway/apigateway/conf/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,8 @@
"proxy_error": "$proxy_error",
"instance": "$instance_id",
"timestamp": "$bk_log_request_timestamp",
# 临时字段,用于记录请求时,认证参数的位置,便于推动认证参数优化
"auth_location": "$auth_params_location",
}
},
"bk-concurrency-limit": {
Expand Down

0 comments on commit 204d882

Please sign in to comment.