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