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