aspera-cli 4.16.0 → 4.17.0

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.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/CHANGELOG.md +50 -19
  4. data/CONTRIBUTING.md +3 -1
  5. data/README.md +965 -793
  6. data/bin/asession +29 -21
  7. data/lib/aspera/{fasp/agent_alpha.rb → agent/alpha.rb} +26 -25
  8. data/lib/aspera/{fasp/agent_base.rb → agent/base.rb} +15 -12
  9. data/lib/aspera/{fasp/agent_connect.rb → agent/connect.rb} +13 -11
  10. data/lib/aspera/{fasp/agent_direct.rb → agent/direct.rb} +49 -53
  11. data/lib/aspera/{fasp/agent_httpgw.rb → agent/httpgw.rb} +20 -19
  12. data/lib/aspera/{fasp/agent_node.rb → agent/node.rb} +20 -33
  13. data/lib/aspera/{fasp/agent_trsdk.rb → agent/trsdk.rb} +11 -11
  14. data/lib/aspera/api/aoc.rb +586 -0
  15. data/lib/aspera/api/ats.rb +46 -0
  16. data/lib/aspera/api/cos_node.rb +95 -0
  17. data/lib/aspera/api/node.rb +344 -0
  18. data/lib/aspera/ascmd.rb +46 -10
  19. data/lib/aspera/{fasp → ascp}/installation.rb +5 -5
  20. data/lib/aspera/{fasp → ascp}/management.rb +3 -8
  21. data/lib/aspera/{fasp → ascp}/products.rb +1 -1
  22. data/lib/aspera/assert.rb +30 -30
  23. data/lib/aspera/cli/basic_auth_plugin.rb +11 -10
  24. data/lib/aspera/cli/extended_value.rb +1 -1
  25. data/lib/aspera/cli/formatter.rb +13 -13
  26. data/lib/aspera/cli/hints.rb +5 -5
  27. data/lib/aspera/cli/main.rb +35 -28
  28. data/lib/aspera/cli/manager.rb +25 -24
  29. data/lib/aspera/cli/plugin.rb +22 -15
  30. data/lib/aspera/cli/plugin_factory.rb +61 -0
  31. data/lib/aspera/cli/plugins/alee.rb +7 -7
  32. data/lib/aspera/cli/plugins/aoc.rb +83 -77
  33. data/lib/aspera/cli/plugins/ats.rb +32 -33
  34. data/lib/aspera/cli/plugins/bss.rb +3 -4
  35. data/lib/aspera/cli/plugins/config.rb +169 -186
  36. data/lib/aspera/cli/plugins/console.rb +8 -6
  37. data/lib/aspera/cli/plugins/cos.rb +19 -18
  38. data/lib/aspera/cli/plugins/faspex.rb +61 -54
  39. data/lib/aspera/cli/plugins/faspex5.rb +150 -103
  40. data/lib/aspera/cli/plugins/node.rb +68 -73
  41. data/lib/aspera/cli/plugins/orchestrator.rb +34 -44
  42. data/lib/aspera/cli/plugins/preview.rb +31 -31
  43. data/lib/aspera/cli/plugins/server.rb +31 -33
  44. data/lib/aspera/cli/plugins/shares.rb +13 -11
  45. data/lib/aspera/cli/sync_actions.rb +8 -8
  46. data/lib/aspera/cli/transfer_agent.rb +32 -19
  47. data/lib/aspera/cli/transfer_progress.rb +1 -1
  48. data/lib/aspera/cli/version.rb +1 -1
  49. data/lib/aspera/colors.rb +5 -0
  50. data/lib/aspera/command_line_builder.rb +14 -14
  51. data/lib/aspera/coverage.rb +1 -2
  52. data/lib/aspera/data_repository.rb +1 -1
  53. data/lib/aspera/environment.rb +2 -3
  54. data/lib/aspera/faspex_gw.rb +5 -6
  55. data/lib/aspera/faspex_postproc.rb +1 -1
  56. data/lib/aspera/id_generator.rb +2 -2
  57. data/lib/aspera/json_rpc.rb +5 -5
  58. data/lib/aspera/keychain/encrypted_hash.rb +6 -6
  59. data/lib/aspera/keychain/macos_security.rb +27 -22
  60. data/lib/aspera/log.rb +2 -2
  61. data/lib/aspera/nagios.rb +3 -3
  62. data/lib/aspera/node_simulator.rb +5 -6
  63. data/lib/aspera/oauth/base.rb +143 -0
  64. data/lib/aspera/oauth/factory.rb +124 -0
  65. data/lib/aspera/oauth/generic.rb +34 -0
  66. data/lib/aspera/oauth/jwt.rb +51 -0
  67. data/lib/aspera/oauth/url_json.rb +31 -0
  68. data/lib/aspera/oauth/web.rb +50 -0
  69. data/lib/aspera/oauth.rb +5 -331
  70. data/lib/aspera/open_application.rb +7 -7
  71. data/lib/aspera/persistency_action_once.rb +4 -4
  72. data/lib/aspera/persistency_folder.rb +2 -2
  73. data/lib/aspera/preview/generator.rb +5 -5
  74. data/lib/aspera/preview/terminal.rb +3 -2
  75. data/lib/aspera/preview/utils.rb +3 -3
  76. data/lib/aspera/proxy_auto_config.rb +4 -4
  77. data/lib/aspera/rest.rb +175 -144
  78. data/lib/aspera/rest_errors_aspera.rb +3 -3
  79. data/lib/aspera/resumer.rb +77 -0
  80. data/lib/aspera/ssh.rb +6 -1
  81. data/lib/aspera/{fasp → transfer}/error.rb +3 -3
  82. data/lib/aspera/{fasp → transfer}/error_info.rb +1 -1
  83. data/lib/aspera/{fasp → transfer}/faux_file.rb +1 -1
  84. data/lib/aspera/{fasp → transfer}/parameters.rb +58 -89
  85. data/lib/aspera/{fasp/transfer_spec.rb → transfer/spec.rb} +18 -16
  86. data/lib/aspera/{fasp/parameters.yaml → transfer/spec.yaml} +4 -99
  87. data/lib/aspera/{fasp → transfer}/sync.rb +32 -32
  88. data/lib/aspera/{fasp → transfer}/uri.rb +9 -8
  89. data/lib/aspera/web_server_simple.rb +11 -3
  90. data.tar.gz.sig +0 -0
  91. metadata +36 -63
  92. metadata.gz.sig +0 -0
  93. data/lib/aspera/aoc.rb +0 -601
  94. data/lib/aspera/ats_api.rb +0 -47
  95. data/lib/aspera/cos_node.rb +0 -94
  96. data/lib/aspera/fasp/resume_policy.rb +0 -79
  97. data/lib/aspera/node.rb +0 -339
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39632fcd4c206ad096ac2829e7bdad2c60e60af46b30efde0e1d156fe636fd2d
4
- data.tar.gz: d0df9492ca16dd9b1641c43d76dbcc714602b4e336546b4d34fa824954f2e7c7
3
+ metadata.gz: ff1358fcea41068f9c45d563e9a9853c55611f7ca67941de4f399e722e7523d7
4
+ data.tar.gz: 96ac3d8ada6aa386551f386939d215e541cea2478a1a6d169af82249966063c4
5
5
  SHA512:
