News for hackers. Stuff that matters.
Re:Show HN: Kite, copilot for programmers, available for Python by djsumdog on Tuesday March 28, 2017 @12:43PM (#13978168)
Does Kite still send all your code to Kite servers as you type? I remember that being an issue the last time someone talked about Kite on HN.

I'm find with an editor or sidekick that can search stack overflow or duckduckgo or google quickly with a hotkey-- maybe keep snippets you can tag and easily reference-- but sending all my code as I type to a web service is something I'm not willing to do and something most companies won't allow.

Re:Show HN: Kite, copilot for programmers, available for Python by srj55 on Tuesday March 28, 2017 @12:55PM (#13978287)
I would love to use this, but I'm not willing to send my code to Kite.com. Sounds great for open source projects!

Sorry.

Re:Show HN: Kite, copilot for programmers, available for Python by johndevor on Tuesday March 28, 2017 @01:33PM (#13978671)
They need to offer a downloadable version of everything. I won't use it for this reason as well.
Re:Show HN: Kite, copilot for programmers, available for Python by alexflint on Tuesday March 28, 2017 @01:28PM (#13978616)
(Copied from above.) Totally legit concern. when we started working on this we realized if we wanted to index tens of thousands of libraries, we wouldn't be able to ship the entire index along with the client. Hence the cloud-based architecture. We've thought a lot about privacy and written up our thoughts here: kite.com/security. The short answer is: we don't index anything on your computer that you don't explicitly ask us to, and our plan is to earn trust the hard (i.e. only) way: transparency, published policies, and a track record of good decision making.

One of the big things we've worked on over the past few months is giving users fine grained control of which files are indexed by kite:

- Kite only indexes directories that you have explicitly enabled

- You can create a .kiteignore file (same semantics as .gitignore) to exclude specific files / patterns.

Re:Show HN: Kite, copilot for programmers, available for Python by andy_ppp on Tuesday March 28, 2017 @01:32PM (#13978659)
Would it be possible to allow a # nokite at the end of lines; these would then have any strings scrambled. This allows me to know immediately that things aren't being sent to Kite rather than have to do a few checks before I write something secret.
Re:Show HN: Kite, copilot for programmers, available for Python by sroussey on Tuesday March 28, 2017 @01:54PM (#13978878)
Actually, it should just remove strings if it does not already.
Re:Show HN: Kite, copilot for programmers, available for Python by alexflint on Tuesday March 28, 2017 @02:38PM (#13979350)
Good idea - will look into it.
Re:Show HN: Kite, copilot for programmers, available for Python by mattmanser on Wednesday March 29, 2017 @04:56AM (#13984462)
Oh no, not tens of thousands of indexes! My 5 Mb hard-drive just couldn't handle it.
Re:Show HN: Kite, copilot for programmers, available for Python by srtjstjsj on Wednesday March 29, 2017 @01:17AM (#13983627)
> when we started working on this we realized if we wanted to index tens of thousands of libraries, we wouldn't be able to ship the entire index along with the client.

Why not? that's a _tiny_ amount of data for a modern computer.

Re:Show HN: Kite, copilot for programmers, available for Python by hasenj on Tuesday March 28, 2017 @01:53PM (#13978867)
How many GBs would the database take on a local machine? Wouldn't it be possible to pick and choose what libraries to include in it?

I'd rather have a few gigabytes on my machine than have all the code I write automatically in the cloud.

Re:Show HN: Kite, copilot for programmers, available for Python by rdslw on Thursday April 06, 2017 @03:36PM (#14053872)
I think this answer (which you used in few places here) does not address concerns people raised all over:

1) kite is useless (or at least substantially less useful) if you explicitly disable files/directories.

Example: Customer says: This fridge I bought, poisons my good. Company: If you don't put your food into fridge its not poisoned. Yeah, but it also not frozen afterwards, which was the reason for the fridge! And no files/directories/lines/whatever policy does solve that problem. Partially because of 2)

2) Human errors will kill this. Just google for number of problems around security tokens, sshkeys and other thing commited to github by mistake.

The only solution is LOCAL index only.

Re:Show HN: Kite, copilot for programmers, available for Python by askvictor on Tuesday March 28, 2017 @05:52PM (#13981061)
Why not just use .gitignore as a default (if local indexing is enabled)?
Re:Show HN: Kite, copilot for programmers, available for Python by hundchenkatze on Tuesday March 28, 2017 @01:13PM (#13978458)
I can't speak to whether they still send up all code as it's typed, but I think, for now, they're addressing this concern by offering Kite Enterprise, https://kite.com/enterprise which allows you to run kite on your servers.
Re:Show HN: Kite, copilot for programmers, available for Python by StyloBill on Tuesday March 28, 2017 @12:52PM (#13978262)
I think the answer to your question is :

"* Fine-grained privacy controls modeled after the .gitignore file format means that you can selectively and precisely decide which files and folders Kite indexes."

Re:Show HN: Kite, copilot for programmers, available for Python by Karunamon on Tuesday March 28, 2017 @01:14PM (#13978469)
Unfortunately, that means that a really simple app where a developer hardcoded something like an API key, and didn't put it in a separate file they told Kite to ignore, will get uploaded.

Any system that relies on people following best practices is doomed in the real world :(

Re:Show HN: Kite, copilot for programmers, available for Python by Cyph0n on Tuesday March 28, 2017 @01:23PM (#13978558)
You mean like Git?
Re:Show HN: Kite, copilot for programmers, available for Python by Karunamon on Tuesday March 28, 2017 @01:25PM (#13978573)
Git isn't generally configured to automatically upload your files as you type or as files are saved.

There are things like GitFS, but I imagine those aren't part of an average developer's workflow.

Re:Show HN: Kite, copilot for programmers, available for Python by Cyph0n on Tuesday March 28, 2017 @05:11PM (#13980763)
My point is that an inexperienced Git user can push their secrets to Github for example, just like a Kite user who doesn't specify a .kiteignore.
Re:Show HN: Kite, copilot for programmers, available for Python by Karunamon on Tuesday March 28, 2017 @06:05PM (#13981189)
My point is that it's a lot easier to happen accidentally when the upload happens automatically and without intervention. With git, you directly specify what files you're committing (with the .gitignore as an additional safety net) and when that commit happens. It's all manual.

If I'm testing an app and I want to hard code an API key for testing, and I'm using Github, it's not a problem. I have to explicitly commit that file. Now, I have to both remember that Kite uploads everything, and avoid using that workflow at all, and use the .kiteignore thing (which is another random dotfile in my repo, great).

Re:Show HN: Kite, copilot for programmers, available for Python by Cyph0n on Tuesday March 28, 2017 @06:43PM (#13981517)
Again, I go back to your whole issue with how an inexperienced user of Kite can easily shoot themselves in the foot. The same applies to Git: 'git add .' and push.
Re:Show HN: Kite, copilot for programmers, available for Python by anonymousjunior on Tuesday March 28, 2017 @11:28PM (#13983127)
Yes, you are correct in that an inexperienced Git user can mess up, I won't deny that. My issue here is that Kite requires you to proactively place a .kiteignore, before even whitelisting a directory. It also doesn't alert you that it's about to start indexing the files in the directory tree or that you need to add a .kiteignore to protect sensitive files before you whitelist them. At a minimum they should be respecting the existing .gitignore, and realistically they just be scrubbing all strings before sending any data.

I can 'git add .' and commit my life away, but that requires much more intention and explicitness than clicking enable on a prompt and continuing your standard workflow (ie: a simple 'vi super_seceret_file.py')

Re:Show HN: Kite, copilot for programmers, available for Python by waisbrot on Tuesday March 28, 2017 @01:58PM (#13978930)
You can run your own git repository (it's really easy). And most of the Git-service providers offer an "enterprise" version where you can self-host.
Re:Show HN: Kite, copilot for programmers, available for Python by Cyph0n on Tuesday March 28, 2017 @05:11PM (#13980758)
What happens when someone inexperienced pushes their SSH private key to Github? Isn't that same as not specifying a .kiteignore file?
Re:Show HN: Kite, copilot for programmers, available for Python by ino on Tuesday March 28, 2017 @06:43PM (#13981516)
To do that, you have to commit and push. With kite, you might not even realize it uploaded something it shouldn't have.
Re:Show HN: Kite, copilot for programmers, available for Python by Cyph0n on Tuesday March 28, 2017 @07:49PM (#13981983)
We're talking about inexperienced users, so it sounds pretty much the same to me. Case in point: go search for API keys on GitHub.
Re:Show HN: Kite, copilot for programmers, available for Python by Twirrim on Tuesday March 28, 2017 @04:58PM (#13980643)
That reads like "enabled by default, denied only on request"
Re:Show HN: Kite, copilot for programmers, available for Python by askvictor on Tuesday March 28, 2017 @05:51PM (#13981051)
Another post somewhere here from a kite Dev said that your code is only indexed of you explicitly allow it.
Re:Show HN: Kite, copilot for programmers, available for Python by hasenj on Tuesday March 28, 2017 @08:11PM (#13982117)
Does installing Kite and clicking "I agree" on a legalese dialog count as explicitly allowing it?