Project

General

Profile

Actions

action #176556

open

Add `openqa-cli download` sub-command supporting authentication

Added by mkittler 2 days ago. Updated 2 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2025-02-04
Due date:
% Done:

0%

Estimated time:

Description

Motivation

After #175902 a simple wget 'http://…/assets/….qcow2' is no longer possible to download certain assets from OSD. While one can specify the credentials manually this is a bit tedious. Using openqa-cli api --apibase '' https://…/assets/….qcow2 > ….qcow2 is possible but might use a lot of ram (does it?) and also a bit cumbersome to use (especially as one has to specify the asset name twice).

Acceptance criteria

  • AC1: openqa-cli allows downloading assets in an efficient manner with similar features to wget (determines file name automatically, allows continuing downloads).
  • AC2: Asset downloads via openqa-cli work out of the box even when authentication is required as long as client.conf contains the required API key/secret.

Suggestions

  • Make this new sub-command a simple wrapper around wget or curl which forwards all specified arguments to wget/curl and adds additional arguments for authentication.
Actions #1

Updated by okurz 2 days ago

  • Target version set to future
Actions

Also available in: Atom PDF