public inbox for
Atom feed
From: Sergey Matveev <stargrave@stargrave•org>
Subject: Re: A few other features?
Date: Tue, 3 Aug 2021 13:57:47 +0300	[thread overview]
Message-ID: <YQkhRd/> (raw)
In-Reply-To: <>

[-- Attachment #1: Type: text/plain, Size: 2932 bytes --]


*** John Goerzen [2021-07-31 21:04]:
>One is error handling.

Yeah, that thing NNCP is completely lacking. Just logs and retries
forever until operator intervene with it. Definitely something has
to be done in that direction.

I do not think that packet's ordering can be "solved" easily. If we
will store some kind of sequence numbers in encrypted packet -- it is
unnecessary and unwilling metainformation leak. If we decrypt it and get
the plaintext packet, then it can contain some ordering information,
but... if it is already processing, then we should process it and store
on the disk, removing the encrypted packet, clearing out the spool

I met the problem of ordering with extensively used chunked files (most
of data I sent is chunked):
And "solve" it just by parsing the .nncp.meta file and waiting for all
.nncp.chunk* appearance. And only after that they are checksummed and
reassembled to the destination packet.

>One could request no notifications ever, notifications on
>processing with any kind of result, or notifications only for errors.  These
>notifications would be emailed back (and the address to send them to could
>be specified).

Also thought about that. But not sure about any kind of feedback error
channel, because of the complexity and possible metainformation leakage
(watching for the facts of feedbacked information sent back). Currently
I assume that NNCP networks are small enough and each time each operator
decides himself what to do, possibly manually sending email about
invalid/unexpected exec/whatever-packets.

>Secondly, reouting.  What if we supported, say, "partial source routing?"
>A - B - C - D

Exactly that use-case is already covered in 7.2.0 release. I just tested
it locally with [abcd] nodes to be sure.

>Finally, the commands for nncp-exec in nncp.hjson.  I think it would be
>really useful to be able to say "do not pass parameters to this program" (or
>maybe pass them as an environment variable instead of on the command line or
>something).  I'm using wrapper scripts for this purpose right now but just
>blocking them entirely could be nice for security.

Passing as environment variable (something like NNCP_ARG1, NNCP_ARG2
..., NNCP_ARGS=2) can complicate scripts forcing them to probably unset
those envvars before calling another command. Arguments are "local" for
just single command call. I think that using wrappers is just some kind
of necessary and completely ok thing to do. Someone probably want to
block the stdin entirely -- I do not think that NNCP should cover all
possible call-cases: flexible wrappers are for that.

>Thanks again for all you do, Sergey!

Glad it is useful!

Sergey Matveev (
OpenPGP: CF60 E89A 5923 1E76 E263  6422 AE1A 8109 E498 57EF

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2021-08-03 11:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-01  2:04 A few other features? John Goerzen
2021-08-03 10:57 ` Sergey Matveev [this message]
2021-08-03 20:22   ` John Goerzen
2021-08-04  8:19     ` Sergey Matveev