6
- metadata.gz: 0d448885b689b5afe175f45af07442d0ee9e4949e9386a2944b15bf41b333d114d01b254671089a3ae003c712d8fe44b5b0d7d419c4acad21aaa962ce996d845
7
- data.tar.gz: 8c213e7b0b8c997c78fc3e2ef1e1d3b616ceef7eaa63b9a022a0d4399722655f3586065d7d385caee595770479e42f94e04bf5a582c4584446286d53c78ca78d
6
+ metadata.gz: 3e9bbf157f77d9babfb030235de132cecf7b596b1a11f2ba9a54fdb34d7a1d6d9cf5621db111e80da36ddf0234021802dfeed32a14509c452d9ecbef4f15e5cf
7
+ data.tar.gz: 580d7897a44122ab51735ef790ba1ce69692d4022cc34f85bcfeffc0b66acc02b6eb2a12ab724af3fb26d2cc481c500fcbd321a66648478bada3523549d66c8c
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,6 +1,37 @@
1
1
  # Changes (Release notes)
2
2
 
3
- * 4.16.0
3
+ * 4.17.0
4
+
5
+ * New Features:
6
+ * `faspex5`: Automatic detection of HTTPGW.
7
+ * `faspex5`: Support public and private invitations.
8
+ * `faspex5`: Public links: Auto-fill recipient.
9
+ * `faspex5`: Recursive content of package.
10
+ * `faspex5`: Folder browsing now uses paging, requires >= 5.0.8.
11
+ * `aoc`: Automatic detection of HTTPGW.
12
+ * `shares`: Added group membership management.
13
+ * Issues Fixed:
14
+ * `aoc`: `exclude_dropbox_packages` query option can be overridden (#135)
15
+ * **global**: Removed gem dependency on `bigdecimal` (not used and requires compilation)
16
+ * **global**: Tested with JRuby 9.4.6.0 (use `ServerSocket` instead of `Socket`)
17
+ * **global**: Update version for gem `terminal-table` to 3.0.2
18
+ * Breaking Changes:
19
+ * `config`: Command `remote_certificate` now takes a subcommand.
20
+ * **global**: Moved a few internal classes in new/renamed modules
21
+ * **global**: Deprecated pseudo transfer specification parameters starting with `EX_`:
22
+ * `EX_ssh_key_paths`. Use spec `ssh_private_key` or option `transfer_info={"ascp_args":["-i","..."]}`
23
+ * `EX_http_proxy_url`. Use option `transfer_info={"ascp_args":["-x","..."]}`
24
+ * `EX_http_transfer_jpeg`. Use option `transfer_info={"ascp_args":["-j","1"]}`
25
+ * `EX_no_read`. Use option `transfer_info={"ascp_args":["--no-read"]}`
26
+ * `EX_no_write`. Use option `transfer_info={"ascp_args":["--no-write"]}`
27
+ * `EX_file_list`. Use `ascli` file list feature or option `transfer_info={"ascp_args":["--file-list","..."]}`
28
+ * `EX_file_pair_list`. Use `ascli` file list feature or option `transfer_info={"ascp_args":["--file-pair-list","..."]}`
29
+ * `EX_ascp_args`. Use option `transfer_info={"ascp_args":[...]}`
30
+ * `EX_at_rest_password`. Use spec parameter `content_protection_password`
31
+ * `EX_proxy_password`. Set password in spec parameter `proxy` or use env var `ASPERA_PROXY_PASS`.
32
+ * `EX_license_text`. Use env var `ASPERA_SCP_LICENSE`.
33
+
34
+ * 4.16.0 2024-02-15
4
35
 
5
36
  * New Features:
6
37
  * **global**: option `output` to redirect result to a file instead of `stdout`
@@ -22,7 +53,7 @@
22
53
  * `shares`: option `type` for users and groups is replaced with mandatory positional argument with same value.
23
54
  * `aoc`, `faspex`: package `recv` command changed to `receive`, for consistency with faspex5 (`recv` is now an alias command)
24
55
 
25
- * 4.15.0
56
+ * 4.15.0 2023-11-18
26
57
 
27
58
  * General: removed many redundant options, more consistency between plugins, see below in "break".
28
59
  * New Features:
@@ -73,7 +104,7 @@
73
104
  * `preview`: command `scan`, `events` and `trevents` replaced option `query` with optional positional parameter for filter (like `find`).
74
105
  * **global**: agent `trsdk` parameters `host` and `port` in option `transfer_info` are replaced with parameter `url`, like `grpc://host:port`
75
106
 
76
- * 4.14.0
107
+ * 4.14.0 2023-09-22
77
108
 
78
109
  * New Features:
79
110
  * `server`: option `passphrase` for simpler command line (#114)
@@ -99,7 +130,7 @@
99
130
  * `aoc`, `node`: Simplification: gen4 operations: show modify permission thumbnail are now directly under node gen 4 command. Command `file` is suppressed. Option `path` is suppressed. The default expected argument is a path. To provide a file id, use selector syntax: %id:_file_id_
100
131
  * `node`: option `token_type` is removed, as starting with HSTS 4.3 basic token is only allowed with access keys, so use gen4 operations: `acc do self`
101
132
 
102
- * 4.13.0
133
+ * 4.13.0 2023-06-29
103
134
 
104
135
  * New Features:
105
136
  * `preview`: option `reencode_ffmpeg` allows overriding all re-encoding options
@@ -119,7 +150,7 @@
119
150
  * option `transfer_info` is now cumulative, setting several times merge values
120
151
  * change(deprecation): Removed support of Ruby 2.4 and 2.5 : too old, no security update since a long time. If you need older ruby version use older gem version.
121
152
 
122
- * 4.12.0
153
+ * 4.12.0 2023-03-20
123
154
 
124
155
  * New Features:
125
156
  * **container**: build image from official gem version, possibility to deploy beta as well
@@ -140,7 +171,7 @@
140
171
  * `shares`: similar changes for `shares admin share user show`
141
172
  * option `ascp_opts` is removed, and replaced with `transfer_info` parameter `ascp_args`
142
173
 
143
- * 4.11.0
174
+ * 4.11.0 2023-01-26
144
175
 
145
176
  * New Features:
146
177
  * **global**: `vault`: secret finder, migration from config file
@@ -161,7 +192,7 @@
161
192
  * if wss is enabled on server, use wss
162
193
  * lots of cleanup and refactoring
163
194
 
164
- * 4.10.0
195
+ * 4.10.0 2022-12-02
165
196
 
166
197
  * New Features:
167
198
  * httpgw transfer agent: support api v2, support transfer through http proxy, including proxy password
@@ -171,7 +202,7 @@
171
202
  * Breaking Changes:
172
203
  * `config`: option `secrets` is renamed to `vault`
173
204
 
174
- * 4.9.0
205
+ * 4.9.0 2022-09-15
175
206
 
176
207
  * New Features:
177
208
  * `shares`: import of SAML users and LDAP users
@@ -188,7 +219,7 @@
188
219
  * `ascli` runs as user `cliuser` instead of `root` in container
189
220
  * default access right for config folder is now user only, including private keys
190
221
 
191
- * 4.8.0
222
+ * 4.8.0 2022-06-16
192
223
 
193
224
  * New Features:
194
225
  * #76 add resource `group_membership` in `aoc`
@@ -204,7 +235,7 @@
204
235
  * default is now to hide secrets on command output. Set option `show_secrets` to reveal secrets.
205
236
  * option `insecure` displays a warning
206
237
 
207
- * 4.7.0
238
+ * 4.7.0 2022-03-23
208
239
 
209
240
  * New Features:
210
241
  * option to specify font used to generate image of text file in `preview`
@@ -223,7 +254,7 @@
223
254
  * renamed option `log_passwords` to `log_secrets`
224
255
  * removed plugin `shares2` as products is now EOL
225
256
 
226
- * 4.6.0
257
+ * 4.6.0 2022-02-04
227
258
 
228
259
  * New Features:
229
260
  * command `conf plugin create`
@@ -241,7 +272,7 @@
241
272
  * command `conf plugin list` replaces `conf plugins`
242
273
  * command `conf connect` simplified
243
274
 
244
- * 4.5.0
275
+ * 4.5.0 2021-12-27
245
276
 
246
277
  * New Features:
247
278
  * support transfer agent: [Transfer SDK](README.md#agt_trsdk)
@@ -259,7 +290,7 @@
259
290
  * `aoc admin res node` does not take workspace main node as default node if no `id` specified.
260
291
  * : `orchestrator workflow status` requires id, and supports special id `ALL`
261
292
 
262
- * 4.4.0
293
+ * 4.4.0 2021-11-13
263
294
 
264
295
  * New Features:
265
296
  * `aoc packages list` add possibility to add filter with option `query`
@@ -271,13 +302,13 @@
271
302
  * `server`: option `username` not mandatory anymore: xfer user is by default. If transfer spec token is provided, password or keys are optional, and bypass keys are used by default.
272
303
  * resource `apps_new` of `aoc` replaced with `application` (more clear)
273
304
 
274
- * 4.3.0
305
+ * 4.3.0 2021-10-19
275
306
 
276
307
  * New Features:
277
308
  * parameter `multi_incr_udp` for option `transfer_info`: control if UDP port is incremented when multi-session is used on [`direct`](README.md#agt_direct) transfer agent.
278
309
  * command `aoc files node_info` to get node information for a given folder in the Files application of AoC. Allows cross-org or cross-workspace transfers.
279
310
 
280
- * 4.2.2
311
+ * 4.2.2 2021-09-23
281
312
 
282
313
  * New Features:
283
314
  * `faspex package list` retrieves the whole list, not just first page
@@ -292,13 +323,13 @@
292
323
  * for commands that potentially execute several transfers (`package recv --id=ALL`), if one transfer fails then ascli exits with code 1 (instead of zero=success)
293
324
  * option `notify` or `aoc` replaced with `notif_to` and `notif_template`
294
325
 
295
- * 4.2.1
326
+ * 4.2.1 2021-09-01
296
327
 
297
328
  * New Features:
298
329
  * command `faspex package recv` supports link of type: `faspe:`
299
330
  * command `faspex package recv` supports option `recipient` to specify dropbox with leading `*`
300
331
 
301
- * 4.2.0
332
+ * 4.2.0 2021-08-24
302
333
 
303
334
  * New Features:
304
335
  * command `aoc remind` to receive organization membership by email
@@ -314,7 +345,7 @@
314
345
  * `aoc apiinfo` is removed, use `aoc servers` to provide the list of cloud systems
315
346
  * parameters for resume in `transfer-info` for [`direct`](README.md#agt_direct) are now in sub-key `"resume"`
316
347
 
317
- * 4.1.0
348
+ * 4.1.0 2021-06-23
318
349
 
319
350
  * New Features:
320
351
  * update documentation with regard to offline and docker installation
@@ -332,7 +363,7 @@
332
363
  * remove keys from transfer spec and command line when not needed
333
364
  * default to create_dir:true so that sending single file to a folder does not rename file if folder does not exist
334
365
 
335
- * 4.0.0
366
+ * 4.0.0 2021-02-03
336
367
 
337
368
  * New Features:
338
369
  * now available as open source (github) with general cleanup
data/CONTRIBUTING.md CHANGED
@@ -248,7 +248,9 @@ GEM_VERSION=4.11.0 make -e docker
248
248
  GEM_VERSION=4.11.0 make -e docker_push
249
249
  ```
250
250
 
251
- > **Note:** This does not use the gem locally, only the docker file is used locally, the gem is installed from rubygems.org.
251
+ > **Note:** This does not use the locally generated gem file.
252
+ Only the local docker file is used.
253
+ The gem is installed from rubygems.org. This also sets the `latest` tag.
252
254
 
253
255
  ### Development version image build
254
256