jhipster application-prod.yml stores sensitive info on github

倖福魔咒の 提交于 2019-12-11 01:58:10

问题


I want to keep my smtp login information private. And its a hassle to edit application-prod.yml every time I have to deploy to production.

What is the correct method to avoid storing sensitive details in application-prod.yml on github ?


回答1:


Many different ways depending on where and how you deploy to:

  • Don't store application-prod.yml in git and don't package it in your jar
  • Don't store secrets in application-prod.yml, use environment variables or command line options. See Spring Boot doc.
  • Encrypt secrets using git-crypt in application-prod.yml
  • Store secrets in external Spring Cloud Config Server (e.g. JHipster Registry) or HashiCorp Vault

and many other ways...



来源:https://stackoverflow.com/questions/45650601/jhipster-application-prod-yml-stores-sensitive-info-on-github

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!