总服务数: 34 个微服务
需要 Secret 的服务: 34 个(100%)
Web/Gateway 服务(不需要数据库): 9 个
| 敏感信息类型 | 服务数 | 说明 |
|---|---|---|
| Database Password | 26 | MySQL/RDS 数据库密码 |
| Redis Password | 30+ | Redis Sentinel 集群密码 |
| RabbitMQ Password | 20+ | 消息队列密码 |
| WeChat AppID/Secret | 5 | 微信小程序认证信息 |
| MongoDB Password | 3 | MongoDB 密码(注释状态) |
| Nacos Password | 2 | Nacos 认证信息 |
| Seata Password | 2 | 分布式事务框架密码 |
| Dubbo 配置 | 15+ | Dubbo 协议配置 |
包含敏感信息:
rootFxjxtdacf8f_a3d_202600104d6c_41(所有数据库服务相同)服务列表:
shop-recycle-account
shop-recycle-async-web
shop-recycle-data-statistics
shop-recycle-dealdata-service
shop-recycle-dispatcher
shop-recycle-erp-pc-web
shop-recycle-gateway-out
shop-recycle-gateway-out-upgrade
shop-recycle-import-web
shop-recycle-marketer-pc-web
shop-recycle-merchant
shop-recycle-merchant-pc-web
shop-recycle-merchant-wechat-web
shop-recycle-msg
shop-recycle-order-center
shop-recycle-order-search
shop-recycle-oss-web
shop-recycle-out-web
shop-recycle-payment
shop-recycle-payment-web
shop-recycle-pis
shop-recycle-platform
shop-recycle-sche
shop-recycle-store
shop-recycle-store-pc-web
shop-recycle-store-wechat-web
shop-recycle-wechat
包含敏感信息:
3sm_redisguest服务列表:
shop-recycle-agent-pc-web
shop-recycle-customer-wechat-web
shop-recycle-gateway
shop-recycle-login-center
shop-recycle-platform-pc-web
shop-recycle-wechat-web
shop-recycle-ws-web
包含敏感信息:
服务列表:
shop-recycle-login-center
shop-recycle-out-web
shop-recycle-platform
shop-recycle-platform-pc-web
shop-recycle-wechat
存储非敏感、可公开的配置:
存储敏感、保密的配置:
shop-recycle-account
shop-recycle-async-web
shop-recycle-data-statistics
shop-recycle-dealdata-service
shop-recycle-dispatcher
shop-recycle-erp-pc-web
shop-recycle-gateway-out
shop-recycle-gateway-out-upgrade
shop-recycle-import-web
shop-recycle-marketer-pc-web
shop-recycle-merchant
shop-recycle-merchant-pc-web
shop-recycle-merchant-wechat-web
shop-recycle-msg
shop-recycle-order-center
shop-recycle-order-search
shop-recycle-oss-web
shop-recycle-out-web
shop-recycle-payment
shop-recycle-payment-web
shop-recycle-pis
shop-recycle-platform
shop-recycle-sche
shop-recycle-store
shop-recycle-store-pc-web
shop-recycle-store-wechat-web
shop-recycle-wechat
Secret 包含字段:
db-usernamedb-passworddb-urlredis-passwordrabbitmq-passwordrabbitmq-usernameshop-recycle-agent-pc-web
shop-recycle-customer-wechat-web
shop-recycle-gateway
shop-recycle-login-center
shop-recycle-platform-pc-web
shop-recycle-wechat-web
shop-recycle-ws-web
Secret 包含字段:
redis-passwordrabbitmq-passwordrabbitmq-usernamewechat-app-id、wechat-app-secretshop-recycle-login-center
shop-recycle-out-web
shop-recycle-platform
shop-recycle-platform-pc-web
shop-recycle-wechat
额外的 Secret 字段:
wechat-store-app-idwechat-store-app-secretwechat-merchant-app-idwechat-merchant-app-secretwechat-buy-app-idwechat-buy-app-secret优点:
缺点:
优点:
缺点:
分组建议:
common-db-credentials - 数据库凭证(26 个服务共用)common-redis-credentials - Redis 凭证(30+ 服务共用)common-rabbitmq-credentials - RabbitMQ 凭证(20+ 服务共用)wechat-credentials - 微信凭证(5 个服务)mongodb-credentials - MongoDB 凭证(2 个服务)nacos-credentials - Nacos 凭证(2 个服务)Kubernetes ConfigMaps:
├── [service-name]-config-public # 非敏感配置
│ ├── application.yml (去除敏感字段)
│ └── application.properties
└── shared-config # 全局非敏感配置
├── nacos-server-address
├── redis-sentinel-nodes
└── rabbitmq-host
Kubernetes Secrets:
├── common-db-credentials # 共享:数据库凭证
├── common-redis-credentials # 共享:Redis 凭证
├── common-rabbitmq-credentials # 共享:RabbitMQ 凭证
├── wechat-credentials # 共享:微信密钥
└── [service-name]-secret # 服务特定:敏感信息
├── mongodb-password
├── nacos-password
├── seata-password
└── custom-api-keys
common-db-credentials Secretcommon-redis-credentials Secretcommon-rabbitmq-credentials Secretwechat-credentials Secret