feature: support secret reference for Redis password in MCP Server (#3006)

Co-authored-by: 澄潭 <zty98751@alibaba-inc.com>
This commit is contained in:
SaladDay
2025-10-27 13:33:52 +08:00
committed by GitHub
parent 7c4899ad38
commit 1bcef0c00c
7 changed files with 325 additions and 8 deletions

View File

@@ -57,7 +57,11 @@ data:
redis:
address: redis-stack-server.higress-system.svc.cluster.local:6379 # Redis服务地址
username: "" # Redis用户名可选
password: "" # Redis密码可选
password: "" # Redis密码可选,明文方式
passwordSecret: # 从 Secret 引用密码(推荐,优先级高于 password
name: redis-credentials # Secret 名称
key: password # Secret 中的 key
namespace: higress-system # Secret 所在命名空间(可选,默认为 higress-system
db: 0 # Redis数据库可选
match_list: # MCP Server 会话保持路由规则(当匹配下面路径时,将被识别为一个 MCP 会话,通过 SSE 等机制进行会话保持)
- match_rule_domain: "*"

View File

@@ -57,7 +57,11 @@ data:
redis:
address: redis-stack-server.higress-system.svc.cluster.local:6379 # Redis service address
username: "" # Redis username (optional)
password: "" # Redis password (optional)
password: "" # Redis password (optional, plaintext)
passwordSecret: # Reference password from Secret (recommended, higher priority than password)
name: redis-credentials # Secret name
key: password # Key in Secret
namespace: higress-system # Secret namespace (optional, defaults to higress-system)
db: 0 # Redis database (optional)
match_list: # MCP Server session persistence routing rules (when matching the following paths, it will be recognized as an MCP session and maintained through SSE)
- match_rule_domain: "*"