News for hackers. Stuff that matters.
Re:Syncthing: Open Source Dropbox and BitTorrent Sync Replac... by ef4 on Monday May 12, 2014 @05:34PM (#7735540)
I like seafile too, but after doing some of my own review of the source (https://github.com/haiwen/seafile/issues/350) I'm not willing to trust it on the open internet.

For now I run seafile inside a private network behind a vpn. But I'd rather find an alternative with a better security story. Something from a team that can justify their cryptographic constructs in detail.

Re:Syncthing: Open Source Dropbox and BitTorrent Sync Replac... by icebraining on Monday May 12, 2014 @06:45PM (#7735838)
git-annex avoid all except (2), by simply encrypting each file using GnuPG, and applying an HMACSHA1 to the filenames.

http://git-annex.branchable.com/encryption/

Re:Syncthing: Open Source Dropbox and BitTorrent Sync Replac... by berdario on Tuesday May 13, 2014 @10:14AM (#7738220)
I tried to use git annex assistant: I can get files to be backed-up on a server, but when doing sync between 2 different machines it has never worked (I've been doing the xmpp-setup dance multiple times, and it's especially painful due to having 2factor auth enabled on google)

I'll have to try using plain git annex from the commandline to try to understand what is going wrong (I already used it to clean some repositories that the assistant was refusing to delete)

PS: I tried it with 2 machines in the same LAN (both linux... though one of the 2 distros had a slightly older version of the git-annex package)

Re:Syncthing: Open Source Dropbox and BitTorrent Sync Replac... by stinos on Tuesday May 13, 2014 @03:44AM (#7736939)
no doubt it would be my first choice if it had proper windows support, but last time I checked that was still lacking
Re:Syncthing: Open Source Dropbox and BitTorrent Sync Replac... by higherpurpose on Tuesday May 13, 2014 @02:19AM (#7736746)
SHA1?
Re:Syncthing: Open Source Dropbox and BitTorrent Sync Replac... by icebraining on Tuesday May 13, 2014 @02:21AM (#7736753)
It's configurable.

The default MAC algorithm to be applied on the filenames is HMACSHA1. A stronger one, for instance HMACSHA512, one can be chosen upon creation of the special remote with the option mac=HMACSHA512. The available MAC algorithms are HMACSHA1, HMACSHA224, HMACSHA256, HMACSHA384, and HMACSHA512.

Re:Syncthing: Open Source Dropbox and BitTorrent Sync Replac... by gioele on Tuesday May 13, 2014 @08:27AM (#7737755)
Don't worry, git-annex uses SHA1 just as a checksum, not for cryptographic purposes.
Re:Syncthing: Open Source Dropbox and BitTorrent Sync Replac... by lugg on Monday May 12, 2014 @06:39PM (#7735809)
I dont get it, why is deduping at a chunk level important, can't it just take it as a tradeoff and dedupe at the file level, or does that have the same problems? And why exactly is deduping important for a personal use case, bandwidth is relatively cheap.

In any case, while I want security in these systems to avoid mass survey style attacks, I assume anything I put over the wire to be compromised at least potentially. I keep the kind of files that need that level of encryption on encrypted flash drives.

Re:Syncthing: Open Source Dropbox and BitTorrent Sync Replac... by enscr on Tuesday May 13, 2014 @02:07AM (#7736731)
If you are encrypting each file individually, you are still giving away the file names. Hence you use encrypted file containers. They benefit from block level deduplication. They can be large in size.
Re:Syncthing: Open Source Dropbox and BitTorrent Sync Replac... by icebraining on Tuesday May 13, 2014 @02:12AM (#7736740)
If you are encrypting each file individually, you are still giving away the file names. Hence you use encrypted file containers.

That doesn't follow - you can solve the problem without containers, e.g. by encrypting or hashing the filenames.

Containers protect the file sizes, but they lose the ability to selectively sync certain files to certain nodes.

Re:Syncthing: Open Source Dropbox and BitTorrent Sync Replac... by enscr on Tuesday May 13, 2014 @09:03AM (#7737897)
Hashing doesn't solve the problem completely. You are still giving away information about file count, size & hierarchy.

Regarding selective sync : you'll have to organize the files logically into containers. I think even Dropbox doesn't let you sync files selectively, you have to have content separated into folders.

I'm not saying that one is better than other, just giving an example of where de-duping at block level is needed as @lugg asked.

Re:Syncthing: Open Source Dropbox and BitTorrent Sync Replac... by icebraining on Tuesday May 13, 2014 @10:02AM (#7738170)
Hashing doesn't solve the problem completely. You are still giving away information about file count, size & hierarchy.

Sure; I was just talking about the file names. You can avoid the hierarchy part by transmitting it separately from the files in a secure way, though.

Regarding selective sync : you'll have to organize the files logically into containers. I think even Dropbox doesn't let you sync files selectively, you have to have content separated into folders.

git-annex does. You can implement rules to decide what files should be synced, which should be dropped locally, etc.

For example, an MP3 player running it might have a rule such as

  filename(*.mp3) or filename(*.ogg)
and it'll only sync those files, regardless of their directories.
Re:Syncthing: Open Source Dropbox and BitTorrent Sync Replac... by abus on Monday May 12, 2014 @09:56PM (#7736291)
Are there any issues you suspect Syncthing could suffer from?