aspera-cli 4.29.1 → 4.30.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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +4 -4
- data/CHANGELOG.md +119 -0
- data/CONTRIBUTING.md +8 -1
- data/README.md +2 -0
- data/TODO.md +4 -5
- data/bin/asession +2 -2
- data/docs/README.md +616 -86
- data/docs/test-mcp-with-ai.md +4 -0
- data/lib/aspera/agent/base.rb +62 -6
- data/lib/aspera/agent/factory.rb +127 -20
- data/lib/aspera/ascp/data_repository.rb +71 -0
- data/lib/aspera/ascp/installation.rb +16 -11
- data/lib/aspera/ascp/log_analyzer/lines.rb +4 -4
- data/lib/aspera/ascp/log_analyzer/log_file.rb +5 -3
- data/lib/aspera/ascp/log_analyzer/records.rb +11 -6
- data/lib/aspera/ascp/log_analyzer.rb +43 -18
- data/lib/aspera/ascp/log_locations.rb +2 -2
- data/lib/aspera/assert.rb +8 -0
- data/lib/aspera/bundle_registry.rb +528 -0
- data/lib/aspera/cli/argument.rb +110 -0
- data/lib/aspera/cli/bool_value.rb +41 -0
- data/lib/aspera/cli/bootstrapper.rb +31 -24
- data/lib/aspera/cli/command/mount.rb +53 -0
- data/lib/aspera/cli/command/registry.rb +434 -0
- data/lib/aspera/cli/command.rb +95 -0
- data/lib/aspera/cli/command_line.rb +91 -91
- data/lib/aspera/cli/complete.rb +22 -0
- data/lib/aspera/cli/completion_actions.rb +28 -26
- data/lib/aspera/cli/context.rb +29 -6
- data/lib/aspera/cli/error.rb +39 -0
- data/lib/aspera/cli/extended_value.rb +25 -4
- data/lib/aspera/cli/formatter.rb +8 -8
- data/lib/aspera/cli/hints.rb +17 -52
- data/lib/aspera/cli/http.rb +17 -12
- data/lib/aspera/cli/mailer.rb +7 -24
- data/lib/aspera/cli/mcp/tool.rb +10 -2
- data/lib/aspera/cli/option/declarator.rb +80 -0
- data/lib/aspera/cli/option/registry.rb +74 -0
- data/lib/aspera/cli/option/source.rb +38 -0
- data/lib/aspera/cli/option/type.rb +37 -0
- data/lib/aspera/cli/option/value.rb +376 -0
- data/lib/aspera/cli/option.rb +78 -0
- data/lib/aspera/cli/options.schema.yaml +28 -783
- data/lib/aspera/cli/parser.rb +73 -41
- data/lib/aspera/cli/plugins/base.rb +122 -42
- data/lib/aspera/cli/plugins/basic_auth.rb +13 -2
- data/lib/aspera/cli/plugins/config.rb +101 -167
- data/lib/aspera/cli/plugins/factory.rb +139 -43
- data/lib/aspera/cli/plugins/mcp.rb +61 -54
- data/lib/aspera/cli/plugins/oauth.rb +19 -6
- data/lib/aspera/cli/poll.rb +14 -20
- data/lib/aspera/cli/preset_actions.rb +11 -3
- data/lib/aspera/cli/preset_manager.rb +16 -6
- data/lib/aspera/cli/result.rb +2 -2
- data/lib/aspera/cli/runner.rb +71 -99
- data/lib/aspera/cli/secret_finder.rb +1 -1
- data/lib/aspera/cli/security.rb +102 -4
- data/lib/aspera/{preview/terminal.rb → cli/terminal_image.rb} +93 -94
- data/lib/aspera/cli/vault_manager.rb +3 -3
- data/lib/aspera/cli/version.rb +1 -1
- data/lib/aspera/cli/wizard.rb +9 -3
- data/lib/aspera/coverage.rb +1 -2
- data/lib/aspera/line_logger.rb +35 -6
- data/lib/aspera/log.rb +3 -2
- data/lib/aspera/oauth/client/base.rb +19 -1
- data/lib/aspera/oauth/client/factory.rb +1 -7
- data/lib/aspera/plugin.schema.yaml +178 -0
- data/lib/aspera/plugins/alee/api.rb +25 -0
- data/lib/aspera/{cli/plugins/alee.rb → plugins/alee/commands.rb} +10 -8
- data/lib/aspera/plugins/alee/plugin.yaml +3 -0
- data/lib/aspera/plugins/aoc/admin_resources.rb +148 -0
- data/lib/aspera/plugins/aoc/api.rb +783 -0
- data/lib/aspera/{cli/plugins/aoc.rb → plugins/aoc/commands.rb} +404 -330
- data/lib/aspera/plugins/aoc/graphql.rb +45 -0
- data/lib/aspera/plugins/aoc/plugin.yaml +31 -0
- data/lib/aspera/{schema → plugins/aoc/schemas}/IBM Aspera on Cloud API-0.2.6-enhanced.yaml +15042 -7076
- data/lib/aspera/plugins/aoc/schemas/options.yaml +47 -0
- data/lib/aspera/plugins/ats/api.rb +51 -0
- data/lib/aspera/{cli/plugins/ats.rb → plugins/ats/commands.rb} +33 -33
- data/lib/aspera/plugins/ats/plugin.yaml +6 -0
- data/lib/aspera/plugins/connect/agent.rb +199 -0
- data/lib/aspera/plugins/connect/plugin.yaml +11 -0
- data/lib/aspera/plugins/connect/schemas/agent_options.yaml +6 -0
- data/lib/aspera/{cli/plugins/console.rb → plugins/console/commands.rb} +41 -33
- data/lib/aspera/plugins/console/plugin.yaml +8 -0
- data/lib/aspera/plugins/cos/api.rb +114 -0
- data/lib/aspera/{cli/plugins/cos.rb → plugins/cos/commands.rb} +19 -16
- data/lib/aspera/plugins/cos/plugin.yaml +9 -0
- data/lib/aspera/plugins/cos/schemas/options.yaml +30 -0
- data/lib/aspera/plugins/desktop/agent.rb +165 -0
- data/lib/aspera/plugins/desktop/plugin.yaml +11 -0
- data/lib/aspera/plugins/desktop/schemas/agent_options.yaml +6 -0
- data/lib/aspera/plugins/direct/agent.rb +518 -0
- data/lib/aspera/plugins/direct/plugin.yaml +11 -0
- data/lib/aspera/plugins/direct/schemas/agent_options.yaml +86 -0
- data/lib/aspera/plugins/faspex4/gateway_options.rb +18 -0
- data/lib/aspera/plugins/faspex4/gw_servlet.rb +122 -0
- data/lib/aspera/plugins/faspex4/plugin.yaml +7 -0
- data/lib/aspera/plugins/faspex4/schemas/options.yaml +57 -0
- data/lib/aspera/plugins/faspex5/api.rb +269 -0
- data/lib/aspera/{cli/plugins/faspex5.rb → plugins/faspex5/commands.rb} +152 -114
- data/lib/aspera/plugins/faspex5/faspex4_post_proc_servlet.rb +241 -0
- data/lib/aspera/plugins/faspex5/plugin.yaml +14 -0
- data/lib/aspera/{schema → plugins/faspex5/schemas}/IBM Aspera Faspex API-5.0-enhanced.yaml +279 -76
- data/lib/aspera/plugins/faspex5/schemas/options.yaml +87 -0
- data/lib/aspera/{cli/plugins/faspio.rb → plugins/faspio/commands.rb} +11 -7
- data/lib/aspera/plugins/faspio/plugin.yaml +8 -0
- data/lib/aspera/{schema → plugins/faspio/schemas}/IBM Aspera faspio Gateway API-1.0.0-enhanced.yaml +4 -2
- data/lib/aspera/plugins/httpgw/agent.rb +126 -0
- data/lib/aspera/plugins/httpgw/api.rb +411 -0
- data/lib/aspera/{cli/plugins/httpgw.rb → plugins/httpgw/commands.rb} +9 -9
- data/lib/aspera/plugins/httpgw/plugin.yaml +12 -0
- data/lib/aspera/plugins/httpgw/schemas/agent_options.yaml +24 -0
- data/lib/aspera/plugins/node/agent.rb +184 -0
- data/lib/aspera/plugins/node/api.rb +699 -0
- data/lib/aspera/{cli/plugins/node.rb → plugins/node/commands.rb} +166 -141
- data/lib/aspera/plugins/node/emulator.rb +774 -0
- data/lib/aspera/plugins/node/plugin.yaml +20 -0
- data/lib/aspera/plugins/node/schemas/agent_options.yaml +20 -0
- data/lib/aspera/plugins/node/schemas/options.yaml +190 -0
- data/lib/aspera/{cli/plugins/orchestrator.rb → plugins/orchestrator/commands.rb} +139 -110
- data/lib/aspera/plugins/orchestrator/plugin.yaml +34 -0
- data/lib/aspera/{schema → plugins/orchestrator/schemas}/IBM Aspera Orchestrator API-v1-enhanced.yaml +486 -16
- data/lib/aspera/plugins/orchestrator/schemas/options.yaml +143 -0
- data/lib/aspera/plugins/orchestrator/workflow_checker.rb +692 -0
- data/lib/aspera/{cli/plugins/preview.rb → plugins/preview/commands.rb} +53 -51
- data/lib/aspera/plugins/preview/file_types.rb +121 -0
- data/lib/aspera/plugins/preview/generator.rb +350 -0
- data/lib/aspera/plugins/preview/plugin.yaml +12 -0
- data/lib/aspera/{preview/options.schema.yaml → plugins/preview/schemas/options.yaml} +1 -1
- data/lib/aspera/plugins/preview/utils.rb +213 -0
- data/lib/aspera/plugins/server/ascmd.rb +374 -0
- data/lib/aspera/{cli/plugins/server.rb → plugins/server/commands.rb} +48 -32
- data/lib/aspera/plugins/server/plugin.yaml +9 -0
- data/lib/aspera/plugins/server/schemas/options.yaml +30 -0
- data/lib/aspera/{cli/plugins/shares.rb → plugins/shares/commands.rb} +29 -21
- data/lib/aspera/plugins/shares/plugin.yaml +10 -0
- data/lib/aspera/plugins/shares/shares_web.rb +97 -0
- data/lib/aspera/plugins/transferd/agent.rb +258 -0
- data/lib/aspera/plugins/transferd/api.rb +180 -0
- data/lib/aspera/plugins/transferd/client.rb +67 -0
- data/lib/aspera/{cli/plugins/transferd.rb → plugins/transferd/commands.rb} +43 -42
- data/lib/aspera/plugins/transferd/config_commands.rb +38 -0
- data/lib/aspera/plugins/transferd/plugin.yaml +27 -0
- data/lib/aspera/plugins/transferd/product.rb +146 -0
- data/lib/aspera/plugins/transferd/schemas/agent_options.yaml +31 -0
- data/lib/aspera/plugins/transferd/schemas/options.yaml +80 -0
- data/lib/aspera/plugins/transferd/service.rb +617 -0
- data/lib/aspera/plugins/xfer/ascp_actions.rb +131 -0
- data/lib/aspera/plugins/xfer/ascp_logs_actions.rb +198 -0
- data/lib/aspera/plugins/xfer/async_transfer_store.rb +131 -0
- data/lib/aspera/plugins/xfer/config_commands.rb +119 -0
- data/lib/aspera/plugins/xfer/helper.rb +19 -0
- data/lib/aspera/plugins/xfer/plugin.yaml +42 -0
- data/lib/aspera/plugins/xfer/schemas/agent_extension.schema.yaml +26 -0
- data/lib/aspera/plugins/xfer/schemas/options.yaml +125 -0
- data/lib/aspera/plugins/xfer/sync_actions.rb +253 -0
- data/lib/aspera/plugins/xfer/transfer_actions.rb +176 -0
- data/lib/aspera/plugins/xfer/transfer_agent.rb +505 -0
- data/lib/aspera/products/cli_v3.rb +34 -0
- data/lib/aspera/products/connect.rb +1 -1
- data/lib/aspera/products/drive.rb +29 -0
- data/lib/aspera/products/hsts.rb +34 -0
- data/lib/aspera/products/transferd.rb +25 -3
- data/lib/aspera/products.rb +54 -0
- data/lib/aspera/prompt.rb +184 -0
- data/lib/aspera/proxy_auto_config.rb +3 -3
- data/lib/aspera/rest/aspera_errors.rb +4 -38
- data/lib/aspera/rest/error_analyzer.rb +6 -2
- data/lib/aspera/rest/list.rb +4 -5
- data/lib/aspera/schema/reader.rb +15 -0
- data/lib/aspera/schema/registry.rb +239 -45
- data/lib/aspera/schema/validator.rb +63 -17
- data/lib/aspera/sealed_hash.rb +4 -0
- data/lib/aspera/secret/hider.rb +159 -24
- data/lib/aspera/secret/reference.rb +8 -0
- data/lib/aspera/secret/resolver.rb +8 -4
- data/lib/aspera/secret/store/base.rb +10 -9
- data/lib/aspera/secret/store/encrypted_hash.rb +6 -6
- data/lib/aspera/secret/store/hashicorp_vault.rb +3 -3
- data/lib/aspera/secret/store/keeper.rb +2 -2
- data/lib/aspera/secret/store/macos_security.rb +2 -3
- data/lib/aspera/secret/store/one_password_api.rb +2 -2
- data/lib/aspera/secret/store/one_password_cli.rb +3 -3
- data/lib/aspera/secret/store/secret_service.rb +2 -2
- data/lib/aspera/ssl.rb +3 -3
- data/lib/aspera/standard_input.rb +20 -0
- data/lib/aspera/{schema → sync}/async_tables.yaml +1 -1
- data/lib/aspera/sync/database.rb +7 -0
- data/lib/aspera/sync/log_parser.rb +138 -0
- data/lib/aspera/sync/operations.rb +59 -34
- data/lib/aspera/transfer/command_line_builder.rb +248 -0
- data/lib/aspera/transfer/command_line_converter.rb +37 -0
- data/lib/aspera/transfer/faux_file.rb +2 -2
- data/lib/aspera/transfer/parameters.rb +9 -10
- data/lib/aspera/transfer/spec.rb +28 -1
- data/lib/aspera/transfer/spec.schema.yaml +30 -5
- data/lib/aspera/units/decimal.rb +1 -1
- data/lib/aspera/units/timestamp.rb +84 -0
- data/lib/aspera/uri_reader.rb +2 -2
- data/lib/aspera/web_auth/paste.rb +2 -2
- data/lib/aspera/web_server_simple.rb +10 -4
- data.tar.gz.sig +0 -0
- metadata +137 -80
- metadata.gz.sig +0 -0
- data/lib/aspera/agent/connect.rb +0 -188
- data/lib/aspera/agent/desktop.rb +0 -154
- data/lib/aspera/agent/direct.rb +0 -496
- data/lib/aspera/agent/httpgw.rb +0 -100
- data/lib/aspera/agent/node.rb +0 -166
- data/lib/aspera/agent/transferd.rb +0 -341
- data/lib/aspera/api/alee.rb +0 -19
- data/lib/aspera/api/aoc.rb +0 -776
- data/lib/aspera/api/ats.rb +0 -49
- data/lib/aspera/api/cos_node.rb +0 -107
- data/lib/aspera/api/faspex.rb +0 -258
- data/lib/aspera/api/httpgw.rb +0 -409
- data/lib/aspera/api/node.rb +0 -684
- data/lib/aspera/ascmd.rb +0 -248
- data/lib/aspera/cli/ascp_actions.rb +0 -113
- data/lib/aspera/cli/ascp_logs_actions.rb +0 -188
- data/lib/aspera/cli/async_transfer_store.rb +0 -129
- data/lib/aspera/cli/command_registry.rb +0 -371
- data/lib/aspera/cli/command_spec.rb +0 -273
- data/lib/aspera/cli/option_declarator.rb +0 -74
- data/lib/aspera/cli/option_registry.rb +0 -72
- data/lib/aspera/cli/option_types.rb +0 -120
- data/lib/aspera/cli/option_value.rb +0 -345
- data/lib/aspera/cli/prompt.rb +0 -186
- data/lib/aspera/cli/sync_actions.rb +0 -181
- data/lib/aspera/cli/transfer_actions.rb +0 -98
- data/lib/aspera/cli/transfer_agent.rb +0 -348
- data/lib/aspera/command_line_builder.rb +0 -244
- data/lib/aspera/command_line_converter.rb +0 -35
- data/lib/aspera/data_repository.rb +0 -69
- data/lib/aspera/faspex_gw.rb +0 -172
- data/lib/aspera/faspex_postproc.rb +0 -237
- data/lib/aspera/graphql.rb +0 -41
- data/lib/aspera/node_emulator.rb +0 -758
- data/lib/aspera/oauth/client/shares_web.rb +0 -94
- data/lib/aspera/orchestrator_workflow_checker.rb +0 -688
- data/lib/aspera/preview/file_types.rb +0 -119
- data/lib/aspera/preview/generator.rb +0 -345
- data/lib/aspera/preview/utils.rb +0 -211
- data/lib/aspera/products/other.rb +0 -92
- data/lib/aspera/products/transferd_service.rb +0 -610
- /data/lib/aspera/{data → ascp/data}/1 +0 -0
- /data/lib/aspera/{data → ascp/data}/2 +0 -0
- /data/lib/aspera/{data → ascp/data}/3 +0 -0
- /data/lib/aspera/{data → ascp/data}/4 +0 -0
- /data/lib/aspera/{data → ascp/data}/5 +0 -0
- /data/lib/aspera/{data → ascp/data}/6 +0 -0
- /data/lib/aspera/{api → plugins/aoc}/queries/bss_subscription_account.graphql +0 -0
- /data/lib/aspera/{api → plugins/aoc}/queries/bss_subscription_usage.graphql +0 -0
- /data/lib/aspera/{schema → plugins/aoc/schemas}/IBM Aspera on Cloud Automation API-1.0.5-enhanced.yaml +0 -0
- /data/lib/aspera/{schema → plugins/console/schemas}/IBM Aspera Console-enhanced.yaml +0 -0
- /data/lib/aspera/{schema → plugins/node/schemas}/IBM Aspera Node API-4.4.6.yaml +0 -0
- /data/lib/aspera/{preview → plugins/preview}/image_error.png +0 -0
- /data/lib/aspera/{preview → plugins/preview}/video_error.png +0 -0
- /data/lib/aspera/{schema → plugins/shares/schemas}/IBM_Aspera_Shares.yaml +0 -0
- /data/lib/{transferd_pb.rb → aspera/plugins/transferd/grpc/transferd_pb.rb} +0 -0
- /data/lib/{transferd_services_pb.rb → aspera/plugins/transferd/grpc/transferd_services_pb.rb} +0 -0
- /data/lib/aspera/{schema → plugins/transferd/schemas}/transferd-config.schema.json +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e5b21db4390ea766b4838211f0348d57b12fcc2b9544cb48b67d99ce550bc40c
|
|
4
|
+
data.tar.gz: b27315196ae5fcbbbc57ef6c6f1e62cdd4e3c597fc3f3a069a583e40fb9c0026
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ad22927c9aee141490dcb63fc5ac7b9d3632918d9920aaca47f8de494d3942e9226ccdcc6c8355b9d64d12314fe13836be0057dc2cf94847564c2077c9f956ce
|
|
7
|
+
data.tar.gz: '05169ac97b7420709dc7f318a77f0490c9ba08be42ad13de35b4f3c0bc681e30687c271a1885d86dd23b460dd77443531e9e5366ed8a242012f80e3f12aaefe7'
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
G
|
|
3
|
-
|
|
4
|
-
�
|
|
1
|
+
3�!� ��
|
|
2
|
+
�#�쯻G"e@��T/�� ��Vľ6J�1<O�I#���t���2w��iWm:65ıhՙ�.��b=G�U-[��x ԭ��_\����U���ş�N:�����U.L�A�����~;�B��{��Y��S��X��R���ciu��4Uc���2S�nܹ�� ��/��qJ�3�!}���O�DF$��^�`ME��hYq��T�����suy�[��]F�䥟|�H�P�j̮���
|
|
3
|
+
�^�U�M��DP�(4�r��P�ek����e�
|
|
4
|
+
(d;�@w�(V�ʩi��4(���dp��E�G�,�e|���QG�߄�X�+5��L�C�Ϭdod�G�/`����L$�b���1SiB�t����V�F���v�
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,124 @@
|
|
|
1
1
|
# Changes (Release notes)
|
|
2
2
|
|
|
3
|
+
## 4.30.0
|
|
4
|
+
|
|
5
|
+
Released: 2026-11-28
|
|
6
|
+
|
|
7
|
+
### New Features
|
|
8
|
+
|
|
9
|
+
* Option `plugin_folder`: `--show-config` lists all the folders given (it showed only the last one), and `DEF` (the default) is the folder `plugins` of the configuration folder. `--plugin-folder=@json:[]` uses no plugin folder other than the one of the gem.
|
|
10
|
+
* Development version of the gem: built from `main` every day it changes, not signed, and attached as `aspera-cli-nightly.gem` to the GitHub pre-release `nightly`. Its version is the version in development followed by the number of commits of `main`, e.g. `4.30.0.pre.5592`. See the manual, section "Installing the development version of the gem".
|
|
11
|
+
* Options `node_api`, `ssh_options` (`server`) and `service_credentials` (`cos`) have a schema: `help` as value shows their parameters (e.g. `--node-api=help`), and a value is checked when the option is set. `--transfer=help` shows the parameter `asynchronous`, common to all agents.
|
|
12
|
+
* Plugin bundles: a plugin of a plugin folder (option `plugin_folder`) can be a folder `<name>/` with a manifest `plugin.yaml`, in addition to a single file `<name>.rb`. A bundle has its commands, and can add a transfer agent (value of option `transfer`, with the schema of its parameters), schemas, commands to another plugin (e.g. `config`), services shared with other bundles, instructions for the AI client of `mcp server` (section `mcp`), and can depend on other bundles. A bundle that cannot be used (invalid manifest, missing dependency or gem) is listed with its reason, and the other plugins work. The built-in plugins and transfer agents are bundles too. See the manual, section "Writing a plugin bundle".
|
|
13
|
+
* `config plugins list`: shows the folder of a bundle as `path`, has a column `status` (`available`, or the reason why the plugin is unavailable), and lists the unavailable plugins. New command `config plugins show <NAME>`: title, source, form, path, security level, status, commands, agents, schemas, mounts, services, extension points, dependencies and missing gems of a plugin, without loading its code.
|
|
14
|
+
* `ascli <NAME>` for an unavailable plugin gives the reason, and a transfer agent of an unavailable plugin gives `plugin <NAME> is unavailable: <REASON>`. The error of an invalid value of option `transfer` also lists the agents added by plugin bundles.
|
|
15
|
+
* Extended value `@stdin:stream`: the standard input, read by a command that reads a file (`config ascp logs`, `sync logs`), as it reads the file (e.g. gzip is detected). The argument `-` of these commands is short for it. It is refused by other options and arguments, and with a decoder (use `@stdin:`).
|
|
16
|
+
* New command `sync logs` (also `server sync logs`, `node sync logs`): it reads the `async` (IBM Aspera Sync) log files of the local host and reports only the notable events, so a drift between two folders is easy to find: file conflicts and errors (`SYNC FILE STOP` with `status=CONFLICT` or `ERROR`), unsupported file-system events, session start/stop/idle, and `ERR`-level lines. With no argument it reads the log at the default location (`~/Library/Logs/Aspera/async.log` on macOS, `syslog` on Linux and Unix); a path, a folder, a `gzip` file, or `-` (standard input) can be given. The paths are checked against the security level, like `@file:`.
|
|
17
|
+
* Agent `transferd` with port zero (the default `url`): the port of the daemon started is read from the file that `transferd` 1.1.7 and later writes once it listens, else from its log (it was read only from the log). This file is in a folder of this daemon only, readable only by the user, and deleted when the daemon is stopped.
|
|
18
|
+
* `aoc admin group list` and `aoc admin group_membership list`: `--query=help` lists the query parameters (filters, `sort`, `q`, `embed[]`...), and `create` shows the fields of the group or membership.
|
|
19
|
+
* New command `aoc admin group_permission`: owners and managers of groups (tab **Managers** of a group in the web UI), with `list`, `show`, `create`, `modify` (only the level: `owner` or `manager`) and `delete`. `--query=help` lists the query parameters (`group_id`, `entity_type`, `entity_id`, `sort`, `q`, `embed[]`...), and `create` shows the fields. See the manual, section "Example: Owners and managers of a group".
|
|
20
|
+
* `aoc admin kms_profile` and `aoc admin saml_configuration`: `create` and `modify` show the fields (`modify <ID> help`), and `list --query=help` the query parameters. `aoc user preferences modify`, `aoc user notifications modify`, and the same commands of `aoc admin user`, show the fields.
|
|
21
|
+
* New `aoc admin` resources: `distribution_list` and `distribution_list_membership` (lists of email addresses and groups of a user or a workspace, recipients of packages), `app_collaborator` (allow list of the Files and Packages apps of a workspace), `connect_suppressed_permission` (users and groups that use the HTTP Gateway instead of IBM Aspera Connect), `client_authorization` (users and groups allowed to use an API client), `email_template` (`list`, `show`, `modify`, and `effective`: the templates used for the organization, a workspace or a shared inbox), `trend_micro_profile` and `watermark_profile`, and `file_deletion_policy show` (nodes of a storage, `--query` with `node_id`). `aoc admin organization modify`. New commands `aoc admin integrations list` (integrations and their options: providers and regions of watermarking and Trend Micro profiles) and `aoc admin integrations watermark_identity <ID>` (user of a watermark), and `aoc user file_upload_notifications` (`list`, `create`, `modify`, `delete`). `create` and `modify` show the fields, and `list --query=help` the query parameters.
|
|
22
|
+
* `aoc admin dropbox join_request <ID> list|show|approve|delete`: requests to submit packages to a shared inbox made with its self registration link (approval required), `approve` and `delete` (reject) send emails; `aoc admin dropbox update_self_registration_link <ID>` renews the link. `aoc admin network_policy initiation_rule|access_control_rule <ID> list|create|delete`: the rules of a network policy, which `ascli` could not create (a policy `allow_following` without rules blocks the transfers with all nodes); the `policy_setting` of an access control rule is optional, derived from the type of the policy as in the web app. `aoc admin user invite <ID>` sends again the invitation of a user. `aoc admin user|group shared_folders <ID>`: the shared folders that a user or a group can access, on all nodes. `aoc admin kms_profile nodes <ID>`. `aoc packages download_counts <ID>` and `aoc admin package download_counts <ID>`: the downloads of a package by user. In these commands, option `query` cannot change a parameter given by the command (e.g. `member_id`), and the objects of its `embed[]` are added to `user`. `create` and `modify` of `aoc admin dropbox` show the self registration fields, and those of `aoc admin network_policy` the corrected fields (e.g. `access_control_type` `disallow_following`), with `list --query=help` its query parameters.
|
|
23
|
+
* New extended value `@date:`: a date and time in UTC, ISO 8601 (e.g. `2026-11-27T09:00:00Z`), from an absolute date (e.g. `2026-11-27 10:00:00`, local time unless a time zone is given), or from `now`, `today`, `yesterday`, `tomorrow` optionally followed by `-` or `+` and a duration, e.g. `@date:now-24h`, `@date:today+9h`. A duration alone, e.g. `24h` or `3600`, is refused, with a hint (use `now-24h`). Embedded with `@extend:` in a query, e.g. `--query=@json:@extend:'{"q":"last_login_at:<@date:now-730d@"}'`, it replaces Ruby code (`@ruby:`, refused at security levels `medium` and `high`). See the manual, section "Dates". The help (`ascli -h`) describes it and durations: it described a date syntax (`now`, `-<num>h`) not accepted since version 4.24.0.
|
|
24
|
+
* `console transfer current list`: query parameters `from` and `to` also accept the syntax of `@date:`, e.g. `--query=@json:'{"from":"now-2h"}'`. A date without time zone is in UTC, as for Console.
|
|
25
|
+
|
|
26
|
+
### Issues Fixed
|
|
27
|
+
|
|
28
|
+
* `console transfer current list` without `from` and `to`: the default period (the last 24 hours) was computed in local time, but Console reads these dates in UTC, so the period was shifted by the offset of the local time zone, e.g. at UTC-5 the transfers of the last 5 hours were not listed.
|
|
29
|
+
* Agent `transferd`: the daemon started by `ascli` had no authentication: during the transfer, another user of the host could call its API on the local port. It now requires an API key: the one of parameter `api_key`, else a random one, sent by `ascli` in each call. Its configuration file, in the temporary folder, is readable only by the user (it was readable by all). A daemon left running (`stop` is `false`) gets the key of parameter `api_key`, else it has no authentication, with a warning.
|
|
30
|
+
* `server ls`, `du`, `md5sum`, `rm`, `mv`, `cp`, `mkdir` with several paths: only the result of the last path was shown, e.g. `server du <PATH_A> <PATH_B>` showed the size of `<PATH_B>`, and `server ls <FILE> <FOLDER>` did not list the folder. When a path failed and another one succeeded, the error was `unexpected value: 2` (the other paths were processed), and when several failed, only the last one was reported. All results are now shown, and each failed path is reported with its error, after all paths are processed.
|
|
31
|
+
* `server` commands executed by `ascmd` (`ls`, `rm`...): a path with newlines was sent as several command lines, and the lines between the first and the last one were executed as commands of `ascmd` (e.g. `as_rm`), for example with a file name made for that. A newline or NUL character in a path is now refused, as is a command longer than what `ascmd` reads (4094 bytes, it stopped with `Internal server error`). An error of `ascmd` itself (e.g. usage) showed errno `4294967295` instead of `-1`, and a date before 1970 was wrong.
|
|
32
|
+
* `server` commands executed by `ascmd` (`ls`, `rm`, `mkdir`...): an error returned by the server was reported as `Argument`, exit code `2` (command line error), e.g. `server browse /no-such-folder`. It is now reported as `ascmd`, with the exit code of its category: `4` when the file or folder is not found (also a path below a file), `3` when the access is refused (permissions, or a path outside the docroot), else `7` (error of a remote API). With several paths, the code is `4` or `3` only when all paths failed for that reason. The error numbers of a Windows server, which differ, are taken into account.
|
|
33
|
+
* `aoc` with `--auth=web` and no `client_id`: the global client was used, and AoC refused the login in the browser (_Add the redirect URI for your API client..._). `ascli` now stops before opening the browser, with an error that tells to set `client_id` and `client_secret` of an API client of the organization. The manual stated that the default of `auth` is `web` and the one of `redirect_uri` is `http://localhost:12345`: the default of `auth` is `jwt`, and `redirect_uri` has no default.
|
|
34
|
+
* Errors caused by a value given by the user were reported as a bug of `ascli`: `Other(Aspera::AssertError): assertion failed: ...`, exit code 1, with the location in the code. For example: an element that is not a string in a list option (`--plugin-folder=@json:'[1]'`), parameters of `sync_info`, of `transfer_info` or of the transfer spec (`paths` without `source`), of `smtp`, a `--query` that is a list, package ids, the configuration file. They are now reported as `Argument` (exit code 2), and a shared folder not found (`aoc`, `faspex5`) as `Identifier` (exit code 4). Errors of parameters found by the library of the gem, and not converted by the command, were also reported as `Other` (e.g. `Missing mandatory option: private_key` of `aoc` with `--auth=jwt`): they are now reported as `Argument`. A component missing on the system is reported as `Environment`: no `ascp` or SDK installed, font of `magick`, H.264 encoder of `ffmpeg`, tool used for previews.
|
|
35
|
+
* Other errors that are not a bug were also reported as `Other(<class>)`, with the location in the code. They are now reported without location: errors of secret references and of option `vault` as `Vault`; a secret not found, or several secrets with the same label, in all stores, as `Identifier` (exit code 4), as is a lookup by name (`%name:`) that matches several entities; a wrong password of the vault file, and a passcode or public link refused by Faspex 5, as `Authentication` (exit code 3); parameters of `sync` (`local_db_dir`), metadata of an `aoc` package (`missing mandatory field: ...`), the URL of `httpgw` and a `faux:` path (it was `Transfer`, exit code 5) as `Argument` (exit code 2); a graphical environment required (agents `connect` and `desktop`) and the requirements of the service of `transferd` (Linux with systemd, root) as `Environment`; a remote command that failed as `SSH`; other failures of a remote service as `Error`.
|
|
36
|
+
* Agent `node` with a bearer token and no `root_id`: the error said `root_id not allowed for access key`, it is required.
|
|
37
|
+
* Agent `transferd`: a `url` without port is refused, with the expected format (the daemon was started, and the connection to it failed).
|
|
38
|
+
* Options `log`, `out` and `node_api`: an unknown key was reported as a bug (`Other(Aspera::InternalError)` or `assertion failed`). It is now refused with its path, like for the other options with a schema, e.g. ``object property at `/levl` is a disallowed additional property``, as is a value of `node_api` that is not a boolean.
|
|
39
|
+
* Option `smtp`: an unknown key, or a value of a wrong type, was refused only when an email was sent: it is now refused when the option is set. The manual stated that the default of `domain` is the domain part of `server`: it is the one of `from_email`.
|
|
40
|
+
* Option `transfer`: an unknown parameter, or a parameter of another agent (e.g. `wss` with agent `node`), was refused only when the transfer started, with the Ruby error `unknown keyword`: it is now refused when the option is set. Same for parameter `resume` of agent `direct`, and for option `image` (`out.img`), refused only when an image was displayed.
|
|
41
|
+
* Manual: option `node_api` has no parameter `per_page`: it is a parameter of option `query`.
|
|
42
|
+
* `--transfer=node` without `url` and without default `node` configuration: the message `No default node configured. Please specify --transfer.url or --transfer` was a Ruby error (`NameError`, reported as a bug of `ascli`). It is now the `Argument` error with that message.
|
|
43
|
+
* Plugin of a single file `<name>.rb` with `_` in its name (e.g. `my_app.rb`): help and `poll` messages showed the name of the class in lower case (`myapp`), they now show the name of the file.
|
|
44
|
+
* `mcp server`: the commands sent by the client ran in the default home (`~/.aspera/ascli`, or env `ASCLI_HOME`) instead of the main folder of the server (option `home`). They now run in the main folder of the server; the client still cannot change it at security levels `medium` and `high`.
|
|
45
|
+
* `mcp server`: the commands sent by the client could choose the configuration file with option `config_file`, and so read, create, modify or rename a file of the server, also outside `writable_paths`. The option is now refused at security levels `medium` and `high`, and the commands of the client use the configuration file of the server.
|
|
46
|
+
* `mcp server`: the commands sent by the client could choose the vault with option `vault` (and its password with `vault_password`), and so create a vault file outside `writable_paths`, or make the server connect to a host of their choice (HashiCorp Vault, Keeper, ...). The options are now refused at security levels `medium` and `high`, and the commands of the client use the vault of the server, also when it is set in a preset of its configuration file.
|
|
47
|
+
* `mcp server`: the commands sent by the client could start a transfer with an agent that runs on the local host (`direct`, a local `transferd` daemon, `connect`, `desktop`, `httpgw`), which reads and writes local files and runs local programs. At security level `high` (the default in MCP server mode), a transfer now uses an agent that the user controls on a remote host (`node`, or `transferd` attached to a remote daemon): an agent that runs on the local host is refused, with a message that tells to select a remote agent. In addition, the parameters that pass raw arguments to `ascp` or `ssh` (`ascp_args` of agent `direct`, `ssh_args` of the transfer spec) can start a local program (for example an `ssh` `ProxyCommand`): they are now refused at security levels `medium` and `high` (they execute code, allowed at level `low` only).
|
|
48
|
+
* `mcp server`: a command sent by the client could redirect the saved credentials of the server to a host it chose: by combining a preset that holds a secret with its own `url` (the `url` of the command line overrode the one of the preset, but the secret stayed from the preset, and was sent to the host of the client), by referring to the secret with `@preset:<NAME>.password` or `@vault:` next to its own `url`, in a preset given as a `Hash` (`--preset=@json:...`), or by changing the configuration: a new preset with its own `url` and a copy of the secret, or another `url` in the preset of the server; also with another `url` for agent `node` in option `transfer` (`--transfer=@preset:<NAME> --transfer.url=...`), or another `remote_host` in option `ts`, which received the credentials of the transfer spec of the command (e.g. the password of a `server` preset). At levels `medium` and `high`, a secret of the configuration of the server (read from a preset or from the vault, whatever the way it is referred to, or set in the environment: options `password`, `client_secret`, `private_key`, `passphrase`, and these keys and `api_key` in an option with a key `url`, such as `transfer`) is now sent only to a `url` of the configuration (or of the environment), option `ts` cannot change the `remote_host` of the credentials of a transfer (unless that host is in the configuration, or the credentials are given with it), and the configuration is read-only: commands that change presets or the vault are refused.
|
|
49
|
+
* `mcp server`: the commands sent by the client could disable or redirect the validation of a server certificate, or route through a proxy, and so intercept the connections of the server and its credentials (man-in-the-middle): options `insecure`, `ignore_certificate`, `cert_stores`, `http_proxy`, and the keys `ca_file`, `verify_mode` and `ssl_options` of option `http_options`. They now require security level `low`: refused at levels `medium` and `high`.
|
|
50
|
+
* `mcp server`: the commands sent by the client could start a local server that listens on the network and serves a folder of the host or accepts transfers: `node emulator` (`simulator`), `aoc gateway`, `faspex5 gateway`. These commands, like `faspex5 postprocessing`, now require security level `low`: they are refused, and not listed by `config commands`, at levels `medium` and `high`.
|
|
51
|
+
* `mcp server`: several commands read or wrote a local path chosen by the client without the security check, so at level `high` the client could read a file, enumerate a folder (following symbolic links), write or replace a file, or run a local program on a local file: `config ascp logs`, `config sync admin` (and `server`/`node sync admin`), `preview test` and `show`, `orchestrator workflows import` and `check_import` (read); `config genkey` and `config plugins create` (write); `config image` with a `file:` URL (read). These paths are now checked against the security level, like `@file:`: refused at level `high`, and limited to `allowed_paths` (read) or `writable_paths` (write) at level `medium`, where a missing path and one outside the allowed paths give the same error (no path-existence oracle). At level `medium`, a file or folder found in a folder given to `config ascp logs` is skipped when it is outside of `allowed_paths` (symbolic link), and the database of `sync admin` is checked also when its folder (`local_db_dir`) or the session name comes from `sync_info`. The argument `-` (standard input) of `config ascp logs` read the JSON-RPC stream of the MCP server (stdio): it is now refused in MCP server mode, as `@stdin:`; for the other commands, `-` was left unchecked (a file named `-`), it is now a path checked as any other. The `sync` transfer commands (`push`, `pull`, `bidi`) run the local `async` program and are refused at level `high`. Raw SQL (option `sql` of `sync admin`) can write a file (for example `VACUUM INTO`), and options `sdk_folder` (the folder `ascp` is run from) and `temp.folder` (`temp_folder`, where temporary files are written) let the client choose a local path: they are refused at levels `medium` and `high`.
|
|
52
|
+
* Option `security`, `writable_paths` (levels `medium` and `high`, e.g. `mcp server`): a symbolic link in a folder of `writable_paths` to a file that does not exist was accepted as a path to write, and the file was then created where the link points, also outside `writable_paths` (e.g. a plugin in the folder `plugins`). Such a link is now refused, also as a parent folder of the path.
|
|
53
|
+
* `config web_login`: about 1 code in 64 started with `-`, and `ascli config web_login <code>` then read the code as an option (`Missing argument: code`). A code no longer starts with `-`. For Shares, install the updated patch `docs/shares/zz_saml_cli_relay_state.rb`, which makes the codes on the server.
|
|
54
|
+
* `sync push|pull|bidi` with `sync_info` in `conf` format: the remote password and token were in the command line of `async` (`--conf64`, base64 of the configuration), visible to the other users of the host (`ps`), and shown in the debug log (`--log-level=debug`). They are now given in environment variables `ASPERA_SCP_PASS` and `ASPERA_SCP_TOKEN`, hidden in logs, and the value of `--conf64` is hidden in logs.
|
|
55
|
+
* Logs at levels `debug`, `trace1` and `trace2`: some secrets were in clear. At `trace1` and `trace2`: the tokens of an OAuth token response (`access_token`, `refresh_token`, `id_token`) and the credentials of the token request (`client_secret`, `code`, `code_verifier`, the JWT `assertion`, also at `debug` in the URL with `faspio --auth=jwt`). At `debug`: the authorization code of a browser login, in the access log of the local web server (always with `config web_login`). At all three levels: the passcode of a Faspex 5 public link, in the context of the link (base64 JSON in the URL, given in option `url` or returned as `access_url` by `faspex5 invitations create|list`), and the code of its login. At `trace2`: the values of cookies. These values are now hidden, as are the secrets in the JSON, form or URL query bodies of HTTP requests and responses. In command output, the context of a public link given in an option (e.g. `url` of a preset) is hidden too; `access_url` in a result is shown. The logs no longer hide values that are not secrets, e.g. `"token_type": "bearer"`, `access_key`, `public_key`. Still in clear at `trace2`: a secret split across two lines of the debug output of `Net::HTTP` (body over 16 KiB, or chunked).
|
|
56
|
+
* `sync push|pull|bidi` in continuous mode (`"mode":"continuous"`): `ascli` stopped `async` about 10 seconds after the end of the first activity, when `async` closes its management port (it reports each activity period as a session). `ascli` now waits for the end of `async` (e.g. Ctrl-C, or `asyncadmin --terminate`).
|
|
57
|
+
* `sync admin` (also `server`/`node sync admin`): the snap database (`snap.db`) was opened read-write while `async` may have it open during a synchronization, so a query (for example option `sql`) could modify the live database (`UPDATE`, `DELETE`, or `VACUUM INTO` to write a file). The database is now opened read-only, so these subcommands cannot change it.
|
|
58
|
+
* `sync push|pull|bidi` (`conf` format): the parameters of option `transfer` (and the deprecated `transfer_info`) had no effect, because `ascli` always ran `async` with the `direct` agent and its defaults. They are now passed to the agent (as for a regular transfer): for `async`, `quiet` (`async` native progress) and `spawn_timeout_sec` have an effect; the `ascp`-only parameters (`ascp_args`, `wss`, `resume`, ...) do not. `sync` still always uses the `direct` agent, so a parameter meant for another agent (for example the `url` of `node`) is ignored.
|
|
59
|
+
* `--transfer=transferd` without the optional gem `grpc`: `ascli` stopped with a Ruby error and a stack trace (`cannot load such file -- grpc (LoadError)`). It now tells to install the gem: `agent transferd requires gem grpc: gem install grpc`.
|
|
60
|
+
* `server`: in a terminal, after a failed SSH authentication, the password was asked (`<USER>@<HOST>'s password:`, by Net::SSH), also with `--interactive=no`, so a script or a recording waited for an input instead of failing. The command now fails (`SSH: Authentication failed`, exit code `3`), and the password (or the passphrase of a key) is asked only with `--interactive=yes`. Parameter `non_interactive` of option `ssh_options` overrides it.
|
|
61
|
+
* Transfer spec, parameters `exclude_newer_than` and `exclude_older_than`: an integer, as in the examples of the manual (hot folder, `"exclude_newer_than":-8`), was refused (`value at /exclude_newer_than is not a string`). An integer or a string of an integer is now accepted, and each agent gets the type that it reads: a string for the Node API and `transferd` (the Node API ignores a number, `transferd` refuses it), an integer for Connect, which ignored the string, so no file was excluded. A negative (relative) time, that Connect also ignores, is refused with agent `connect`.
|
|
62
|
+
* `config preset get <NAME> <PARAMETER>`: a value whose extended value is not a string, e.g. `@none:` or `@json:[1,2]`, gave a bug of `ascli` (`Other(ArgumentError): text result data: expecting type String...`): it is now shown as by `config echo`, e.g. `<null>`.
|
|
63
|
+
* `config preset secure <NAME>` with a preset that does not exist: it displayed `Secrets secured in vault` and did nothing. It now fails with `no such preset`, as `preset show`. `GLOBAL` is the global default preset, as for the other `preset` commands.
|
|
64
|
+
* Agent `transferd`: the first start of the daemon failed at times, with `assertion failed: Daemon started with PID <PID>, but connection failed to 127.0.0.1:55002`: the daemon did not listen yet 2 seconds after its start (e.g. first execution of its executable). The connection is now retried until the daemon answers, for up to 10 seconds, else the error names the files of its logs. An error that waiting does not fix (e.g. several port files of the daemon) is reported at once.
|
|
65
|
+
* Agent `transferd`: a `url` without address (e.g. `:55002`, as in the manual) failed in the commands of plugin `transferd` (`info`, `transfers`) and for the status of asynchronous jobs (`Unavailable: errors resolving :55002`): address `127.0.0.1` is used, as by the agent.
|
|
66
|
+
* `config agents jobs list`: the status of the jobs not ended is queried, as with `status`: it showed the saved status, e.g. `running` and `bytes_transferred` `0` for a transfer completed, until `status` was called. The agents of 10 jobs are queried at a time, so an agent that does not answer costs its call timeout once for 10 jobs. When the agent gives no status, the saved one is shown, with a warning.
|
|
67
|
+
* `config agents jobs status`: when the agent gave no status (e.g. `Unauthenticated: missing api_key`, daemon not reachable), `unknown` and the error replaced the saved status, and the error stayed after a later successful query. The saved status is now kept and shown with the error, the error of a previous query is removed once the agent gives the status, and a job ended (`completed`, `failed`, `cancelled`) is not queried again. For agents `direct` and `httpgw` after a restart of `ascli`, the last saved status is shown with a `note` (it was `unknown`).
|
|
68
|
+
* OAuth (e.g. `aoc`, `faspex5`): a token cached for an API client was used with another API client (`client_id`) of the same server and user, until it expired: e.g. a test of a new client used the token of the previous one. A token is now cached for each API client. After the upgrade, a new token is generated once for each user (with `--auth=web`, one more login in the browser), and the files of the previous tokens are removed by the cleanup of expired tokens.
|
|
69
|
+
* Public keys were masked (`-----BEGIN PUBLIC KEY-----***-----END PUBLIC KEY-----`) in results, unless option `out.secrets` was `yes`, e.g. `config pubkey`, and field `public_key` of `faspex5 admin oauth_clients show`, of AoC users and API clients. Only private keys are masked.
|
|
70
|
+
* `aoc admin usage_reports` with `workspace_id` in option `query`: the parameter was sent twice, with the current workspace and with the value of the query. It is now refused, with a message, unless it is the current workspace.
|
|
71
|
+
* `aoc admin group_membership modify` is removed: AoC cannot modify a group membership (delete it and create another one).
|
|
72
|
+
* `aoc admin contact show|modify|delete` and `aoc user contacts show|modify|delete` are removed: they always failed (`404`). AoC can only list and create contacts: a contact is a user, group, shared inbox or distribution list (`source_type`, `source_id`), with no identifier of its own.
|
|
73
|
+
* `aoc admin short_link show` is removed: it always failed (`404`), AoC has no `GET /short_links/{id}`, and the list cannot be filtered by identifier. Use `list` (`--query` filters on `purpose` and `user_id`), or `short_link show` of `files` or `packages shared_inboxes`.
|
|
74
|
+
* `aoc admin auth_providers update` was not implemented. It is replaced by `show` and `modify` (`modify <ID> help` shows the fields: `name`, `enabled`, `login_text`, `configuration`, `included_domains`, `excluded_domains`), and `list --query=help` no longer fails.
|
|
75
|
+
* `help` as value of the `Hash` argument of `aoc admin client_access_key create|modify`, `client_registration_token create|modify` and `operation modify` failed with a bug of `ascli` (`assertion failed: schema: ...`). The fields are now shown, and `modify` of all admin resources shows the fields of a modification, no longer those of a creation; `workspace modify <ID> help` shows the fields of a workspace. `client_access_key list --query=help` shows the query parameters (it showed none).
|
|
76
|
+
* `aoc admin kms_profile`, `saml_configuration`, `configuration_policy`, `client_registration_token` and `short_link` with an identifier given by a field (`%name:<NAME>`) failed with `500 Internal Server Error`: AoC fails on parameter `q` of these lists, used to search the value. The value is now searched in the whole list, in the field given (e.g. `%name:`, `%short_url:`).
|
|
77
|
+
* Manual, section "Calling AoC APIs from command line": the `curl` example failed. It used a token with user scope (`group_memberships` requires `aoc admin bearer_token`), embedded `dropbox` and `workspace`, which a group membership does not have (the example printed ` -> `), and lacked option `-g` (`curl` read `embed[]` as a URL range). It now lists the group and member names, also with `aoc admin group_membership list`, where a query parameter with several values is an array with `[]` in its name (`"embed[]":["group","member"]`).
|
|
78
|
+
|
|
79
|
+
### Breaking Changes
|
|
80
|
+
|
|
81
|
+
* Option `plugin_folder`: the folders given replace the folder `plugins` of the configuration folder (they were added to it). To use both, add `DEF`, e.g. `--plugin-folder=DEF --plugin-folder=<FOLDER>`. A warning tells when that folder has plugins and is not used.
|
|
82
|
+
* Extended value `@env:` of an environment variable that is not set is an error, with the name of the variable: `environment variable <NAME> is not set` (exit code 2). It was `null`, without error: a typo in the name gave a misleading error later, e.g. `--password=@env:<NAME>` gave `Either password, key, or transfer spec token must be provided`. A preset that refers to a variable not set (`@env:`) fails when it is used, also when the command does not need that option.
|
|
83
|
+
* `server du` and `server md5sum`: the result is a list with one row per path, with column `path` (it was a single object, of the last path only).
|
|
84
|
+
* `server df`: the column of the type of file system is `type` (it was `is_a`).
|
|
85
|
+
* An unknown key in options `smtp`, `transfer` and `image` (`out.img`) is refused when the option is set: a preset with such a key makes every command fail, also one that does not send an email, transfer or display an image. An unknown key is refused (it was ignored) in option `package_folder` (`aoc`), in the parameters of `node telemetry`, and in the plugin set of `orchestrator plugins reload_set` (it was sent to Orchestrator).
|
|
86
|
+
* Security level `high` (the default in MCP server mode) now refuses a transfer agent that runs on the local host (`direct`, a local `transferd` daemon, `connect`, `desktop`, `httpgw`): a transfer uses a remote agent that the user controls (`node`, or `transferd` with a `url` to a remote daemon). The default agent is `direct` (local): on the command line, a transfer at level `high` without an agent is refused with a message that tells to select a remote agent (level `high` is not the default on the command line). The parameters that pass raw arguments to `ascp` or `ssh` (`ascp_args` of agent `direct`, `ssh_args` of the transfer spec) are refused at levels `medium` and `high`: they can start a local program, so they are allowed at level `low` only.
|
|
87
|
+
* Security levels `medium` and `high`: a secret of the configuration (read from a preset or from the vault, or set in the environment) is sent only to a `url` of the configuration (or of the environment), so option `url` on the command line with another URL than the one of the preset that carries a secret (`password`, `client_secret`, `private_key`, `passphrase`), or next to a reference to such a secret (`@preset:`, `@vault:`), is refused; so is another `url` for the secret of agent `node` of option `transfer`, and another `remote_host` in option `ts` for the credentials of the transfer spec of the command (`remote_password`, `token`, `ssh_private_key`, `ssh_private_key_passphrase`), unless the credentials are given in `ts` with it. The configuration is read-only: commands that change presets or the vault are refused (available at level `low` only): `config preset set`, `delete`, `unset`, `initialize`, `update`, `ask`, `secure`, `config wizard`, `config initdemo`, `config vault create`, `delete`, `import`, `password`. For example, an MCP client cannot create a preset: create it before starting the server. So the presets of the configuration are the ones of the operator: an option available at level `low` only (for example `ignore_certificate`) is accepted in a default preset or in a preset given by name (`--preset=<NAME>`), as in the environment, and refused when the client sets it (command line, or preset given as a `Hash`); extended values in a preset are still restricted. The command line default level `low` is unaffected.
|
|
88
|
+
* Security levels `medium` and `high` refuse the options that disable or redirect the validation of a server certificate, or route through a proxy (available at level `low` only): `insecure`, `ignore_certificate`, `cert_stores`, `http_proxy`, and the keys `ca_file`, `verify_mode` and `ssl_options` of option `http_options`.
|
|
89
|
+
* Security levels `medium` and `high` refuse the commands that start a local server (they are available at level `low` only, as `faspex5 postprocessing`): `node emulator` (`simulator`), `aoc gateway`, `faspex5 gateway`.
|
|
90
|
+
* Security levels `medium` and `high`: a command that reads or writes a local path chosen by the client checks it like `@file:`, refused at `high` and limited to `allowed_paths`/`writable_paths` at `medium` (it was not checked): `config ascp logs`, `config`/`server`/`node sync admin`, `preview test` and `show`, `config genkey`, `config plugins create`, `orchestrator workflows import` and `check_import`, and `config image` with a `file:` URL. `orchestrator workflows import` was not restricted before (it is read like any local file, since `ascli` reads it, even though it is then sent to Orchestrator). The `sync` transfer commands (`push`, `pull`, `bidi`) run the local `async` program and are refused at level `high`. Option `sql` of `sync admin`, and options `sdk_folder` and `temp.folder` (`temp_folder`), are refused at levels `medium` and `high`. Library and plugin authors: a command argument that completes to a local file or folder (`complete: :file` or `:folder`) must now declare `access:` (`:read`, `:write`, or `:none` when it is not a local path read or written by `ascli`), and `stdin: true` when `-` is the standard input (else `-` is a path): the action then receives an `Aspera::StandardInput` instead of `-` (`read` gives the content).
|
|
91
|
+
* Ruby library use (the `ascli` command line is unchanged): the code is reorganized, with classes renamed and files moved, and no alias left at the old names. The code of each product is in a bundle `lib/aspera/plugins/<name>/`, e.g. `Aspera::Api::Node` (`aspera/api/node`) is `Aspera::Plugins::Node::Api` (`aspera/plugins/node/api`), `Aspera::Agent::Direct` is `Aspera::Plugins::Direct::Agent`, `Aspera::Cli::Plugins::Aoc` is `Aspera::Plugins::Aoc::Commands`. Other classes moved too, e.g. `Aspera::Preview::Terminal` is `Aspera::Cli::TerminalImage`, and `Aspera::Products::Other` is split into one class per product. See the manual, section "Ruby Module: `Aspera`".
|
|
92
|
+
* Plugins of a plugin folder: `BasicAuth` and `Oauth` are modules (they were classes). A plugin that subclasses `Cli::Plugins::BasicAuth` or `Cli::Plugins::Oauth` fails with `superclass must be a Class`: subclass `Cli::Plugins::Base` and write `include Cli::Plugins::BasicAuth` (or `Oauth`). In the help, the options of the module come where the `include` is, relative to `use_options`.
|
|
93
|
+
* Plugins of a plugin folder that use the classes of the command line declarations (not needed by the plugins of the manual): they are renamed, with no alias, e.g. `Cli::Type::*` is `Cli::Option::Type::*`, `Cli::OptionDeclarator` is `Cli::Option::Declarator`, `Cli::CommandSpec` is `Cli::Command`, `Cli::ArgumentSpec` is `Cli::Argument`, `Cli::OptionSpec` is `Cli::Option`, and their files are in `aspera/cli/option/` and `aspera/cli/command/`.
|
|
94
|
+
|
|
95
|
+
### Server Versions
|
|
96
|
+
|
|
97
|
+
Tested with Ruby 4.0.10 on osx-arm64.
|
|
98
|
+
|
|
99
|
+
| Plugin | Product | Version |
|
|
100
|
+
| ------------ | ------------------------------------------------ | ---------------- |
|
|
101
|
+
| `aoc` | IBM Aspera on Cloud | SaaS |
|
|
102
|
+
| `console` | IBM Aspera Console | 3.4.12 |
|
|
103
|
+
| `faspex5` | IBM Aspera Faspex | 5.0.19 |
|
|
104
|
+
| `faspio` | IBM Aspera faspio Gateway | 1.3.7 |
|
|
105
|
+
| `httpgw` | IBM Aspera HTTP Gateway | 2.3.4 |
|
|
106
|
+
| `node` | IBM Aspera High-Speed Transfer Server (Node API) | 4.4.9.3472 |
|
|
107
|
+
| `orchestrator` | IBM Aspera Orchestrator | 4.1.6.2036-00000 |
|
|
108
|
+
| `server` | IBM Aspera High-Speed Transfer Server (SSH) | 4.4.9.3472 |
|
|
109
|
+
| `shares` | IBM Aspera Shares | 1.11.5 |
|
|
110
|
+
|
|
111
|
+
### Transfer Agent Versions
|
|
112
|
+
|
|
113
|
+
| Agent | Product | Version |
|
|
114
|
+
| --------- | ------------------------------------------------ | ---------- |
|
|
115
|
+
| `connect` | IBM Aspera Connect | 4.2.16 |
|
|
116
|
+
| `desktop` | IBM Aspera for Desktop | 1.1.2 |
|
|
117
|
+
| `direct` | IBM Aspera ascp | 4.4.8.2592 |
|
|
118
|
+
| `httpgw` | IBM Aspera HTTP Gateway | 2.3.4 |
|
|
119
|
+
| `node` | IBM Aspera High-Speed Transfer Server (Node API) | 4.4.9.3472 |
|
|
120
|
+
| `transferd` | IBM Aspera Transfer Daemon | 1.1.9 |
|
|
121
|
+
|
|
3
122
|
## 4.29.1
|
|
4
123
|
|
|
5
124
|
Released: 2026-11-20
|
data/CONTRIBUTING.md
CHANGED
|
@@ -67,7 +67,7 @@ A pull request is merged after the approval of a maintainer (see [GOVERNANCE.md]
|
|
|
67
67
|
|
|
68
68
|
The reviewer checks that:
|
|
69
69
|
|
|
70
|
-
- The automated checks pass: unit tests and RuboCop (`.github/workflows/test.yml`), spell check (`.github/workflows/spell.yml`), CodeQL (`.github/workflows/codeql-analysis.yml`).
|
|
70
|
+
- The automated checks pass: unit tests and RuboCop (`.github/workflows/test.yml`), spell check (`.github/workflows/spell.yml`), CodeQL (`.github/workflows/codeql-analysis.yml`), gem vulnerabilities (`.github/workflows/audit.yml`, when `Gemfile` or the gemspec changes).
|
|
71
71
|
- The change does what the description says, and only that.
|
|
72
72
|
- New or changed behavior has tests in `tests/tests.yml` or `spec/`, including a failure case for invalid input.
|
|
73
73
|
- Inputs from users, files, and servers are validated, and the change keeps the restrictions of the [security levels](docs/README.md#security-level).
|
|
@@ -138,6 +138,7 @@ bundle exec rake test:run'[conf_agents_list conf_agents_show_bad]'
|
|
|
138
138
|
|
|
139
139
|
`docs/README.erb.md` is the source for the generated documentation (`docs/README.md` and the PDF manual).
|
|
140
140
|
**Never edit `docs/README.md` directly.**
|
|
141
|
+
The section of a plugin that is a bundle is in `lib/aspera/plugins/<name>/manual.erb.md`, included by `docs/README.erb.md`.
|
|
141
142
|
|
|
142
143
|
- Find the section closest to the new command (search for the parent command or a sibling).
|
|
143
144
|
- Add a short prose paragraph and one or more fenced `shell` blocks showing usage.
|
|
@@ -178,6 +179,7 @@ bundle exec rake tools:codeql # security (CodeQL, as GitHub code scanning)
|
|
|
178
179
|
```
|
|
179
180
|
|
|
180
181
|
In GitHub Actions, `tools:rubocop` (job `lint` of `.github/workflows/test.yml`, on changes of Ruby files), `tools:spell` (`.github/workflows/spell.yml`, on every push to `main` and every pull request) and CodeQL (`.github/workflows/codeql-analysis.yml`) run automatically.
|
|
182
|
+
Workflow `.github/workflows/audit.yml` checks the gems of `Gemfile` and of the gemspec, for all platforms, against the Ruby advisory database with `bundler-audit`: on changes of these files, and every Monday for new advisories.
|
|
181
183
|
`tools:reek` is not run in CI.
|
|
182
184
|
|
|
183
185
|
`tools:codeql` requires the `codeql` CLI (macOS: `brew install --cask codeql`), it downloads the query packs on first use.
|
|
@@ -305,6 +307,7 @@ See its `README.md` for the tools it requires.
|
|
|
305
307
|
- The look of the PDF manual (cover, fonts) comes from the theme `build/doc/pdf_theme`, also used by other IBM Aspera projects (`GFM2PDF_THEME`).
|
|
306
308
|
- Options of the PDF manual: comment `<!-- gfm2pdf` in `docs/README.erb.md` (subtitle, author), and `docs/README.gfm2pdf.yaml` (page after the cover: `docs/README.preface.tex`).
|
|
307
309
|
- draw.io diagrams of the manual (`docs/*.drawio`): their images (SVG for GitHub, PDF for the PDF manual) are committed, export them again with `rake doc:diagrams` (requires draw.io desktop).
|
|
310
|
+
The diagram of the dependencies between plugin bundles (`docs/plugin-dependencies.drawio`) is generated from their manifests by `rake doc:plugin_dependencies` (requires Graphviz `dot`): run it when a bundle or a field `depends` changes; a spec checks it.
|
|
308
311
|
|
|
309
312
|
The project utilizes the **IBM Plex font**.
|
|
310
313
|
Installation instructions can be found at [IBM Plex](https://www.ibm.com/plex/).
|
|
@@ -397,6 +400,10 @@ bundle exec rake -T ^binary:
|
|
|
397
400
|
This project maintains a single `main` branch.
|
|
398
401
|
During development, the version in `lib/aspera/cli/version.rb` includes a `.pre` suffix (e.g., `x.y.z.pre`).
|
|
399
402
|
|
|
403
|
+
The workflow `Nightly Gem` (`.github/workflows/nightly.yml`) builds the unsigned gem of `main` every day it changes, or when started manually from the GitHub Actions UI.
|
|
404
|
+
Its version is `x.y.z.pre.N`, where `N` is the number of commits of `main`.
|
|
405
|
+
It attaches the gem as `aspera-cli-nightly.gem` to the pre-release `nightly`, and moves the tag `nightly` to the commit built.
|
|
406
|
+
|
|
400
407
|
Contributions are handled as follows:
|
|
401
408
|
|
|
402
409
|
- **Direct commits** to `main`: Permitted for minor changes.
|
data/README.md
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
[](tests/README.md#coverage)
|
|
8
8
|
[](https://bestpractices.coreinfrastructure.org/projects/5861)
|
|
9
9
|
[](LICENSE)
|
|
10
|
+
[](https://glama.ai/mcp/servers/IBM/aspera-cli)
|
|
11
|
+
[](https://mcpservers.org/servers/ibm/aspera-cli)
|
|
10
12
|
|
|
11
13
|

|
|
12
14
|
|
data/TODO.md
CHANGED
|
@@ -5,7 +5,8 @@ Add improvement ideas here.
|
|
|
5
5
|
|
|
6
6
|
## Preview: deletion of orphaned preview files
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
`preview events` deletes the previews of deleted files (event `file.deleted`).
|
|
9
|
+
`preview scan` does not: the previews of files deleted while no event was processed stay in the preview folder.
|
|
9
10
|
|
|
10
11
|
## Architecture: replace custom REST client with `rest-client` gem
|
|
11
12
|
|
|
@@ -23,12 +24,10 @@ Explore [Traveling Ruby](https://github.com/phusion/traveling-ruby)
|
|
|
23
24
|
(or [truby Traveling Ruby](https://github.com/trubygems/traveling-ruby)) as an alternative
|
|
24
25
|
single-executable distribution method.
|
|
25
26
|
|
|
26
|
-
##
|
|
27
|
-
|
|
28
|
-
## Add `description:` to all `ArgumentSpec` declarations
|
|
27
|
+
## Add `description:` to all `Argument` declarations
|
|
29
28
|
|
|
30
29
|
The `description` field is user-facing (shown in `--help` output) and should be present on
|
|
31
|
-
every `
|
|
30
|
+
every `Argument`. Arguments that already carry a `schema:` key or whose name is
|
|
32
31
|
self-explanatory are lower priority, but all should have explicit descriptions eventually.
|
|
33
32
|
|
|
34
33
|
Example fix:
|
data/bin/asession
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
|
|
7
7
|
require_relative '../lib/aspera/coverage'
|
|
8
|
-
require_relative '../lib/aspera/
|
|
8
|
+
require_relative '../lib/aspera/plugins/direct/agent'
|
|
9
9
|
require_relative '../lib/aspera/cli/extended_value'
|
|
10
10
|
require_relative '../lib/aspera/products/transferd'
|
|
11
11
|
require_relative '../lib/aspera/log'
|
|
@@ -95,7 +95,7 @@ class SimpleTransferManager
|
|
|
95
95
|
puts JSON.generate(Aspera::Ascp::Management.event_native_to_snake(event))
|
|
96
96
|
end
|
|
97
97
|
# Get local agent (ascp), disable ascp output on stdout to not mix with JSON events
|
|
98
|
-
@client = Aspera::
|
|
98
|
+
@client = Aspera::Plugins::Direct::Agent.new(**agent_params.symbolize_keys)
|
|
99
99
|
end
|
|
100
100
|
|
|
101
101
|
def start
|