-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtreasury.lua.1
More file actions
1123 lines (894 loc) · 23.6 KB
/
Copy pathtreasury.lua.1
File metadata and controls
1123 lines (894 loc) · 23.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
.TH treasury.lua 1 "05 April 2024"
.SH SYNOPSIS
.PP
treasury.lua is a simple command-line app for storing short secrets.
.SH DESCRIPTION
.PP
\fBtreasury.lua\fP is intended for storing short secrets like phone numbers, contact details, or passwords. It uses the openssl command-line app to encrypt data, which is then stored in \(aqlockboxes\(aq (which are single files containing all items related to a given task or data type). Each lockbox is password-protected, and has an optional password hint that it will display when querying for it\(aqs password.
.PP
\fBtreasury.lua\fP can export it\(aqs data in a few simple formats, can generate qr codes from data, and can generate TOTP authentication codes from stored data too.
.SH USAGE
.nf
.ft CW
.RS
.EX
treasury.lua [action] [lockbox] [key] [value]
.RE
.EE
.fi
.in
.ad b
.nop
.SH ACTIONS
.PP
.in +2
.TP
.B new [lockbox]
create a new lockbox
.in
.PP
.in +2
.TP
.B list [lockbox]
list keys in a lockbox, along with their associated notes/comment
.in
.PP
.in +2
.TP
.B names [lockbox]
list keys in a lockbox
.in
.PP
.in +2
.TP
.B dump [lockbox]
dump lockbox in plain text
.in
.PP
.in +2
.TP
.B add [lockbox] [key] [value]
add a key/value pair to a lockbox
.in
.PP
.in +2
.TP
.B add [lockbox] [key] -g
generate a 32bit random string, and add it to a lockbox
.in
.PP
.in +2
.TP
.B add [lockbox] [key] -generate
generate a 32bit random string, and add it to a lockbox
.in
.PP
.in +2
.TP
.B add [lockbox] [key] -glen <len>
generate a random string, and add it to a lockbox
.in
.PP
.in +2
.TP
.B del [lockbox] [key]
remove a key/value pair from a lockbox
.in
.PP
.in +2
.TP
.B rm [lockbox] [key]
remove a key/value pair from a lockbox
.in
.PP
.in +2
.TP
.B get [lockbox] [key]
get the value matching "key" in a lockbox
.in
.PP
.in +2
.TP
.B get [lockbox] [key] -o <path>
get the value matching "key" in a lockbox, and write it to <path>
.in
.PP
.in +2
.TP
.B get [lockbox] [key] -qr
get the value matching "key" in a lockbox, and display as qr code
.in
.PP
.in +2
.TP
.B get [lockbox] [key] -qr -o <path>
get the value matching "key" in a lockbox, and write as a qr code PNG to <path>
.in
.PP
.in +2
.TP
.B get [lockbox] [key] -clip
get the value matching "key" in a lockbox, and push it to clipboard
.in
.PP
.in +2
.TP
.B get [lockbox] [key] -osc52
get the value matching "key" in a lockbox, and push it to clipboard using xterm"s osc52 command
.in
.PP
.in +2
.TP
.B get [lockbox] [key] -totp
get the value matching "key" in a lockbox, use it to generate a google-authenticator compatible TOTP code.
.in
.PP
.in +2
.TP
.B entry [lockbox]
enter "data entry" mode for lockbox
.in
.PP
.in +2
.TP
.B shell [lockbox]
enter "shell" mode for lockbox
.in
.PP
.in +2
.TP
.B chpw [box]
change password for a lockbox
.in
.PP
.in +2
.TP
.B find [lockbox] [search pattern]
find key/value pairs matching "search pattern"
.in
.PP
.in +2
.TP
.B update
sync known lockboxes by searching for matching "sync" files found in the "sync_in" directory (default ~/.treasury/sync_in)
.in
.PP
.in +2
.TP
.B update [lockbox]
sync specified known lockbox by searching for matching "sync" files found in the "sync_in" directory (default ~/.treasury/sync_in)
.in
.PP
.in +2
.TP
.B sync
sync key/value pairs from "sync" files found in the "sync_in" directory (default ~/.treasury/sync_in)
.in
.PP
.in +2
.TP
.B sync [path]
sync key/value pairs from a sync or lockbox file(s). "path" can be a pattern like "/home/user/incoming/*", or an ssh path like "ssh:myserver/sync/treasury/*.sync"
.in
.PP
.in +2
.TP
.B sync [path] [path] ...
sync key/value pairs from a sync or lockbox file(s). "path" can be a pattern like "/home/user/incoming/*", or an ssh path like "ssh:myserver/sync/treasury/*.sync"
.in
.PP
.in +2
.TP
.B send [path] [dir]
send lockbox at <path> to a directory <dir> for syncing. <dir> can be an ssh: url to a directory on another system
.in
.PP
.in +2
.TP
.B send [dir]
send all known lockboxes to a directory <dir> for syncing. <dir> can be an ssh: url to a directory on another system
.in
.PP
.in +2
.TP
.B sync-status
display details of imported 'sync' files
.in
.PP
.in +2
.TP
.B import [lockbox] [path]
import key/value pairs from a file
.in
.PP
.in +2
.TP
.B export [lockbox] [path]
export key/value pairs to a file
.in
.PP
.in +2
.TP
.B export [lockbox] [path] -csv
export key/value pairs from a csv file
.in
.PP
.in +2
.TP
.B export [lockbox] [path] -xml
export key/value pairs from a xml file
.in
.PP
.in +2
.TP
.B export [lockbox] [path] -json
export key/value pairs from a json file
.in
.PP
.in +2
.TP
.B export [lockbox] [path] -zcsv
export key/value pairs from a pkzipped csv file (with password)
.in
.PP
.in +2
.TP
.B export [lockbox] [path] -zxml
export key/value pairs from a pkzipped xml file (with password)
.in
.PP
.in +2
.TP
.B export [lockbox] [path] -zjson
export key/value pairs from a pkzipped json file (with password)
.in
.PP
.in +2
.TP
.B export [lockbox] [path] -7zcsv
export key/value pairs from a 7zipped csv file (with password)
.in
.PP
.in +2
.TP
.B export [lockbox] [path] -7zxml
export key/value pairs from a 7zipped xml file (with password)
.in
.PP
.in +2
.TP
.B export [lockbox] [path] -7zjson
export key/value pairs from a 7zipped json file (with password)
.in
.PP
.in +2
.TP
.B show-config
print out application config
.in
.PP
.in +2
.TP
.B config-set [name] [value]
change a config value
.in
.PP
.in +2
.TP
.B version
print program version
.in
.PP
.in +2
.TP
.B -version
print program version
.in
.PP
.in +2
.TP
.B --version
print program version
.in
.PP
.in +2
.TP
.B --help
print help
.in
.PP
.in +2
.TP
.B -help
print help
.in
.PP
.in +2
.TP
.B help
print help
.in
.PP
.in +2
.TP
.B -?
print help
.in
.SH OPTIONS
.PP
Note, the below options are generally used with specific actions listed above. "data" mentioned below refers to the secret data that is stored in a lockbox against a key
.PP
.in +2
.TP
.B -K
don't use keyring for getting lockbox password
.in
.PP
.in +2
.TP
.B -nokeyring
don't use keyring for getting lockbox password
.in
.PP
.in +2
.TP
.B -nosync
don't update a lockbox with files from the "sync_in" directory before names/list/dump/get commands
.in
.PP
.in +2
.TP
.B -g
generate a 32bit random string, and add it to a lockbox, used to generate random passwords
.in
.PP
.in +2
.TP
.B -generate
generate a 32bit random string, and add it to a lockbox, used to generate random passwords
.in
.PP
.in +2
.TP
.B -glen <len>
generate a random string of length <len>, and add it to a lockbox, used to generate random passwords
.in
.PP
.in +2
.TP
.B -o <path>
write output to file at \(aqpath\(aq instead of stdout. Usually this writes the secret data to a file, but can be used with "-qr" to write a qrcode to a file.
.in
.PP
.in +2
.TP
.B -qr
generate qr code of data for a given key
.in
.PP
.in +2
.TP
.B -clip
push data to the clipboard using any method found
.in
.PP
.in +2
.TP
.B -osc52
push data to the clipboard specifically using xterm\(aqs osc52 escape sequence
.in
.PP
.in +2
.TP
.B -totp
generate a totp code from the data
.in
.PP
.in +2
.TP
.B -K
ignore any keys stored in the system keyring, prompt for a fresh password and then update the keyring with that
.in
.PP
.in +2
.TP
.B -csv
export key-value pairs to a csv file
.in
.PP
.in +2
.TP
.B -xml
export key-value pairs to a xml file
.in
.PP
.in +2
.TP
.B -json
export key-value pairs to a json file
.in
.PP
.in +2
.TP
.B -zcsv
export key-value pairs to a pkzip encrypted csv file
.in
.PP
.in +2
.TP
.B -zxml
export key-value pairs to a pkzip encrypted xml file
.in
.PP
.in +2
.TP
.B -zjson
export key-value pairs to a pkzip encrypted json file
.in
.PP
.in +2
.TP
.B -7zcsv
export key-value pairs to a pkzip encrypted csv file
.in
.PP
.in +2
.TP
.B -7zxml
export key-value pairs to a pkzip encrypted xml file
.in
.PP
.in +2
.TP
.B -7zjson
export key-value pairs to a pkzip encrypted json file
.in
.PP
.in +2
.TP
.B -scsv
export key-value pairs to a openssl encrypted csv file
.in
.PP
.in +2
.TP
.B -sxml
export key-value pairs to a openssl encrypted xml file
.in
.PP
.in +2
.TP
.B -sjson
export key-value pairs to a openssl encrypted json file
.in
.PP
.in +2
.TP
.B -debug
output debugging. N.B. THIS WILL INCLUDE LOCKBOX PASSWORDS.
.in
.PP
.in +2
.TP
.B -version
show program version
.in
.PP
.in +2
.TP
.B --version
show program version
.in
.PP
.in +2
.TP
.B -help
show program help
.in
.PP
.in +2
.TP
.B --help
show program help
.in
.PP
.in +2
.TP
.B -?
show program help
.in
.SH SETTINGS
.PP
the \(aqshow-config\(aq and \(aqconfig-set\(aq commands allow manipulation of a number of application settings that are stored in
.na
.BR ~/.config/treasury/treasury.conf
.fi
.ft P
.ad n
.nop .
.PP
At current these settings are:
.nf
.ft CW
.RS
.EX
algo aes\-256\-cbc
clip_cmd xsel \-i \-p \-b,xclip \-selection clipboard,pbcopy
digest sha256
edit_cmd vim,vi,pico,nano
iview_cmd imlib2_view,fim,feh,display,xv,phototonic,qimageviewer,pix,sxiv,qimgv,qview,nomacs,geeqie,ristretto,mirage,fotowall,links \-g
keyring y
keyring_timeout 3600
mlock n
pass_hide stars+1
qr_cmd qrencode \-o
resist_strace n
scrub_files n
sync_in \*(ti/.treasury/sync_in/
sync_out \*(ti/.treasury/sync_out/
syslog y
.RE
.EE
.fi
.in
.ad b
.nop
.PP
.in +2
.TP
.B clip_cmd
a comma separated list of commands that can be used to set the system clipboard. It is assumed these commands take input on stdin. treasury.lua will use the first application in this list that it finds installed on the system.
.in
.PP
.in +2
.TP
.B iview_cmd
a comma separated list of image viewer commands to use when displaying qr codes.
.in
.PP
.in +2
.TP
.B edit_cmd
a comma separated list of text editor commands to use when editing large secrets.
.in
.PP
.in +2
.TP
.B syslog
should messages should be sent to the system log when an incorrect password is entered when someone attempts to access a lockbox. Values are \(aqy\(aq and \(aqn\(aq for yes and no.
.in
.PP
.in +2
.TP
.B digest
which hashing function openssl uses for key expansion in encryption. You should not change this unless you really know what you\(aqre doing.
.in
.PP
.in +2
.TP
.B algo
which encryption method openssl uses. You should not change this unless you really know what you\(aqre doing.
.in
.PP
.in +2
.TP
.B coredumps
whether treasury.lua should prevent itself producing coredumps should it crash for any reason. This is set to \(aqy\(aq by default.
.in
.PP
.in +2
.TP
.B mlock
whether treasury.lua should attempt to lock itself in memory. If you set this to \(aqy\(aq then you must ensure that treasury.lua is allowed to lock enough pages of memory to hold all it\(aqs code and data. This is a security feature intended to prevent data being swapped out to disk, but it is somewhat experiemental.
.in
.PP
.in +2
.TP
.B resist_strace
disallow stracing of the app. It will exit if it is already being straced. There is a race condition here where a skilled attacker could alter treasury.lua\(aqs behavior to allow stracing, which is why this is called \(aqresist\(aq rather than \(aqdeny\(aq. By default this is off (\(aqn\(aq).
.in
.PP
.in +2
.TP
.B scrub_files
overwrite deleted files with random data. This was once held to be vital to prevent data recovery, however in the modern age we have complex filesystems that may well keep backups of the original data, and we have SSD drives, which suffer \(aqwrite wearing\(aq meaning that repeated writes gradually wear them out, so this feature is not considered important anymore. Defaults to \(aqoff\(aq (\(aqn\(aq).
.in
.PP
.in +2
.TP
.B keyring
whether to use the linux keyring system. This requires keyutils/keyctl to be installed. When this boolen option is turned on (\(aqy\(aq) it will store passwords in the kernel keyring system as they are typed in. After being stored, treasury.lua will not need to ask for the password going forwards, and will \(aqremember\(aq it for that user, until that user logs out. treasury.lua will first try to store keys in the \(aqsession\(aq keyring, and if there isn\(aqt a session keyring, it will fall back to the \(aquser\(aq keyring. The user keyring carries some dangers that anyone logged in as the user can get the password from the user keyring, even if they have a different login session. This feature is new and experimental, so it defaults to off (\(aqn\(aq).
.in
.PP
.in +2
.TP
.B keyring_timeout
specify a timeout in seconds for passwords stored in the kernel keyring. If a given password is unused for longer than this time, then it will be deleted from the keyring. The default is one hour (3600 seconds).
.in
.PP
.in +2
.TP
.B sync_in
directory to search for \(aqsync\(aq files to update lockboxes from /.treasury/sync_in/
.in
.PP
.in +2
.TP
.B sync_out
directory to export 'sync' files to /.treasury/sync_out/
.in
.SH Import/Export
.PP
treasury.lua can import data from files in csv, xml and json format. Each of these file formats and also be wrapped with zip, 7zip, or openssl encryption. The purpose of these wrappers is to provide a means of moving data between systems in an encrypted format, even if it\(aqs the relatively weak encryption of pkzip/info-zip.
.PP
For CSV files the default format is:
.nf
.ft CW
.RS
.EX
key, value, notes, updated time
.RE
.EE
.fi
.in
.ad b
.nop
.PP
For XML files the default format is:
.nf
.ft CW
.RS
.EX
<item>
<name>key</name>
<value>value</value>
<notes>extra notes</notes>
<updated>updated timestamp</updated>
</item>
.RE
.EE
.fi
.in
.ad b
.nop
.PP
for JSON files the default format is:
.nf
.ft CW
.RS
.EX
{
"name": key,
"value": value,
"notes": extra notes,
"updated": updated timestamp,
}
.RE
.EE
.fi
.in
.ad b
.nop
.PP
When using PKZIP or INFOZIP as a wrapper the data must be extracted using the \(aq-p\(aq command-line option, as the data was read from stdin and info-zip (somewhat stupidly) stores this as a file called \(aq-\(aq. Thus, to extract the data to a file you should use:
.nf
.ft CW
.RS
.EX
unzip \-p secrets.zcsv > secrets.csv.
.RE
.EE
.fi
.in
.ad b
.nop
.PP
When using 7zip data can be extracted to a file using:
.nf
.ft CW
.RS
.EX
7za x <file>
.RE
.EE
.fi
.in
.ad b
.nop
.PP
or to stdout using
.nf
.ft CW
.RS
.EX
7za x \-so <file>
.RE
.EE
.fi
.in
.ad b
.nop
.PP
Note that when extracting to stdout 7zip will not prompt for password, but does expect a password to be typed in.
.PP
When using OPENSSL as a wrapper the unpack command has the format
.na
.BR openssl enc \-d \-a \-md <digest algo> \-<encryption algo> \-pbkdf2 in <file>
.fi
.ft P
.ad n
.nop where \(aqdigest algo\(aq and \(aqencryption algo\(aq are the algorithms specified in settings as \(aqdigest\(aq and \(aqalso\(aq respectively. e.g.:
.nf
.ft CW
.RS
.EX
openssl enc \-d \-a \-md sha256 \-aes\-256\-cbc \-pbkdf2 \-in secrets.scsv
.RE
.EE
.fi
.in
.ad b
.nop
.PP
The type of file to export to is specified by the appropriate command-line options. If none of these are present, treasury will try to guess the file-type from it\(aqs extension. For encrypted files the extensions have the forms
.na
.BR .zcsv
.fi
.ft P
.ad n
.nop
.na
.BR .7zcsv
.ad n
.nop or
.na
.BR .scsv
.ad n
.nop etc.
.SS Syncing
.PP
treasury.lua has a simple syncing system. When changes are made to a lockbox that lockbox is copied to a \(aqsync_out\(aq directory (default \(aq/.treasury/sync_out' ). Whenever a lockbox is opened, treasury.lua checks a 'sync_in' directory (default /.treasury/sync_in) for any files that it should import to update the lockbox. This means that, if files are pushed from sync_out using rsync or some kind of FTP system, to a common storage server, and if they are regularly synced from that server to sync_in, then multiple instances of treasury.lua can stay in sync by this means. Syncing adds or overwrites entries, but never deletes them if they are missing in the imported sync file. Unfortunately entries that are outright deleted have to be deleted on all systems manually.
.PP
Each file dropped in \(aqsync_out\(aq have the hostname included in their filename, thus ensuring that different systems should not overwrite each other\(aqs files. As the files are themselves copies of lockboxes, they are encrypted as the lockboxes are. Export to \(aqsync_out\(aq does not require decrypting the files, so no passwords are asked for, and the process can be run automated or on a schedule out of cron.
.PP
Files can be copied from a common server into the \(aqsync_in\(aq directroy. When a request is made to lookup a value from a lockbox, treasury.lua will check for any imports from \(aqsync_in\(aq first, so that it looks u from an up-to-date version of the file. treasury.lua tries to ask for passwords only once, and thus will ask for the password for the destination lockbox, and try using that to open the \(aqsync\(aq files. If this fails it will then ask for the password of any sync file that doesn\(aqt work with the destination lockboxes password. For this reason it\(aqs likely a good idea to use the same lockbox passwords on all systems that will be synched, otherwise the burden of typing in passwords for different systems can become oppressive.
.PP
Alternatively syncing can be controlled more manually using the \(aqsync\(aq and \(aqsend\(aq command-line options of treasury.lua. The \(aqsend\(aq command is used to just send a lockbox, or lockboxes to the specified destination. It will do this regardless of whether those lockboxes have changed. \(aqsend\(aq does this without decrypting the lockboxes, and thus does not have to ask the user for a password, making it suitable for automated or scheduled use. When producing output files, \(aqsend\(aq includes the hostname of the system in the resulting file so that sync files from multiple hosts can share the same directory on a central server, allowing these hosts to all sync from the same central authority. \(aqsend\(aq has two possible usages:
.SS Send a specific lockbox
.nf
.ft CW
.RS
.EX
treasury.lua send <box path> <destination>
.RE
.EE
.fi
.in
.ad b
.nop
.PP
in the above use case the box at <box path> is sent to directory "<destination>". The use of the box file path, rather than the box name, allows sending lockbox files that aren't in the usual working directory of treasury. Since treasury v1.14 the <destination> part of a send command can be an ssh: url.
.SS Send all known lockboxes
.nf
.ft CW
.RS
.EX
treasury.lua send <destination>
.RE
.EE
.fi
.in
.ad b
.nop
.PP
in the above use case all lockboxes "known" to treasury (that is found in the standard treasury working directory) are sent to "<destination>". The use of the box file path, rather than the box name, allows sending lockbox files that aren't in the usual working directory of treasury. Since treasury v1.14 the <destination> part of a send command can be an ssh: url.
.PP