I'm not sure that a password file is an optimal solution for this problem. Maybe
the 12 factors, and in particular the
config one, could give you some ideas.
Personally I think that credentials are environment-specific, not application-specific. So I'd place them in an external storage service (like a DB). Or, to make things simple, put them in a file somewhere in the system and load it through an environment variable (see 12 factors, III).
This is as simple as writing:
(load-passwords-from-file (System/getenv "PASSWORD_FILE"))
Hope it helps :)
Il giorno martedì 18 dicembre 2012 03:21:31 UTC+1, Marco Munizaga ha scritto:
I'm currently doing something like src/project/passwords.clj and git ignoring that, does anyone have a better solution? maybe a way to place the passwords.clj alongside project.clj in the root directory? Would this be possible through leiningen profiles?
Thanks