-
Notifications
You must be signed in to change notification settings - Fork 939
feature: support secret reference for Redis password in MCP Server #3006
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
为 MCP Server 的 Redis 配置添加 Secret 引用支持变更概述
变更文件
💡 小贴士与 lingma-agents 交流的方式📜 直接回复评论
📜 在代码行处标记
📜 在讨论中提问
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3006 +/- ##
==========================================
+ Coverage 35.91% 45.13% +9.22%
==========================================
Files 69 82 +13
Lines 11576 10917 -659
==========================================
+ Hits 4157 4927 +770
+ Misses 7104 5641 -1463
- Partials 315 349 +34
🚀 New features to boost your workflow:
|
…libaba#3006) Co-authored-by: 澄潭 <zty98751@alibaba-inc.com>
Ⅰ. Describe what this PR did
此PR为MCP Server的Redis配置添加了Secret引用支持,解决了密码必须明文存储在ConfigMap中的安全问题。
Ⅱ. Does this pull request fix one issue?
fixes #3001
Ⅲ. Why don't you add test cases (unit test/integration test)?
已添加测试
Ⅳ. Describe how to verify it
创建Secret:
kubectl create secret generic redis-credentials \ -n higress-system \ --from-literal=password='your-secure-password'更新 ConfigMap:
添加配置:
验证:
运行单元测试:
go test -v ./pkg/ingress/kube/configmap/... -run TestMcpServer