Well, but from other side app can use some external http api instead of mysql, config file will contain some api key in this case, and config file can contain some other passwords, from smtp server, for example. It's not possible to move all passwords in such files (and it is not good idea anyway). May be it's better to write more clear documentation about different environment' configs and use them as they should be used instead of implementing square wheel? 26.09.2011 0:12, David Precious пишет:
On Thursday 22 September 2011 22:35:20 Assaf Gordon wrote:
Hello Dancers,
Somewhat related to the "sensitive" config data in SCM" topic discussed recently, I would like to suggest the followng small patch to "Dancer::Plugin::Database" :
Instead of specifying "username/password" in your yml config file, I've added a new setting called "credentials". This one points to a simple text file that would contain the user name and password.
That sounds like a sensible idea - allowing the less sensitive config data in config.yml to be checked in to version control, without worrying about the database connection details being leaked.
Thanks for this idea and patch - sorry for the slow reply, I will get this new feature incorporated soon.
Cheers
Dave P
-- Best Regards, Nick Knutov http://knutov.com ICQ: 272873706 Voice: +7-904-84-23-130