【发布时间】:2020-06-04 10:14:35
【问题描述】:
我已经开发了一些 Spring Boot 项目,并通过在 application.properties 中使用 spring.datasource.username 和 spring.datasource.password 启动了我的数据库连接
我曾尝试使用 jasypt 来加密这些属性,但我认为这不是一个好方法,因为我仍然需要在 application.properties 中存储未加密的 jasypt.encryptor.password。
我很难找到解决方案,因为来自互联网的结果只提到了 jasypt。
有没有更好的方法来保护用户名并通过 Spring Boot?
【问题讨论】:
-
保护在哪里?在属性文件中还是在与数据库的网络连接中?
-
我正在寻找保护(加密)用户名并传入属性文件的方法。
-
您在哪里运行您的应用程序? AWS? GCP?蔚蓝?
-
我在linux服务上部署了我的项目。我没有足够的条件使用网络服务
标签: spring-boot spring-security spring-data spring-batch spring-cloud-dataflow