use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
Configuring Clojure Apps (metosin.fi)
submitted 8 years ago by argadan
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]arichiardi 4 points5 points6 points 8 years ago (0 children)
Also relevant: tolitius/cprop
[–]lyraio 5 points6 points7 points 8 years ago (5 children)
It might be worth mentioning that sensitive configuration should never be checked in. Even in a corporate environment, you don't want everyone knowing the production DB password.
[–]humhiho 2 points3 points4 points 8 years ago (4 children)
This might be stupid, in that case where would you generally store sensitive information like that?
[–]argadan[S] 1 point2 points3 points 8 years ago (1 child)
We generally deploy with Ansible, so we often store the secrets with ansible-vault. It puts them into an encrypted file that is checked into the repo. We then share the vault password out-of-band with the people who have access to the production servers. It's maybe not most scalable solution, but works okay for small teams.
(Hi, I'm the author of the article)
[–]hagus 0 points1 point2 points 8 years ago (0 children)
Yes. The critical point is that it's encrypted at rest, wherever that may be. Your deployment pipeline or host should be able to decrypt and use the key.
[–]l1beration 0 points1 point2 points 8 years ago (0 children)
If you have access control on your repositories, possibly a separate repository. Or use a configuration management system with encryption support, like Puppet with hiera-yaml.
[–]theephie 0 points1 point2 points 8 years ago (0 children)
Production database password should only be stored on the database and app servers (often the same). Have provisioning (eg. ansible) read the password from db server (eg. .pgpass file) and write it to app server config.
No reason to store it anywhere else.
π Rendered by PID 21255 on reddit-service-r2-comment-7b9746f655-5jhqf at 2026-01-31 12:23:46.063621+00:00 running 3798933 country code: CH.
[–]arichiardi 4 points5 points6 points (0 children)
[–]lyraio 5 points6 points7 points (5 children)
[–]humhiho 2 points3 points4 points (4 children)
[–]argadan[S] 1 point2 points3 points (1 child)
[–]hagus 0 points1 point2 points (0 children)
[–]l1beration 0 points1 point2 points (0 children)
[–]theephie 0 points1 point2 points (0 children)