Live data from Hacker News

Tell HN: Github has dozens of public s3 passwords

news.ycombinator.com

21–30 of 31 posts

Re: Tell HN: Github has dozens of public s3 passwords

#21
Might be worth setting up a git hook to scan your commits for sensitive data.

Of course you'll need to include that sensitive data in the script, though the first few characters of AWS credentials should be unique enough.

I thought about setting up something similar for networking. If a packet contains my password in cleartext then pop up a warning allowing/denying (denying would have to force the connect to close, I guess). Might be too much overhead though.

Re: Tell HN: Github has dozens of public s3 passwords

#22
post #15

Rather than store passwords or sensitive config data in a file I'll usually try to store them in an environment variable. Heroku has a little guide on this: http://docs.heroku.com/config-vars

I use a similar strategy: http://trevorturk.com/2009/06/25/config-vars-and-heroku/ ...this kind of thing doesn't have to be Heroku-specific, though.

Yup, symlinking config files after deploy is the approach I use. Thanks for the Cap task to set things up; at the rate I setup new projects, manually copying those files was getting old :)

Re: Tell HN: Github has dozens of public s3 passwords

#24
post #17

There is a business opportunity here. Managing credentials and secrets is (passwords, private certs, etc) is hard. Making that process turnkey, secure and easy would be useful.

I'm not sure it's that hard.

You can use any number of very low-barrier strategies to solve this. One that was mentioned a few times in this thread is to use environment variables. Personally I just put a {whatever}.yml or similar in my project tree somewhere and throw it in .gitignore.

I can't imagine a process that starts with "go to westorecredentials.com and sign up..." being any easier. Willing to be surprised :)

Re: Tell HN: Github has dozens of public s3 passwords

#25
My God, I can't believe I left it there. While I was developing a while ago I had put it there and completely forgot to remove it. What a costly mistake this could've been or even is.

Thank you, kabuks, so much for noticing this. I have changed my S3 key pair and am getting to cleaning up my git commits.

My God ! But thanks so much.

Re: Tell HN: Github has dozens of public s3 passwords

#26

There is a "message" button on each github user page. I just sent this to a few people (including someone who had forked one of my projects and added their S3 keys to a config file): Noticed you have your Amazon S3 keys out in the open on github. You might want to remove those config files from your repository as described in the thread here: http://news.ycombinator.com/item?id=1574211 -Pete

Remove and change at Amazon, as the values could still be floating around in fetches, caches, archives, indexes, etc. for a while.

Re: Tell HN: Github has dozens of public s3 passwords

#27
post #26

There is a "message" button on each github user page. I just sent this to a few people (including someone who had forked one of my projects and added their S3 keys to a config file): Noticed you have your Amazon S3 keys out in the open on github. You might want to remove those config files from your repository as described in the thread here: http://news.ycombinator.com/item?id=1574211 -Pete

Remove and change at Amazon, as the values could still be floating around in fetches, caches, archives, indexes, etc. for a while.

And still cached in their search cache

Re: Tell HN: Github has dozens of public s3 passwords

#28
post #17

There is a business opportunity here. Managing credentials and secrets is (passwords, private certs, etc) is hard. Making that process turnkey, secure and easy would be useful.

I'm not sure it's that hard. You can use any number of very low-barrier strategies to solve this. One that was mentioned a few times in this thread is to use environment variables. Personally I just put a {whatever}.yml or similar in my project tree somewhere and throw it in .gitignore. I can't imagine a process that starts with "go to westorecredentials.com and sign up..." being any easier. Willing to be surprised :…

People are advocating not saving settings to source control. F-that, I want to be able to clone my repo and run the project without scp-ing an additional file around. A file, that by all rights should be part of the project.

Here's my solution - github 'extends' git somehow, so files can be marked private. Then, unless you have commit rights to that repo, you can't see the file's contents. So a public http checkouts lacks the secret password.

And because it's git, someone you give commit rights to is someone you trust. People you don't trust can just make their own repo.

Re: Tell HN: Github has dozens of public s3 passwords

#29

Earlier quoted context omitted.

I'm not sure it's that hard. You can use any number of very low-barrier strategies to solve this. One that was mentioned a few times in this thread is to use environment variables. Personally I just put a {whatever}.yml or similar in my project tree somewhere and throw it in .gitignore. I can't imagine a process that starts with "go to westorecredentials.com and sign up..." being any easier. Willing to be surprised :…

People are advocating not saving settings to source control. F-that, I want to be able to clone my repo and run the project without scp-ing an additional file around. A file, that by all rights should be part of the project. Here's my solution - github 'extends' git somehow, so files can be marked private. Then, unless you have commit rights to that repo, you can't see the file's contents. So a public http checkouts…

That sounds like too much software to me. What's with the aversion to scp? You only have to do it once per box you set up... There's something to be said for having GitHub do everything 1000% for you, but there's also something to the unix philosophy that would suggest git is good at the version control thing, and scp is good for the configuration-file-moving thing.

Re: Tell HN: Github has dozens of public s3 passwords

#30

Earlier quoted context omitted.

People are advocating not saving settings to source control. F-that, I want to be able to clone my repo and run the project without scp-ing an additional file around. A file, that by all rights should be part of the project. Here's my solution - github 'extends' git somehow, so files can be marked private. Then, unless you have commit rights to that repo, you can't see the file's contents. So a public http checkouts…

That sounds like too much software to me. What's with the aversion to scp? You only have to do it once per box you set up... There's something to be said for having GitHub do everything 1000% for you, but there's also something to the unix philosophy that would suggest git is good at the version control thing, and scp is good for the configuration-file-moving thing.

so... which version of the config file are you using?
Post reply on HN