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