Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle private files in IPFS #183

Closed
Ekleog opened this issue Jun 4, 2018 · 1 comment
Closed

Handle private files in IPFS #183

Ekleog opened this issue Jun 4, 2018 · 1 comment

Comments

@Ekleog
Copy link

Ekleog commented Jun 4, 2018

So I think one thing that's hugely missing for some applications of IPFS is the possibility to handle private files: files that one would be allowed to access only if they knew the hash. Or maybe encrypted files (handled transparently at the IPFS client level)

For the example of application of IPFS that I'm thinking about: github is about to be bought by microsoft. If people wanted to switch to git-remote-ipfs, then there'd be a need for:

  1. git servers that support pinning repositories on behalf of their users
  2. private git repositories
  3. a nice webui over all of this (plus some stuff over eg. XMPP / matrix.org for issues / PRs etc.)

The one thing that I think needs action from the IPFS team here is private files. This would also account for backups: I'd very much like to push my backups on IPFS and just have a few servers pinning them, it'd be so much simpler. But having to handle encryption etc. by hand is a PITA, especially when encryption wouldn't actually be needed if the swarm required already knowing the hash in order to fetch the file (and thus didn't leak the hash on each request), as anyways exchanges between IPFS clients are already encrypted (iirc).

One idea I'd have to implement it would be to just advertise the the hash of the current hash over IPFS, and when a client wants to download this hash-of-a-hash, request them to give the hash of the file. This, from a 2am-written-proposal point of view, looks approximately safe.

What do you think about it? Is private files a use case you'd want to support?

@Stebalien
Copy link
Member

So as to avoid further fragmenting this discussion, I'm going to close this in favor of ipfs/notes#270 (TL;DR, we agree but the answer is non-obvious and a mistake would be catastrophic).

You're proposal sounds like: ipfs/notes#63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants