mirror of
https://github.com/alibaba/higress.git
synced 2026-06-03 17:47:25 +08:00
feature: support secret reference for Redis password in MCP Server (#3006)
Co-authored-by: 澄潭 <zty98751@alibaba-inc.com>
This commit is contained in:
@@ -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: "*"
|
||||
|
||||
@@ -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: "*"
|
||||
|
||||
Reference in New Issue
Block a user