Live data from Hacker News

Google Search: Inurl:server Filetype:key “-----BEGIN RSA PRIVATE KEY-----”

google.co.uk

41–50 of 60 posts

Re: Google Search: Inurl:server Filetype:key “-----BEGIN RSA PRIVATE KEY-----”

#41
post #2

Hmmm my idea would be "Hello from github, We detected that you uploaded credentials to NAME_OF_REPO. We strongly advise against this as it allows attackers to easily gain unauthorized access to your software and infrastructure. Have a look at this blog where we discuss alternatives" EDIT: Just to be clear, I'm not suggesting a ban at all, just a friendly email in response to commits that introduce credentials to publ…

I know you mean well but no charge should be introduced to mitigate against this stupidity. You are (probably correctly) assuming that the data in question is genuine. Nonetheless it is none of our business. rm -rf /* does not contain a warning message and that is the way it should be.

Misleading? Because "rm -rf /" does give a warning. From info rm:

  `--preserve-root'
       Fail upon any attempt to remove the root directory, `/', when used
       with the `--recursive' option.  This is the default behavior.

Re: Google Search: Inurl:server Filetype:key “-----BEGIN RSA PRIVATE KEY-----”

#43
post #41

Earlier quoted context omitted.

I know you mean well but no charge should be introduced to mitigate against this stupidity. You are (probably correctly) assuming that the data in question is genuine. Nonetheless it is none of our business. rm -rf /* does not contain a warning message and that is the way it should be.

Misleading? Because "rm -rf /" does give a warning. From info rm: `--preserve-root' Fail upon any attempt to remove the root directory, `/', when used with the `--recursive' option. This is the default behavior.

Yeah long ago it was not to be the case and rm would happily gobble /, but it started with Sun adding protection. It's been the default in GNU coreutils (hence the vast majority of Linux distros) since 2006.

Re: Google Search: Inurl:server Filetype:key “-----BEGIN RSA PRIVATE KEY-----”

#44

Google lost its mind when I clicked this link. Signed me out, turned on SafeSearch and threw up some privacy notice dialog at the top of the page.

Because it's google.co.uk, not the one you usually use.

Interesting. Weird response to something that doesn't seem that rare, like someone linking you to the mobile version of a page, just linking you to a different Google culture.

Re: Google Search: Inurl:server Filetype:key “-----BEGIN RSA PRIVATE KEY-----”

#45
post #2

Hmmm my idea would be "Hello from github, We detected that you uploaded credentials to NAME_OF_REPO. We strongly advise against this as it allows attackers to easily gain unauthorized access to your software and infrastructure. Have a look at this blog where we discuss alternatives" EDIT: Just to be clear, I'm not suggesting a ban at all, just a friendly email in response to commits that introduce credentials to publ…

Is there a disadvantage to banning private keys in public repos?

Test keys, example keys for documentation, etc.

I'd be all for an optional, branch protection-like feature though.

Re: Google Search: Inurl:server Filetype:key “-----BEGIN RSA PRIVATE KEY-----”

#46

Earlier quoted context omitted.

Because it's google.co.uk, not the one you usually use.

Interesting. Weird response to something that doesn't seem that rare, like someone linking you to the mobile version of a page, just linking you to a different Google culture.

Europe's privacy laws.

Re: Google Search: Inurl:server Filetype:key “-----BEGIN RSA PRIVATE KEY-----”

#47

Earlier quoted context omitted.

Is there a disadvantage to banning private keys in public repos?

Test keys, example keys for documentation, etc. I'd be all for an optional, branch protection-like feature though.

Is there a problem generating them? It's essentially just a single ‘ssh-keygen’ command, see eg:

https://github.com/libguestfs/libguestfs/blob/master/p2v/Mak...

Re: Google Search: Inurl:server Filetype:key “-----BEGIN RSA PRIVATE KEY-----”

#49
post #23

It's worth pointing out that some of these are configuation examples, illustrations of how to set something up. (Though of course that carries the risk that less thorough users just copy-paste that into production and call it a day.)

Came here to say this, I have a public "example" repository my clients use for reference that has a "fake" public/private key pair.

Re: Google Search: Inurl:server Filetype:key “-----BEGIN RSA PRIVATE KEY-----”

#50
post #38

First link goes to someone's github named Jimbo, a portly PHP guy from Austin, TX. I apologize for saying this, but... so far, this is violating no stereotypes

One link is to https://github.com/SUSE/Portus/blob/master/vagrant/conf/ca_b... the key is still in google cacke...

It's also still in the repo, as https://github.com/SUSE/Portus/blob/master/examples/developm... — not sure why the vagrant development key that (presumably) would never be used outside of a local VM would be an issue.
Post reply on HN