Skip to content

Commit

Permalink
fix(backend): 修复临时下载文件接口鉴权问题 #6886
Browse files Browse the repository at this point in the history
  • Loading branch information
iSecloud committed Sep 12, 2024
1 parent 48c45a9 commit d5bd8b5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions dbm-ui/backend/core/storages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

class StorageViewSet(viewsets.SystemViewSet):
default_permission_class = [StoragePermission()]
action_permission_map = {("temporary_download",): []}

@common_swagger_auto_schema(
operation_summary=_("批量获取文件内容"), request_body=BatchDownloadFileSerializer(), tags=[SWAGGER_TAG]
Expand Down
4 changes: 2 additions & 2 deletions dbm-ui/backend/ticket/builders/tendbcluster/tendb_checksum.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
TendbChecksumScope,
)
from backend.ticket.builders.common.field import DBTimezoneField
from backend.ticket.builders.mysql.base import DBTableField
from backend.ticket.builders.mysql.base import BaseMySQLTicketFlowBuilder, DBTableField
from backend.ticket.builders.mysql.mysql_checksum import (
MySQLChecksumFlowBuilder,
MySQLChecksumFlowParamBuilder,
Expand Down Expand Up @@ -202,7 +202,7 @@ class TendbChecksumFlowBuilder(MySQLChecksumFlowBuilder):
data_repair_flow_builder = TendbDataRepairFlowParamBuilder

def patch_ticket_detail(self):
pass
BaseMySQLTicketFlowBuilder.patch_ticket_detail(self)

def custom_ticket_flows(self):
return super().custom_ticket_flows()
Expand Down
1 change: 1 addition & 0 deletions helm-charts/bk-dbm/templates/configmaps/dbm-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ data:
BROKER_URL: "{{ .Values.dbm.envs.brokerUrl }}"
DBA_APP_BK_BIZ_ID: "{{ .Values.dbm.envs.dbaAppBkBizId }}"
CORS_ALLOWED_ORIGINS: "{{ .Values.dbm.envs.corsAllowedOrigins | default "" }}"
WINDOW_SSH_PORT: "{{ .Values.dbm.envs.windowSSHPort | default 36000 }}"
# REDIS
REDIS_HOST: "{{ .Values.externalRedis.host }}"
REDIS_PORT: "{{ .Values.externalRedis.port }}"
Expand Down

0 comments on commit d5bd8b5

Please sign in to comment.