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