6 ms·
Show HN: IPFessay – Publish uncensorable essays to IPFS
- jstanley 9y agoFor context: IPFS is a distributed content-addressable storage system that is web compatible. If you want to learn how to use IPFS directly (i.e. without using and trusting a public gateway), start with the Getting Started guide: https://ipfs.io/docs/getting-started/ https://ipfs.io/docs/getting-started/ (I'm not the OP, but) If you want to use IPFessay without installing IPFS, you can use it on my hardbin.com public writable gateway (most gateways are not writable) at: https://hardbin.com/ipfs/QmQUrYJ6sCSDV6duC4Db7U8NXZG3DpNrVF77XtcrbWYiJY https://hardbin.com/ipfs/QmQUrYJ6sCSDV6duC4Db7U8NXZG3DpNrVF7... and the sample essay: https://hardbin.com/ipfs/QmWFSuFDaApxK6DaBzEXdSXhb325fQY1hHn7Jc32DS77UK https://hardbin.com/ipfs/QmWFSuFDaApxK6DaBzEXdSXhb325fQY1hHn... And if you want your resulting essay to stick around, you can pay a service like ipfsstore.it to pin it for you: http://ipfsstore.it/ http://ipfsstore.it/ EDIT: It doesn't actually work on my public gateway because it uses the IPFS node API instead of the standard writable gateway API. I'll submit a pull request to make it use the normal writable gateway API tomorrow. EDIT2: StavrosK has updated it to use the gateway API! I updated the hash link so it does now work :)
- StavrosK 9y agoHey, thanks! Can we make it use your API by default, or perhaps as a fallback? I'm not sure what the difference between the Node API and the Gateway API is, I had to hack around this by reading the js-ipfs code. If there's a better way to interface with the gateway without including the entire js-ipfs 2.5 MB file, please let me know.
- jstanley 9y agoIt's not my API, it's the standard IPFS writable gateway API, documented here: https://discuss.ipfs.io/t/writeable-http-gateways/210 https://discuss.ipfs.io/t/writeable-http-gateways/210 And there's an example usage here: https://github.com/jes/hardbin/blob/master/js/hardbin.js#L25 https://github.com/jes/hardbin/blob/master/js/hardbin.js#L25 There is currently a bug which means you first need to DELETE the filename (in my case "content") that you are trying to replace if it already exists, but apart from that it is straightforward. I started fixing the bug here https://github.com/ipfs/go-ipfs/pull/3931 https://github.com/ipfs/go-ipfs/pull/3931 but ran out of steam - hopefully I'll continue soon.
- StavrosK 9y agoSorry, I meant your gateway. Thanks for the documentation, I had no idea this existed. I'll have a look, but if you already know how to use this API and would like to issue a MR, I'd be grateful. EDIT: I have updated it to use the Gateway API, thanks for letting me know.
- jstanley 9y agoExcellent! I updated my comment. > Here's the permanent, immutable IPFS link to your essay: > /ipfsQmZo1JgakWB2ZYrA75P3b7eZxvwP1vKpDw2y7WJJhj8j7p There's a "/" missing in here :)
- StavrosK 9y agoFixed, thanks! I have taken the liberty of linking things to hardbin.com, including the IPNS link: https://hardbin.com/ipns/QmSWnBwMKZ28tcgMFdihD8XS7p6QzdRSGf71cCybaETSsU/ https://hardbin.com/ipns/QmSWnBwMKZ28tcgMFdihD8XS7p6QzdRSGf7... Thanks for your help!
- dublinben 9y agoIPFS isn't "uncensorable" and shouldn't be promoted as such. Nodes must openly host your content for it to be available in the network.
- jstanley 9y agoEverybody on the network is a node. As long as anybody who is hosting the content (even implicitly, in their cache) is online, it remains reachable.
- Klathmon 9y agoDoesn't that create some legal issues? By viewing some of these IPFS links higher up in the thread am I "distributing" their contents in the eyes of the law?
- jstanley 9y agoUnlikely. Even if you saw something "bad", you have a perfectly reasonable explanation. I don't think it'll be a problem.
- deleted 9y ago[deleted]
- roywiggins 9y agoI mean, people have had doors kicked down for operating Tor exits. http://www.npr.org/sections/alltechconsidered/2016/04/04/472992023/when-a-dark-web-volunteer-gets-raided-by-the-police http://www.npr.org/sections/alltechconsidered/2016/04/04/472... > Seattle police spokesman Sean Whitcomb says the department understands how Tor relays work, and they knew Robinson was a Tor host. > "Knowing that, moving in, it doesn't automatically preclude the idea that the people running Tor are not also involved in child porn," Whitcomb says. "It does offer a plausible alibi, but it's still something that we need to check out."
- danieldk 9y ago
- TazeTSchnitzel 9y agoThese are only as “uncensorable” as any other IPFS object, right? Which is to say, not very. IPFS isn't even encrypted right now.
- StavrosK 9y agoYes, they are. Although, how is IPFS censorable? As long as you can connect to a node, you can retrieve its content. You'd have to prevent connection to the entire network to censor something (minus the encryption that you correctly stated).
- TazeTSchnitzel 9y ago> You'd have to prevent connection to the entire network to censor something That's not necessary if you can perform deep packet inspection or a MITM attack on IPFS traffic, which there's nothing to stop you doing right now.
- jstanley 9y agoVery soon it will be able to work over TOR hidden services.
- kefka 9y agoIt already does. Check out OpenBazaar's patches that include Tour and I2P functionality.
- jstanley 9y agoThat's what I was referring to: their Tor support is not in mainline IPFS yet, AFAIK, although it should be soon.
- kefka 9y agoYeah, primarily, OpenBazaar did it a way, and the #ipfs team in freenode isn't sure if that's the best way. It primarily has to do with Kadmelia and DHT. How does one consider an adapter or transit to IPFS as a "secure don't leak other addresses"? Does one run a secure IPFS for Tor and I2P? Should it be integrated with a flag on those interfaces? The IPFS team wanted to get everything else settled, protocol-wise before going down the idea of secured, and hidden protocols, given IPFS's propensity of splattering all interfaces through it (even unroutable internal network addresses).
- VMG 9y agoI don't think "essays" are in great danger of being censored on the internet.
- StavrosK 9y agoCall me a romantic!
- sp332 9y agoGermany has been raiding homes over Facebook posts. Right now they're considering a law to fine social media companies who don't remove certain posts within 24 hours. https://www.nytimes.com/2017/06/20/world/europe/germany-36-accused-of-hateful-postings-over-social-media.html https://www.nytimes.com/2017/06/20/world/europe/germany-36-a... Twitter already blocks known Nazi accounts in certain countries. https://twitter.com/map/status/869594711991963653 https://twitter.com/map/status/869594711991963653
- StavrosK 9y agoAnd you don't have true freedom of speech unless you allow speech you disagree with... I wonder how we got to the current "speech is free unless you're someone we don't like" society, and I say this as someone who dislikes Nazis. I want to write a post on tolerance one of these days, and how tolerating things you like isn't really tolerance.
- schoen 9y ago> how tolerating things you like isn't really tolerance This idea was presented in section 1 of https://slatestarcodex.com/2014/09/30/i-can-tolerate-anything-except-the-outgroup/ https://slatestarcodex.com/2014/09/30/i-can-tolerate-anythin...
- StavrosK 9y agoYes, I had read that, it's a very interesting piece. I had some more thoughts on the matter, but that article is definitely worth a read.
- ysleepy 9y agoDoes it enforce Cross-Origin Policies? Since the addresses are just path components and not subdomains this may be an issue. It's just a feeling this might get relevant, especially with PUT/POST write API and so on. Even just running on localhost might pose issues.
- StavrosK 9y agoDoes what enforce it? The browser does, that's why you need to set CORS on your local node for it to work. What's the scenario you're thinking of?
- eriknstr 9y agoSo in order for this to work through a gateway, that gateway needs to set the CORS headers, or?
- jstanley 9y agoNo because you'll be fetching it from the gateway, and then writing to the same gateway. No cross-domain going on.
- eriknstr 9y agoBut then is it not a security problem that other IPFS apps retrieved through the same gateway will be seen by the browser as being of same origin?
- jstanley 9y agoYes, for now. There is code existing to set the Suborigin header, but browser support is limited, and I'm not even sure if that code is merged into mainline IPFS yet.
- ysleepy 9y agoDifferent authors and documents are considered part of the same domain since the tokens are just path elements. The whole IPFS gateway might be considered one big domain. So javascript in an essay can access/put the API. I didn't really look into it too much, just wanted to give a pointer that this might need to be considered. In the sense that it might have security implications.
- amelius 9y agoStarting from May 18, 2018, the EU will enforce "the right to be forgotten". Will it be illegal to run IPFS servers within the EU?
- sergiosgc 9y agoThe right to be forgotten does not censure publication. It is censorship on search.
- momack2 9y agoExactly - the right to be forgotten only applies to the results of search engines when querying an individual's name, so publishing or hosting "forgotten" content wouldn't be illegal - https://en.wikipedia.org/wiki/Right_to_be_forgotten https://en.wikipedia.org/wiki/Right_to_be_forgotten
- diggan 9y agoRunning IPFS by itself does not mean you're hosting all content in the IPFS network. Rather, you need to explicitly agree to share content for it to be served. If you are hosting certain content, I guess someone can approach the node owner and request you to take the content offline. But nodes outside EU could still host the content.
- StavrosK 9y ago> Rather, you need to explicitly agree to share content for it to be served. Hmm, how do you do that? My node is sharing all content in its cache by default, AFAICT.
- diggan 9y agoAccessing content puts it in the cache, which would be removed when `ipfs repo gc` is run (or automatically at certain points). However, content that is pinned will survive the GC, which is the explicit approval of content that should be seeded for as long as the node exists (or until you run `ipfs pin rm $HASH && ipfs repo gc`)
- camdenlock 9y agoSo, is IPFS more than Freenet + a fresh coat of 2017 paint?
- diggan 9y agoYeah, I would say the biggest difference is in how content gets reshared. With Freenet, content gets reshared by nodes as soon as it enters the network, and users are unaware of what content exactly they are sharing. While IPFS is not implicitly pushing content but nodes needs to request content and then reshare it.
- STRML 9y agoThis is very important, because it removes some of the most prevalent criticisms about Freenet. If you don't agree with some content (re: legality or any reason you wish), don't access it/share it. Freenet doesn't give you that choice, but IPFS does.
- deleted 9y ago[deleted]