apollo
apollo copied to clipboard
apollo三个应用的数据库密码配置支持加密吗?怎么配置?
- [x] 我已经检查过discussions
- [x] 我已经搜索过issues
- [x] 我已经仔细检查过FAQ
描述bug
apollo三个模块configservice、adminservice和portalservice中都涉及到数据库的连接信息配置,请问数据库密码配置支持加密吗?怎么配置?
复现
使用疑问,无需复现
期望
生产环境需要支持数据库密码加密
截图
无需截图
额外的细节和日志
- 版本:1.5.1
- 错误日志
- 配置:官方release包,docker yml中配置数据库连接信息
- 平台和操作系统 linux
see https://github.com/apolloconfig/apollo/issues/3187
see #3187
你好,我想问的是apollo三个应用本身的数据库密码明文存储。不是业务方应用在apollo里面配置的明文密码
构造出 DataSource 出来即可,参考 TitanEntityManager
In the scenario of Apollo's own database connection information encryption, if there is a unified mechanism, it would be better if there is no need to modify the open source code and release package. @nobodyiam
@mghio This is a good point! We may embed Jasypt to achieve this.
构造出 DataSource 出来即可,参考 TitanEntityManager
1.5.1版本我在common模块引入jasypt-spring-boot 2.1.2版本,环境变量配置jasypt.encryptor.password即可。
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 7 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.