🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #88959

Re: INN DB over IPFS

#88959
From: Russ Allbery
Date: Fri, 07 Jan 2022 18:10
58 lines
3930 bytes
Jason Evans <jsevans@mailfence.com> writes:

> Right now with INN, one of the storage options is to save articles
> directly in /var/spool/news/articles. What if, in addition to saving
> articles there, the articles were also saved in IPFS so they could be
> retrieved by anyone who wanted a copy.

I'm not sure I understand what benefit IPFS offers for Usenet.

Looking over their front page, my impression of the problems that IPFS is
trying to solve is:

* Peer-to-peer distributed hash-addressable content archiving.
* Data versioning and unique identifiers via the hash.
* Tamper-resistence (again because everything is tied to a hash).

Usenet does not have the unique identifier problem; that's the message ID,
which already has to be unique for Usenet to work.  Usenet doesn't have a
data versioning problem; you're not supposed to ever modify an article
once it has been posted.  And everything on Usenet retrieves messages by
message ID or by newsgroup name, so the hash-addressable content storage
is kind of useless since no one has or cares about those hashes.
Meanwhile, you have a potential uniqueness problem for IPFS storage
because the Path, Xref, and some other headers vary by Usenet node, so you
need to apply some filter to the article before storing it in IPFS anyway
or you just break IPFS by storing multiple duplicates of every article.

The peer-to-peer thing is arguably interesting, except that this is
essentially what NNTP already does, with roughly equivalent efficiency, so
mostly what you're gaining here is adding nodes that are IPFS nodes but
not Usenet nodes to the archive network.  Which, okay, sure, and
admittedly setting up IPFS is probably a lot easier than setting up a news
server, but then how do you *use* those nodes to retrieve articles in any
useful way?

If we were designing Usenet today from scratch, there's a decent argument
to be made that message IDs should just be message hashes over a
canonicalized version of the message, which (mostly) avoids the problem of
how to generate good message IDs and also allows verification that the
message hasn't been modified (against which Usenet currently has no real
protection except speed of propagation).  And indeed there's nothing that
would stop Usenet software from starting to use hashes as message IDs now,
although because it's not guaranteed, it would need a lot of adoption
before you would get any reasonable integrity protection benefits.  But
the rest of IPFS feels like a generic implementation of functionality that
Usenet already has a more specialized implementation of, but with the
wrong storage keys so you would have to store external metadata to have
any hope of being able to do meaningful message retrieval.

I agree that it would be great to have more independent Usenet archives,
but simplicity says the easiest way to do that would be to find some
volunteers to run ordinary Usenet servers with infinite retention.

-- 
Russ Allbery (eagle@eyrie.org)             <https://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87wnjb8lja.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <sr9jts$gpn$1@theuse.news.theuse.net>

Show Full Headers
Complete Article Headers
Message-ID: <87wnjb8lja.fsf@hope.eyrie.org>
Subject: Re: INN DB over IPFS
Date: Fri, 07 Jan 2022 10:10:01 -0800
From: Russ Allbery <eagle@eyrie.org>
References: <sr9jts$gpn$1@theuse.news.theuse.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: hope.eyrie.org; logging-data="2728"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:ZquliAt10Iw+NHK/46htHFaoCnA=