Live data from Hacker News

Code Search API

github.com

11–20 of 24 posts

Re: Code Search API

#12
post #7

Looks good. Hopefully someone will write something to automagically search for unintentionally exposed sensitive files and notify the repo owner - when the "human" version of Code Search came out, a lot of private keys and other such things were discovered.

I'm not sure I want automated bots contacting me through github.

Even if it's letting you know your id_rsa file and ~/.ssh/config is exposed? I know I'd want to know...

Re: Code Search API

#14

Looks good. Hopefully someone will write something to automagically search for unintentionally exposed sensitive files and notify the repo owner - when the "human" version of Code Search came out, a lot of private keys and other such things were discovered.

The other possibility is that someone creates a malicious service that harvests and tries connecting using those keys. Scary indeed.

People leave private keys in repos all the time. I'm pretty sure this talk goes over it pretty well. https://www.youtube.com/watch?v=AwUJ9vpR7Vg

Re: Code Search API

#16

Can't wait for a code completion editor plugin based off of this API.. 20 requests per minute isn't too bad.

What do you have in mind? I'm not seeing a good use case.

There are already really good ways to do that which don't involve making connections to remote servers.

Re: Code Search API

#17

Can't wait for a code completion editor plugin based off of this API.. 20 requests per minute isn't too bad.

What do you have in mind? I'm not seeing a good use case. There are already really good ways to do that which don't involve making connections to remote servers.

I suppose there are already templating abilities written into the popular code editors, but something that maybe takes the first two or three lines of what you've written (maybe a common JDBC connection style block) and identifies it as such. I'm not sure if it would be incredibly useful but it would be interesting to see what came of it.

Re: Code Search API

#18
post #7

Looks good. Hopefully someone will write something to automagically search for unintentionally exposed sensitive files and notify the repo owner - when the "human" version of Code Search came out, a lot of private keys and other such things were discovered.

I'm not sure I want automated bots contacting me through github.

Malicious bots don't care if there is an API. They can screen scrape easily.

Re: Code Search API

#19
post #9
post #7

Earlier quoted context omitted.

I'm not sure I want automated bots contacting me through github.

Why not? Serious question.

When I searched Github it seemed like most of the supposedly leaked passwords were actually examples or placeholders and not a problem.

It would be one thing if Github ran (or at least sanctioned) a feature that warned you of possible security problems, but I don't think I'd like potentially multiple, poorly-coded bots going around messaging repo owners.

Re: Code Search API

#20
To me, Github search is kinda useless. When I search for anything Android related (i.e. usage search for some framework type), I get a billion copies of the main Android source. The signal to noise ratio is almost 0..
Post reply on HN