News for hackers. Stuff that matters.
Re:Ask HN: How do you manage your SSH keys? by Blahah on Sunday March 13, 2016 @03:18AM (#11276603)
Related question: how do you manage service auth credentials for your code? E.g. client secrets for OAuth. I've never found a good solution.
Re:Ask HN: How do you manage your SSH keys? by Corrado on Sunday March 13, 2016 @04:51AM (#11276836)
The best solution I've found is git-crypt [0]. It uses a .gitattributes file and git-hooks to dynamically encrypt files whenever you push to any other user (i.e. Github). The result is that the files are plain text on your (or any other user with the password) computer but are encrypted when they leave your system.

I even leave the files encrypted during the build and deployment process and only decrypt them when they reach their final resting place. Using a combination of BASH and AWS's KMS (Kem Management Service) it wasn't too difficult and I feel much better about putting secret information in my source code. :)

[0] https://github.com/AGWA/git-crypt

Re:Ask HN: How do you manage your SSH keys? by sam_lowry_ on Sunday March 13, 2016 @08:37AM (#11277469)
Thumbs up. git-encrypt and its successor git-crypt are the best developer tools for storing password information.
Re:Ask HN: How do you manage your SSH keys? by skrebbel on Sunday March 13, 2016 @03:55AM (#11276670)
We have a secrets.json in the codebase which is gitignored and we ony commit a fake secrets_sample.json.

(The actual secrets are then ridiculously insecurely transferred between colleagues via whatever communication medium the people involved think of first. Open to suggestions there :-) )

Re:Ask HN: How do you manage your SSH keys? by flexd on Sunday March 13, 2016 @04:42AM (#11276794)
Use GPG/OpenPGP and encrypt it before sending it to your colleagues? https://gnupg.org/

Or use a zerobin instance somewhere (encrypts things clientside with AES 256) and pass them a link. https://zb.a.im/

Re:Ask HN: How do you manage your SSH keys? by Freak_NL on Sunday March 13, 2016 @05:45AM (#11277028)
Exactly! Just use OpenPGP! Once you've set up OpenPGP for all developers and operators that deal with secrets and production databases, it is a piece of cake to simply click the 'encrypt' button in the e-mail client whenever you need to share production log files or other potentially sensitive information with colleagues.

In an ideal world sensitive data never leaves the production environment or the machine of the developer or operator working on it, but sometimes things break down, and you need to share information to find out what went wrong, as soon as possible, with colleagues who are not necessarily physically nearby. It is best to have these tools set up and part of your work flow when you do need them.

Re:Ask HN: How do you manage your SSH keys? by Corrado on Sunday March 13, 2016 @04:52AM (#11276843)
Get everyone to sign on with Keybase.io and make GPG encryption easy (and fun!) for all. I really, really like Keybase for things like this and am trying to encourage all of my teammates to sign up, or at least use GPG encryption.

NOTE: If anyone needs an invite to Keybase.io, email me; I still have a couple left. :)

Re:Ask HN: How do you manage your SSH keys? by edoceo on Sunday March 13, 2016 @02:48PM (#11278822)
Please! I've been on the list what seems forever!
Re:Ask HN: How do you manage your SSH keys? by sp4nx on Sunday March 13, 2016 @02:12PM (#11278684)
Hi, Still have any invites left?
Re:Ask HN: How do you manage your SSH keys? by Blahah on Monday March 14, 2016 @12:12PM (#11283656)
I do - email in profile if you want one
Re:Ask HN: How do you manage your SSH keys? by reader_1000 on Sunday March 13, 2016 @05:11AM (#11276923)
John Resig described a way to store secret files in source control here [1]. But there is still a problem transferring encryption password securely.

[1] http://ejohn.org/blog/keeping-passwords-in-source-control/