]> Cypherpunks.ru repositories - nncp.git/blob - doc/news.texi
Intermediate .nock packets step
[nncp.git] / doc / news.texi
1 @node News
2 @unnumbered News
3
4 See also this page @ref{Новости, on russian}.
5
6 @node Release 6.1.0
7 @section Release 6.1.0
8 @itemize
9
10 @item
11 Optimization: most commands do not keep opened file descriptors now.
12 Previously you can exceed maximal number of opened files if you have got
13 many packets in the spool directory.
14
15 @item
16 Optimization: do not close file descriptor of the file we download
17 online. Previously each chunk lead to expensive open/close calls.
18
19 @item
20 Online downloaded files are saved with @file{.nock} (non-checksummed)
21 suffix, waiting either for @command{nncp-check}, or online daemons to
22 perform integrity check.
23
24 @end itemize
25
26 @node Release 6.0.0
27 @section Release 6.0.0
28 @itemize
29
30 @item
31 Log uses human readable and easy machine parseable
32 @url{https://www.gnu.org/software/recutils/, recfile} format for the
33 records, instead of structured RFC 3339 lines. Old logs are not readable
34 by @command{nncp-log} anymore.
35
36 @item
37 @option{-autotoss*} option workability with @command{nncp-daemon}'s
38 @option{-inetd} mode.
39
40 @item
41 Call's @option{when-tx-exists} allows to make a call only when outbound
42 packets exists. Combined with seconds-aware cron expression that can be
43 used as some kind of auto dialler.
44
45 @item
46 @command{nncp-cronexpr} command allows you to check validity and
47 expectations of specified cron expression.
48
49 @end itemize
50
51 @node Release 5.6.0
52 @section Release 5.6.0
53 @itemize
54
55 @item
56 @option{-autotoss*} option runs tosser not after the call, but every
57 second while it is active.
58
59 @item
60 @option{autotoss}, @option{autotoss-doseen},
61 @option{autotoss-nofile}, @option{autotoss-nofreq},
62 @option{autotoss-noexec}, @option{autotoss-notrns} options available in
63 @option{calls} configuration section. You can configure per-call
64 automatic tosser options.
65
66 @item
67 Use vendoring, instead of @env{GOPATH} overriding during tarball
68 installation, because current minimal Go's version is 1.12 and it
69 supports modules.
70
71 @end itemize
72
73 @node Release 5.5.1
74 @section Release 5.5.1
75 @itemize
76
77 @item
78 Respect for @env{BINDIR}, @env{INFODIR} and @env{DOCDIR} environment
79 variables in @file{config} during installation.
80
81 @end itemize
82
83 @node Release 5.5.0
84 @section Release 5.5.0
85 @itemize
86
87 @item
88 Bugfixes in @command{nncp-call(er)}/@command{nncp-daemon},
89 @command{nncp-bundle} and @command{nncp-stat}.
90
91 @item
92 @command{nncp-rm} has @option{-dryrun} and @option{-older} options now.
93
94 @item
95 @command{nncp-exec} has @option{-use-tmp} and @option{-nocompress}
96 options now. Uncompressed packets are not compatible with previous NNCP
97 versions.
98
99 @item
100 @command{nncp-call}, @command{nncp-caller} and @command{nncp-daemon} commands
101 have @option{-autotoss*} options for running tosser after call is ended.
102
103 @item
104 Updated dependencies. Minimal required Go version is 1.12.
105
106 @end itemize
107
108 @node Release 5.4.1
109 @section Release 5.4.1
110 @itemize
111
112 @item
113 Fixed @code{SENDMAIL} variable usage during the build.
114
115 @end itemize
116
117 @node Release 5.4.0
118 @section Release 5.4.0
119 @itemize
120
121 @item
122 Updated dependencies.
123
124 @item
125 Build system is moved from Makefiles to @url{http://cr.yp.to/redo.html, redo}.
126 This should not influence package maintainers, because minimal @command{redo}
127 implementation is included in tarball.
128
129 @end itemize
130
131 @node Release 5.3.3
132 @section Release 5.3.3
133 @itemize
134
135 @item
136 More various error checks.
137
138 @item
139 Updated dependencies.
140
141 @end itemize
142
143 @node Release 5.3.2
144 @section Release 5.3.2
145 @itemize
146
147 @item
148 Fixed incorrect logic of @option{onlinedeadline} timeout, where
149 connection won't take into account incoming packets events and will
150 forcefully disconnect.
151
152 @end itemize
153
154 @node Release 5.3.1
155 @section Release 5.3.1
156 @itemize
157
158 @item
159 Fixed @option{onlinedeadline} workability with call addresses that use
160 external commands (@verb{#"|somecmd"#}).
161
162 @item
163 @command{nncp-stat} has @option{-pkt} option displaying information
164 about each packet in the spool.
165
166 @end itemize
167
168 @node Release 5.3.0
169 @section Release 5.3.0
170 @itemize
171
172 @item
173 Progress messages contain prefix, describing the running action.
174
175 @item
176 Fixed not occurring handshake messages padding.
177
178 @item
179 Finish all SP protocol related goroutines, less memory leak.
180
181 @item
182 SP protocol generates less socket write calls, thus generating less TCP
183 packets.
184
185 @item
186 Check @option{onlinedeadline} and @option{maxonlinetime} options every
187 second, independently from socket reads (up to 10 seconds).
188
189 @item
190 Once per minute, if no other traffic exists, PING packets are sent in
191 SP-connection. That allows faster determining of connection unworkability.
192
193 @item
194 @command{nncp-toss} uses lock-file to prevent simultaneous tossing.
195
196 @end itemize
197
198 @node Release 5.2.1
199 @section Release 5.2.1
200 @itemize
201
202 @item
203 Fixed SP protocol error handling, sometimes causing program panic.
204
205 @end itemize
206
207 @node Release 5.2.0
208 @section Release 5.2.0
209 @itemize
210
211 @item
212 Most commands by default show oneline operations progress.
213 @option{-progress}, @option{-noprogress} command line options,
214 @option{noprogress} configuration file option appeared.
215
216 @item
217 Fixed incorrect @command{nncp-check} command return code, that returned
218 bad code when everything is good.
219
220 @item
221 Free disk space check during @command{nncp-bundle -rx} call.
222
223 @end itemize
224
225 @node Release 5.1.2
226 @section Release 5.1.2
227 @itemize
228
229 @item
230 @strong{Critical} vulnerability: remote peers authentication could lead
231 to incorrect identification of remote side, allowing foreign encrypted
232 packets downloading.
233
234 @item
235 Bugfix: private and public Noise keys were swapped in newly created
236 configuration files, that lead to inability to authenticate online peers.
237
238 @item
239 Explicit directories fsync-ing for guaranteed files renaming.
240
241 @end itemize
242
243 @node Release 5.1.1
244 @section Release 5.1.1
245 @itemize
246
247 @item
248 Fixed workability of @command{nncp-file} with @option{-chunked 0} option.
249
250 @end itemize
251
252 @node Release 5.1.0
253 @section Release 5.1.0
254 @itemize
255
256 @item
257 @command{nncp-file} can send directories, automatically creating pax
258 archive on the fly.
259
260 @item
261 Free disk space is checked during outbound packets creation.
262
263 @item
264 @option{freq}, @option{freqminsize}, @option{freqchunked} configuration
265 file options replaced with the structure:
266 @option{freq: @{path: ..., minsize: ..., chunked: ...@}}.
267
268 @item
269 Added @option{freq.maxsize} configuration file option, forbidding of
270 freq sending larger than specified size.
271
272 @item
273 Ability to notify about successfully executed commands (exec) with
274 @option{notify.exec} configuration file option.
275
276 @end itemize
277
278 @node Release 5.0.0
279 @section Release 5.0.0
280 @itemize
281
282 @item
283 @strong{Incompatible} configuration file format change: YAML is
284 replaced with Hjson, due to its simplicity, without noticeable lack
285 of either functionality or convenience.
286
287 @item
288 @strong{Incompatible} plain packet format changes. Older versions are
289 not supported. @code{zlib} compression is replaced with
290 @code{Zstandard}, due to its speed and efficiency, despite library
291 version is not mature enough.
292
293 @item
294 Ability to call remote nodes via pipe call of external command, not only
295 through TCP.
296
297 @item
298 @command{nncp-cfgnew} generates configuration file with many
299 comments. @option{-nocomments} option can be used for an old
300 behaviour.
301
302 @item
303 Duplicate filenames have @file{.CTR} suffix, instead of @file{CTR}, to
304 avoid possible collisions with @file{.nncp.chunkCTR}.
305
306 @item
307 Ability to override process umask through configuration file option.
308
309 @item
310 Files and directories are created with 666/777 permissions by default,
311 allowing control with @command{umask}.
312
313 @item
314 Updated dependencies.
315
316 @item
317 Full usage of go modules for dependencies management
318 (@code{go.cypherpunks.ru/nncp/v5} namespace is used).
319
320 @item
321 Forbid any later GNU GPL version autousage
322 (project's licence now is GNU GPLv3-only).
323
324 @end itemize
325
326 @node Release 4.1
327 @section Release 4.1
328 @itemize
329 @item Workability on GNU/Linux systems and Go 1.10 is fixed.
330 @end itemize
331
332 @node Release 4.0
333 @section Release 4.0
334 @itemize
335
336 @item
337 @strong{Incompatible} encrypted and eblob packet format change: AEAD
338 encryption mode with 128 KiB blocks is used now, because previously
339 @command{nncp-toss} did not verify encrypted packet's MAC before feeding
340 decrypted data to external command. Older versions are not supported.
341
342 @item
343 Available free space checking before copying in @command{nncp-xfer},
344 @command{nncp-daemon}, @command{nncp-call(er)}.
345
346 @item
347 @command{nncp-call} has ability only to list packets on remote node,
348 without their transmission.
349
350 @item
351 @command{nncp-call} has ability to transfer only specified packets.
352
353 @item
354 Workability of @option{xxrate} preference in @option{calls}
355 configuration file section.
356
357 @item
358 Dependant libraries are updated.
359
360 @item
361 Minor bugfixes.
362
363 @item
364 Begin using of @code{go.mod} subsystem.
365
366 @end itemize
367
368 @node Release 3.4
369 @section Release 3.4
370 @itemize
371 @item @command{nncp-daemon} can be run as @command{inetd}-service.
372 @end itemize
373
374 @node Release 3.3
375 @section Release 3.3
376 @itemize
377
378 @item
379 @command{nncp-daemon}, @command{nncp-call}, @command{nncp-caller} check
380 if @file{.seen} exists and treat it like file was already downloaded.
381 Possibly it was transferred out-of-bound and remote side needs to be
382 notifier about that.
383
384 @item
385 If higher priority packet is spooled, then @command{nncp-daemon} will
386 queue its sending first, interrupting lower priority transmissions.
387
388 @item
389 Simple packet rate limiter added to online-related tools
390 (@command{nncp-daemon}, @command{nncp-call}, @command{nncp-caller}).
391
392 @item
393 Ability to specify niceness with symbolic notation:
394 @verb{|NORMAL|}, @verb{|BULK+10|}, @verb{|PRIORITY-5|}, etc.
395
396 @item
397 Changed default niceness levels:
398 for @command{nncp-exec} from 64 to 96,
399 for @command{nncp-freq} from 64 to 160,
400 for @command{nncp-file} from 196 to 224.
401
402 @end itemize
403
404 @node Release 3.2
405 @section Release 3.2
406 @itemize
407 @item
408 @strong{Incompatible} @emph{bundle} archive format changes and
409 @command{nncp-bundle} workability with Go 1.10+. Bundles must be
410 valid tar archives, but Go 1.9 made them invalid because of long paths
411 inside. NNCP accidentally was dependant on that bug. Explicit adding of
412 @file{NNCP/} directory in archive restores workability with valid tar
413 archives.
414 @end itemize
415
416 @node Release 3.1
417 @section Release 3.1
418 @itemize
419 @item
420 Ability to disable relaying at all using @verb{|-via -|} command line option.
421 @end itemize
422
423 @node Release 3.0
424 @section Release 3.0
425 @itemize
426
427 @item
428 @strong{Incompatible} plain packet format changes. Older versions are
429 not supported.
430
431 @item
432 Ability to queue remote command execution, by configuring @option{exec}
433 option in configuration file and using @command{nncp-exec} command:
434     @itemize
435     @item
436     @command{nncp-mail} command is replaced with more flexible
437     @command{nncp-exec}. Instead of @verb{|nncp-mail NODE RECIPIENT|}
438     you must use @verb{|nncp-exec NODE sendmail RECIPIENT|}.
439     @item
440     @option{sendmail} configuration file option is replaced with
441     @option{exec}. @verb{|sendmail: [...]|} must be replaced with
442     @verb{|exec: sendmail: [...]|}.
443     @end itemize
444
445 @item
446 Ability to override @option{via} configuration option for destination
447 node via @option{-via} command line option for following commands:
448 @command{nncp-file}, @command{nncp-freq}, @command{nncp-exec}.
449
450 @item
451 Chunked files, having size less than specified chunk size, will be sent
452 as an ordinary single file.
453
454 @item
455 Exec commands are invoked with additional @env{NNCP_NICE} and
456 @env{NNCP_SELF} environment variables.
457
458 @item
459 Files, that are sent as a reply to freq, have niceness level taken from
460 the freq packet. You can set desired niceness during @command{nncp-freq}
461 invocation using @option{-replynice} option.
462
463 @item
464 @command{nncp-toss} command can ignore specified packet types during
465 processing: @option{-nofile}, @option{-nofreq}, @option{-noexec},
466 @option{-notrns}.
467
468 @item
469 @command{nncp-file} command uses
470 @option{FreqMinSize}/@option{FreqChunked} configuration file options
471 for @option{-minsize}/@option{-chunked} by default. You can turn this
472 off by specifying zero value.
473
474 @end itemize
475
476 @node Release 2.0
477 @section Release 2.0
478 @itemize
479
480 @item
481 @strong{Incompatible} encrypted/eblob packet format changes. Older
482 versions are not supported.
483
484 @item
485 Twofish encryption algorithm is replaced with ChaCha20. It is much more
486 faster. One cryptographic primitive less.
487
488 @item
489 HKDF-BLAKE2b-256 KDF algorithm is replaced with BLAKE2Xb XOF. Yet
490 another cryptographic primitive less (assuming that BLAKE2X is nearly
491 identical to BLAKE2).
492
493 @end itemize
494
495 @node Release 1.0
496 @section Release 1.0
497 @itemize
498
499 @item
500 @strong{Incompatible} encrypted packet format changes. Older versions
501 are not supported.
502
503 @item
504 @command{nncp-bundle} command can either create stream of encrypted
505 packets, or digest it. It is useful when dealing with
506 @code{stdin}/@code{stdout} based transmission methods (like writing to
507 CD-ROM without intermediate prepared ISO image and working with tape
508 drives).
509
510 @item
511 @command{nncp-toss} is able to create @file{.seen} files preventing
512 duplicate packets receiving.
513
514 @item
515 Single background checksum verifier worker is allowed in
516 @command{nncp-call}. This is helpful when thousands of small inbound
517 packets could create many goroutines.
518
519 @item
520 Ability to override path to spool directory and logfile through either
521 command line argument, or environment variable.
522
523 @item
524 @command{nncp-rm} is able to delete outbound/inbound, @file{.seen},
525 @file{.part}, @file{.lock} and temporary files.
526
527 @end itemize
528
529 @node Release 0.12
530 @section Release 0.12
531 @itemize
532 @item Sendmail command is called with @env{NNCP_SENDER} environment variable.
533 @end itemize
534
535 @node Release 0.11
536 @section Release 0.11
537 @itemize
538 @item @command{nncp-stat}'s command output is sorted by node name.
539 @end itemize
540
541 @node Release 0.10
542 @section Release 0.10
543 @itemize
544 @item
545 @command{nncp-freq}'s @file{DST} argument is optional now. Last
546 @file{SRC} path's element will be used by default.
547 @end itemize
548
549 @node Release 0.9
550 @section Release 0.9
551 @itemize
552 @item
553 Fix @option{-rx}/@option{-tx} arguments processing in
554 @command{nncp-call} command. They were ignored.
555 @end itemize
556
557 @node Release 0.8
558 @section Release 0.8
559 @itemize
560 @item
561 Little bugfix in @command{nncp-file} command, where @option{-minsize}
562 option for unchunked transfer was not in KiBs, but in bytes.
563 @end itemize
564
565 @node Release 0.7
566 @section Release 0.7
567 @itemize
568
569 @item
570 Ability to feed @command{nncp-file} from @code{stdin}, that uses an
571 encrypted temporary file for that.
572
573 @item
574 Chunked files transmission appeared with corresponding
575 @command{nncp-reass} command and @option{freqchunked} configuration file
576 entry. Useful for transferring big files over small storage devices.
577
578 @item
579 @option{freqminsize} configuration file option, analogue to
580 @option{-minsize} one.
581
582 @item
583 @command{nncp-xfer}'s @option{-force} option is renamed to
584 @option{-mkdir} for clarity.
585
586 @item
587 @option{-minsize} option is specified in KiBs, not bytes, for
588 convenience.
589
590 @item
591 @command{nncp-newcfg} command is renamed to @command{nncp-cfgnew},
592 and @command{nncp-mincfg} to @command{nncp-cfgmin} -- now they have
593 common prefix and are grouped together for convenience.
594
595 @item
596 @command{nncp-cfgenc} command appeared, allowing configuration file
597 encryption/decryption, for keeping it safe without any either OpenPGP or
598 similar tools usage.
599
600 @item
601 Cryptographic libraries (dependencies) are updated.
602
603 @end itemize
604
605 @node Release 0.6
606 @section Release 0.6
607 @itemize
608 @item Small @command{nncp-rm} command appeared.
609 @item Cryptographic libraries (dependencies) are updated.
610 @end itemize
611
612 @node Release 0.5
613 @section Release 0.5
614 @itemize
615 @item
616 Trivial small fix in default niceness level of @command{nncp-file}
617 and @command{nncp-freq} commands.
618 @end itemize
619
620 @node Release 0.4
621 @section Release 0.4
622 @itemize
623
624 @item
625 Small fix in @command{nncp-call}, @command{nncp-caller},
626 @command{nncp-daemon}: they can segmentation fail sometimes (no data is
627 lost).
628
629 @item
630 @command{nncp-newnode} renamed to @command{nncp-newcfg} -- it is shorter
631 and more convenient to use.
632
633 @item
634 @command{nncp-mincfg} command appeared: helper allowing to create
635 minimalistic stripped down configuration file without private keys, that
636 is useful during @command{nncp-xfer} usage.
637
638 @end itemize
639
640 @node Release 0.3
641 @section Release 0.3
642 @itemize
643 @item Fixed compatibility with Go 1.6.
644 @end itemize
645
646 @node Release 0.2
647 @section Release 0.2
648 @itemize
649
650 @item
651 @strong{Incompatible} packet's format change (magic number is changed
652 too): size field is encrypted and is not send in plaintext anymore.
653
654 @item
655 @option{-minsize} option gives ability to automatically pad outgoing
656 packets to specified minimal size.
657
658 @item
659 @command{nncp-daemon} and @command{nncp-call}/@command{nncp-caller}
660 always check new @emph{tx} packets appearance in the background while
661 connected. Remote side is immediately notified.
662
663 @item
664 @option{-onlinedeadline} option gives ability to configure timeout of
665 inactivity of online connection, when it could be disconnected. It could
666 be used to keep connection alive for a long time.
667
668 @item
669 @option{-maxonlinetime} option gives ability to set maximal allowable
670 online connection aliveness time.
671
672 @item
673 @command{nncp-caller} command appeared: cron-ed TCP daemon caller.
674
675 @item
676 @command{nncp-pkt} command can decompress the data.
677
678 @end itemize