secrez 2.1.15 → 2.2.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,464 @@
1
+ # Changelog
2
+
3
+ **2.2.0-beta.1**
4
+
5
+ - remove deprecated `bash` command (use `shell` instead)
6
+ - `edit` accepts dataset-qualified paths (e.g. `main:/file.yml`)
7
+ - in-memory editor: `Ctrl-k` deletes the current line and pulls up the next one
8
+ - replace `shell` command implementation: run commands with `spawn` and `cwd` instead of interpolating the working directory into a shell string (fixes command injection via malicious paths)
9
+ - harden `ssh` command: validate user and host, pass arguments to `ttab`/`ssh` without shell interpolation (fixes command injection via crafted hostnames)
10
+ - replace external editor with an in-memory editor for `edit`: secrets are no longer written to temporary files on disk; removed `-e`/`--editor` and `-i`/`--internal` options (the internal editor is now the only editor)
11
+ - add `editorProvider` hook for tests and improve `edit` command test reliability
12
+ - vault permissions (FS-1): secure legacy containers to `0o700` dirs / `0o600` files at login
13
+ - strengthen password-based export encryption (`.secrez` files): new **v2** format uses PBKDF2 with a random salt stored in the file; password and iteration count are required at import (`-i`); legacy **v1** exports remain importable with password only
14
+ - require Node.js 20 or later (`engines.node >=20.0.0`)
15
+ - clear cryptographic secrets from memory on `signout`, `quit`, and double `^C` (best-effort buffer zeroing)
16
+ - replace deprecated dependencies: `homedir` → `os.homedir`, `ethereumjs-util` → `ethers.getAddress`, `qrcode-reader` → `jsqr`, upgrade `jimp` to 1.x
17
+ - harden `totp --from-clipboard` on Linux: run `xclip` with `spawn` and write PNG bytes to disk instead of shell redirection
18
+ - companion workspace releases: `@secrez/core@1.1.0`, `@secrez/crypto@1.1.0`, `@secrez/fs@1.1.0`, `@secrez/utils@1.1.0`, `@secrez/eth@0.0.6`
19
+ - warn at signup when PBKDF2 iterations are below 100,000 and require explicit confirmation to proceed (KDF-3)
20
+
21
+ **2.1.16**
22
+
23
+ - remove legacy second-factor handling from the CLI (`Welcome`, `Conf`)
24
+ - refactor `git` command tests to use a local bare repository instead of a private GitHub remote (no SSH keys or external setup required)
25
+
26
+ **2.1.15**
27
+
28
+ - add `find -R` to look for recent entries only. With `-l` to set a limit (default 10)
29
+
30
+ **2.1.14**
31
+
32
+ - reverse changes done in version 2.1.12
33
+ - add a push option to Git that checks if there are changes in the repo and, if so, pushes them remotely, updating the system
34
+
35
+ **2.1.12**
36
+
37
+ - enforce the usage of pnpm during global install. When that is not possible, for example with yarn, it blocks the execution asking the user to uninstall and install it again properly
38
+
39
+ **2.1.11**
40
+
41
+ - fix warning "(node:70960) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities" caused by the Git checker
42
+
43
+ **2.1.10**
44
+
45
+ - add external git change detection to block operations when repository state changes outside of Secrez (e.g., `git pull` in another terminal)
46
+ - fix critical cache bug in git conflict detection that prevented external changes from being detected within 30 seconds
47
+ - improve git conflict detection tests with comprehensive coverage for both git and non-git repositories
48
+
49
+ **2.1.9**
50
+
51
+ - add `<` parameter to reuse the last used path in commands (e.g., `totp <` will use the last path from previous command)
52
+ - fix deprecation warning in `execSync` by properly escaping command arguments
53
+
54
+ **2.1.8**
55
+
56
+ - add `git` command to check repository status and detect remote changes
57
+ - add git conflict detection middleware to prevent conflicts during data-changing operations
58
+
59
+ **2.1.7**
60
+
61
+ - add option `--no-export` to `export --crypto-env` to display the encrypted content in the console instead of writing it to a file
62
+
63
+ **2.1.6**
64
+
65
+ - export and encrypt, with option `--crypto-env`, the entire content of an item
66
+
67
+ **2.1.5**
68
+
69
+ - duplicate files using `touch <newfile> --from <file>` to copy the file from the source to the destination
70
+
71
+ **2.1.4**
72
+
73
+ - uses clipboard only on macOS
74
+ - fixes `copy` return message when clipboard is not available
75
+
76
+ **2.1.2**
77
+
78
+ - disable `copy` command when in headless shells
79
+
80
+ **2.1.1**
81
+
82
+ - manage missing clipboard when in headless shells
83
+ - fix bug in creating a `totp` when the target Yaml file is empty
84
+
85
+ **2.0.1**
86
+
87
+ - fix commands to change password and number of iterations
88
+
89
+ **2.0.0** (breaking changes)
90
+
91
+ - remove `@crypto/hub`, `@crypto/courier`, `@crypto/tunnel` and `@crypto/tls` since they are not maintained anymore
92
+ - add `show` command to show a card field as a QR code, for example to encode a private key and let a mobile wallet scan it
93
+
94
+ **1.1.6**
95
+
96
+ - add support for cryptoEnv format to `export` (look at https://github.com/secrez/cryptoenv for details about CryptoEnv)
97
+
98
+ **1.1.5**
99
+
100
+ - fix touch's help showing wrong, temporary options, changed during the development :-(
101
+
102
+ **1.1.4**
103
+
104
+ - add clear screen after 180 seconds to avoid that the user forgot its terminal open and accidentally shares it while sharing the screen during meetings — it happened to me :-(
105
+ - add option `--timeout, -t` to customize the timeout when launching secrez
106
+
107
+ **1.1.3**
108
+
109
+ - add new option `--keystore, -k` to `export`. If a file contains a private key field (i.e., a field with a name containing `private_key`), it can be exported in the keystore format. The file will have the same name with the extension replaced with `.keystore.json`.
110
+ - this README has been redacted by ChatGPT to make it more clear and concise.
111
+
112
+ **1.1.2**
113
+
114
+ - New options for `touch`:
115
+ - `--wait-for-content` to prompt the user to add the content, instead of expecting it as a parameter. The content will be trimmed at the first newline, if there is any.
116
+ - `--generate-wallet` to generate an Ethereum-compatible wallet in a new card or in an existing one. It generates the fields `private_key` and `address`, with private key and address.
117
+ - `--prefix` in combination with `--generate-wallet` specifies the prefix of the field, calling the fields, for example `my_private_key` and `my_address` if the prefix is `my`.
118
+ - `--amount` in combination with `--generate-wallet` specifies the amount of wallets to generate. The default is 1.
119
+
120
+ **1.1.1** (unpublished)
121
+
122
+ - using prettier for consistent formatting
123
+
124
+ **1.1.0**
125
+
126
+ - Remove `git`. If used carefully, the command was helpful, but still it is at risk of creating conflicts. After long thoughts, I disapproved my own proposal at: https://github.com/secrez/secrez/pull/163
127
+
128
+ **1.0.4**
129
+
130
+ - Fix wrong example in `import`
131
+
132
+ **1.0.3**
133
+
134
+ - `git` asks to quit Secrez and merge manually if there are remote changes
135
+ - `totp` allows to add a totp code to an existing yaml file using the option `--set` (see the examples)
136
+ - Default duration before clipboard reverse for `totp` is now 8 seconds
137
+
138
+ **1.0.2**
139
+
140
+ - Export and Import can encrypt/decrypt files using shared keys generated from a specified public key
141
+ - Can export ecrypted file for the user itself, files that can be decrypted only from inside the secrez account that exported them
142
+
143
+ **1.0.1**
144
+
145
+ - Export and Import can handle encryption. Files can be exported encrypted using a specified password or a key shared with contacts
146
+ - Contacts can add a contact also using contact's public key (previously you need a hub url)
147
+ - Import specifies the file that have been skipped (because binary, encrypted or both)
148
+
149
+ **1.0.0**
150
+
151
+ - Requires `@secrez/utils@1.0.1` which fixes a yaml parsing error with ETH-like addresses
152
+
153
+ **1.0.0-beta.3**
154
+
155
+ - Rm allows to delete specific versions of a file
156
+
157
+ **1.0.0-beta.2**
158
+
159
+ - Git has new options `--init`, `--remote-url` and `--main-branch` to initiate a repo from inside Secrez
160
+
161
+ **1.0.0-beta.1**
162
+
163
+ - use @secrez/core@1.0.0, which changes the encoding from base58 to base64, making the encoding much faster
164
+ - remove second factor authentication due to potentially critical issues with Python and the required libraries on macOS (2FA will be restored as soon as either a pure Javascript library is available or using external Python libraries is reliable again)
165
+ - `Bash` has been renamed `Shell`
166
+
167
+ **0.11.0**
168
+
169
+ - removed support for FIDO2 second factor authentication due to potential critical issues with Python and the required libraries on MacOS (2FA may be restored if a pure Javascript library becomes available)
170
+
171
+ **0.10.8**
172
+
173
+ - expose a prompt mock to allow other software to run commands programmatically
174
+ - fix bug in totp when the command is called but no totp is set
175
+
176
+ **0.10.7**
177
+
178
+ - fix bug in `git -i` showing less changed that expected
179
+
180
+ **0.10.6**
181
+
182
+ - use `£` as an alternative to `#` when getting find results (whoops, I made this for myself, because I use both English and Italian keyboards)
183
+ - add `leave` to leave a room
184
+
185
+ **10.0.5**
186
+
187
+ - fix bug in `git` wrongly returning `already up to date`
188
+ - fix `git`'s help
189
+
190
+ **0.10.4**
191
+
192
+ - remove spaces in secret when launching `totp`
193
+ - add a `--test` option, to test a secret
194
+ - remove deprecated `exit`
195
+
196
+ **0.10.3**
197
+
198
+ - since it's not possible to clear the entire terminal, the clear screen process creates a false sense of security and has been removed
199
+ - fix bug in `ls -l` when there are empty files
200
+ - add message to suggest user to clear or close the terminal after quitting
201
+
202
+ **0.10.2**
203
+
204
+ - add a `git` command to push changes to the repo and pull changes
205
+ - allow to run `bash` without parameters, asking later for the shell command
206
+
207
+ **0.10.1**
208
+
209
+ - encrypts binary files as is, without converting them to `base64` strings, like before
210
+
211
+ **0.10.0**
212
+
213
+ - use @secrez/hub 0.2.0 and @secrez/courier 0.2.0 (which are incompatible with the previous versions)
214
+ - duplicate `whoami` and `contacts` to make them working inside the `chat` environment
215
+
216
+ **0.9.4**
217
+
218
+ - fix bug during import, if a `path` contains `:`; now, they are replaced with `_`
219
+
220
+ **0.9.3**
221
+
222
+ - fix bug with `ds -l` not working
223
+
224
+ **0.9.2**
225
+
226
+ - fix issue in `ls -l` that was working only in the current dataset
227
+ - fix dates in `ls -l` in UTC time, instead than in local time
228
+
229
+ **0.9.1**
230
+
231
+ - `ls -l` returns details: size, creation date, last update date, number of versions and name
232
+
233
+ **0.9.0**
234
+
235
+ - Add `ds` to manage datasets
236
+ - `ds` is also able to delete a dataset (moving its content to the `trash` dataset)
237
+ - Remove feature `--rename` from `use`, since now `ds` manages the datasets
238
+
239
+ **0.8.10**
240
+
241
+ - If the default editor is not defined (env variable EDITOR) try to use nano or vim
242
+
243
+ **0.8.9**
244
+
245
+ - Pause clearScreen during editing
246
+
247
+ **0.8.8**
248
+
249
+ - Add the option `pathFrom` in `import` to build the `path` field using other fields
250
+
251
+ **0.8.7**
252
+
253
+ - Importing from a CSV file generates `.yaml` file instead of `.yml`
254
+
255
+ **0.8.6**
256
+
257
+ - Uses new onBeforeRewrite in [inquirer-command-prompt](https://github.com/sullof/inquirer-command-prompt) to remove the `#\d` when autocompleting the result of a search
258
+
259
+ **0.8.5**
260
+
261
+ - Fix issue with find results when they include datasets.
262
+ - Improve scripts (getting coverage only for modified packages)
263
+ - Add a secrez.png as a generic asset
264
+
265
+ **0.8.4**
266
+
267
+ - fix issue if a file starts with #\d, like `#2something`
268
+
269
+ **0.8.3**
270
+
271
+ - add autocomplete based on `find` results; for example `cat #2` and press `tab` will complete with the second result in the search
272
+
273
+ **0.8.2**
274
+
275
+ - fix bug in `show` which listed all the messages
276
+
277
+ **0.8.1**
278
+
279
+ - fix bug in `conf` setting a 2FA
280
+ - improve encapsulation of the `_Secrez` class
281
+
282
+ **0.8.0**
283
+
284
+ - add `contacts` to manage trusted users, i.e, trusted public keys
285
+ - add `whoami` to get info about the account
286
+ - add @secrez/courier to allow communication between local accounts
287
+ - add @secrez/hub for the remote hub
288
+ - add @secrez/tunnel to manage the tunneling for the Courier
289
+ - add `chat` to enter the chat environemnt, and send/receive messages and data to any trusted user
290
+ - add `chat`'s subcommands `join`, `send` and `show`.
291
+ - return `find` results as a numbered list, to be used as variable (like `$1`) in following commands
292
+ - deprecate `exit` in favor of `quit` to leave rooms, chat and app
293
+ - add `ssh` to connect via ssh to a remote server from inside Secrez, to protect private keys without password
294
+
295
+ **0.7.14**
296
+
297
+ - fix chained aliases generating prompt duplications
298
+
299
+ **0.7.13**
300
+
301
+ - fix autocomplete when single command
302
+
303
+ **0.7.12**
304
+
305
+ - adds support for Linux to `totp --from-clipboard`, using `xclip`
306
+
307
+ **0.7.11**
308
+
309
+ - returns an alert if `clipboardy` does not find the required libraries
310
+
311
+ **0.7.10**
312
+
313
+ - fixes the autocomplete loading the data only when needed
314
+
315
+ **0.7.9**
316
+
317
+ - fix bug in MainPrompt.js which caused an exit if command not found
318
+
319
+ **0.7.8**
320
+
321
+ - upgrade `@secrez/core` to `0.7.1` which fixes an error if `env.json` does not exists
322
+
323
+ **0.7.7**
324
+
325
+ - aliases now accept params (ex. `alias x -c 'copy $1 && ls $2 $1')
326
+
327
+ **0.7.6**
328
+
329
+ - `rm` ask confirmation before delete forever from the `trash` dataset
330
+ - `edit` does not crash if no path is passed
331
+
332
+ **0.7.5**
333
+
334
+ - `totp` can read an image to scan a qrcode and recover its secret
335
+ - on MacOs, `totp` can also read the image from the clipboard to recover its secret; it requires `pngpaste`
336
+
337
+ **0.7.4**
338
+
339
+ - fix bug in autocomplete showing the error stack
340
+ - add script to upgrade the versions of any changed packages
341
+
342
+ **0.7.3**
343
+
344
+ - `find` ignores `trash` during global searches if not using `--trash-too`
345
+ - update to `@secrez/fs 0.7.2`, which fixes a bug in the `DataCache` class
346
+
347
+ **0.7.2**
348
+
349
+ - `totp` allows to generate TOTP codes (like Google Authenticator)
350
+ - add option `--wait` to `copy` to force it to wait the end of the execution
351
+ - `alias` handles chains of commands, like `copy coinbase.yml -f email password -d 3 2 --wait && totp coinbase.yml`
352
+
353
+ **0.7.1**
354
+
355
+ - Calling a command with unknown options will generate an error
356
+ - Fix issue moving duplicates
357
+ - Adds to `mv` an explicit destination field
358
+
359
+ **0.7.0**
360
+
361
+ - Introduce a more secure derivation process, using the iterations number in the salt. During the upgrade existing second factors of authentication will be removed
362
+ - Allow to change password and number of iterations in `conf`. BE CAREFUl, any change in `conf` can cause conflicts in a remote repo. Don't do the same changes parallelly
363
+
364
+ **0.6.5**
365
+
366
+ - Add `duration` to `export` to delete the exported file after the duration (in seconds)
367
+
368
+ **0.6.4**
369
+
370
+ - Add `alias` to generate alias of any command
371
+
372
+ **0.6.3**
373
+
374
+ - Minor bug fix
375
+
376
+ **0.6.2**
377
+
378
+ - `copy` can put many fields in the clipboard, scheduling them
379
+
380
+ **0.6.1**
381
+
382
+ - Add support for U2F keys (Yubikey, Solokeys, etc.)
383
+ - `ls` now returns sorted results
384
+ - Fixed bug with `mv` and `rm` when using wildcards
385
+ - Dynamic format for help, managing large examples
386
+
387
+ **0.6.0**
388
+
389
+ - Allow multiple datasets; `main` and `trash` exists by default
390
+ - At start, purges old trees after successfully loading a dataset
391
+ - `use` allows to use and create new dataset
392
+ - `mv` supports `-d, --destination` for the destination
393
+ - `mv` allows to move files among datasets with a syntax like `mv somefile archive:/` or `mv archive:somefile main:/some/`
394
+ - `mv` adds `--find` and `--content-too` to use the result of a search as input
395
+ - `mv`, if no destination set, asks if like to use the active directory in the target dataset
396
+ - `ls -o d` and `ls -o f` to limit the listing only to folders or files
397
+ - `copy` allows to select the field to copy in yaml files
398
+ - Improve autocomplete to handle datasets
399
+ - Fix autocomplete in `lcat`, which was wrongly using the internal files
400
+ - `tag` is able to list and show tags along all the datasets, anche can use `--find` like `mv`
401
+
402
+ **0.5.13**
403
+
404
+ - Find in content excludes binary contents
405
+
406
+ **0.5.12**
407
+
408
+ - Optimize find inside contents caching the data
409
+ - Fix an error returning wrong cases in the results
410
+ - Remove an unnecessary message when nothing is recovered
411
+
412
+ **0.5.11**
413
+
414
+ - Use tags to prefix the path during import
415
+
416
+ **0.5.10**
417
+
418
+ - Fix the README that was not aligned
419
+
420
+ **0.5.9**
421
+
422
+ - Add Paste to paste the clipboard content in either a new or existent file, emptying the clipboard
423
+ - Fix bug with Copy that was preventing the command from working
424
+
425
+ **0.5.8**
426
+
427
+ - Allow Import, with the options `-t`, to recognize tags during the import from CSV
428
+ - Split Export in Export and Copy. The first only exports to the FS, the second copies to the clipboard
429
+
430
+ **0.5.7**
431
+
432
+ - Add wildcard support for Import, Mv, Rm and Tag
433
+ - Add support for recursion during import
434
+
435
+ **0.5.6**
436
+
437
+ - Add Tag command to tag files and folders
438
+
439
+ **0.5.5**
440
+
441
+ - Optimize Import avoiding intermediate saves of the tree
442
+ - Fix an issue with iterations at launch
443
+
444
+ **0.5.4**
445
+
446
+ - Add Import of many entries from CSV and JSON files
447
+
448
+ **0.5.3**
449
+
450
+ - Use Yaml files as cards, being able to read and edit single fields
451
+
452
+ **0.5.2**
453
+
454
+ - Remove obfuscation of the tree before saving (it was an overkill)
455
+
456
+ **0.5.1**
457
+
458
+ - Add Find to search in files and folders
459
+
460
+ **0.5.0**
461
+
462
+ - First stable version
463
+
464
+ Versions < 0.5.0 are deprecated because the format was sligtly different and they are incompatible.