Where to store database credentials in a web app?

后端 未结 8 1429
离开以前
离开以前 2021-02-07 08:28

I\'m wondering what techniques you use to store the database credentials for your application. I\'m specifically concerned with java webapps, but I don\'t think there\'s any ne

8条回答
  •  清歌不尽
    2021-02-07 09:08

    For asp.net:

    I store global parameters such as the connection string and repository paths in the Registry and then a reference to the registry entry in the web.config.

    The main reason being that I often find I have to write a stand alone executable to run background tasks and other automated features that require access to the same parameters. Therefore keeping everything that is truly global in one easily accessible place makes for an easier life.

提交回复
热议问题