apollo icon indicating copy to clipboard operation
apollo copied to clipboard

apollo三个应用的数据库密码配置支持加密吗?怎么配置?

Open hellotyty opened this issue 2 years ago • 6 comments

描述bug

apollo三个模块configservice、adminservice和portalservice中都涉及到数据库的连接信息配置,请问数据库密码配置支持加密吗?怎么配置?

复现

使用疑问,无需复现

期望

生产环境需要支持数据库密码加密

截图

无需截图

额外的细节和日志

  • 版本:1.5.1
  • 错误日志
  • 配置:官方release包,docker yml中配置数据库连接信息
  • 平台和操作系统 linux

hellotyty avatar Jul 21 '22 08:07 hellotyty

see https://github.com/apolloconfig/apollo/issues/3187

mghio avatar Jul 21 '22 13:07 mghio

see #3187

你好,我想问的是apollo三个应用本身的数据库密码明文存储。不是业务方应用在apollo里面配置的明文密码

hellotyty avatar Jul 22 '22 01:07 hellotyty

构造出 DataSource 出来即可,参考 TitanEntityManager

mghio avatar Jul 22 '22 11:07 mghio

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 avatar Jul 22 '22 12:07 mghio

@mghio This is a good point! We may embed Jasypt to achieve this.

nobodyiam avatar Jul 24 '22 01:07 nobodyiam

构造出 DataSource 出来即可,参考 TitanEntityManager

1.5.1版本我在common模块引入jasypt-spring-boot 2.1.2版本,环境变量配置jasypt.encryptor.password即可。

hellotyty avatar Jul 24 '22 08:07 hellotyty

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.

stale[bot] avatar Aug 31 '22 01:08 stale[bot]

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.

stale[bot] avatar Sep 07 '22 01:09 stale[bot]