Skip to content

Commit

Permalink
fix(backend): RedisCluster、Tendisplus 的访问密码 需要同时作用于Proxy 和后端 TencentB…
Browse files Browse the repository at this point in the history
  • Loading branch information
iSecloud committed Sep 19, 2024
1 parent c7b3111 commit 0e7cf0d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dbm-ui/backend/ticket/builders/redis/redis_cluster_apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,10 @@ def format_ticket_data(self):
proxy_pwd = self.ticket_data.get("proxy_pwd") or DBPasswordHandler.get_random_password(
security_type=DBPrivSecurityType.REDIS_PASSWORD
)
# 如果部署类型是RedisCluster、Tendisplus,则后端密码和proxy密码相同,以proxy为准
ticket_type = self.ticket_data["cluster_type"]
if ticket_type in [ClusterType.TendisPredixyRedisCluster, ClusterType.TendisPredixyTendisplusCluster]:
redis_pwd = proxy_pwd

# 默认db数量
DEFAULT_DATABASES = 2
Expand Down

0 comments on commit 0e7cf0d

Please sign in to comment.