Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installer.sh script to use cdn_url from the response to download the file #1806

Open
lobkovilya opened this issue Jun 3, 2024 · 1 comment
Labels
kind/improvement Improvement on an existing feature triage/accepted The issue was reviewed and is complete enough to start working on it

Comments

@lobkovilya
Copy link
Contributor

Description

installer.sh script has a logic to construct URL, while apparently the url we need is already returned in cdn_url field.

Example response from api.cloudsmith.io
{
  "self_url": "https://api.cloudsmith.io/v1/packages/kong/kuma-binaries-preview/VxGAi7uDsVcQ/",
  "stage": 9,
  "stage_str": "Fully Synchronised",
  "stage_updated_at": "2024-05-20T20:26:09.302419Z",
  "status": 4,
  "status_reason": null,
  "status_str": "Completed",
  "status_updated_at": "2024-05-20T20:26:09.297853Z",
  "is_sync_awaiting": false,
  "is_sync_completed": true,
  "is_sync_failed": false,
  "is_sync_in_flight": false,
  "is_sync_in_progress": false,
  "is_cancellable": false,
  "is_copyable": true,
  "is_deleteable": true,
  "is_downloadable": true,
  "is_moveable": true,
  "is_quarantinable": true,
  "is_quarantined": false,
  "is_resyncable": true,
  "is_security_scannable": false,
  "sync_finished_at": "2024-05-20T20:26:09.302409Z",
  "sync_progress": 100,
  "architectures": [],
  "checksum_md5": "2749ba2befb544d7eb2698bff259867a",
  "checksum_sha1": "4f76a1d652e4f2422519ebf75084b58664c98ca2",
  "checksum_sha256": "7548736ed927a120ec92a5d050d74783ff0352995c67e94438d5e9df6ce8ec46",
  "checksum_sha512": "81e812ddc2437f7b17dc075e88e9b5945531dc3b5ca42bd52f3474a47e783f23d528ead4209a0b52c8e4c0840a57810a0418e97a003222a8401dc60bfed6fa09",
  "dependencies_checksum_md5": null,
  "dependencies_url": "https://api.cloudsmith.io/v1/packages/kong/kuma-binaries-preview/VxGAi7uDsVcQ/dependencies/",
  "description": null,
  "display_name": "kuma-linux-amd64",
  "distro": null,
  "distro_version": null,
  "downloads": 0,
  "cdn_url": "https://packages.konghq.com/public/kuma-binaries-preview/raw/names/kuma-linux-amd64/versions/2eff9a513/kuma-0.0.0-preview.v2eff9a513-linux-amd64.tar.gz",
  "epoch": null,
  "extension": ".gz",
  "filename": "kuma-0.0.0-preview.v2eff9a513-linux-amd64.tar.gz",
  "files": [
    {
      "checksum_md5": "2749ba2befb544d7eb2698bff259867a",
      "checksum_sha1": "4f76a1d652e4f2422519ebf75084b58664c98ca2",
      "checksum_sha256": "7548736ed927a120ec92a5d050d74783ff0352995c67e94438d5e9df6ce8ec46",
      "checksum_sha512": "81e812ddc2437f7b17dc075e88e9b5945531dc3b5ca42bd52f3474a47e783f23d528ead4209a0b52c8e4c0840a57810a0418e97a003222a8401dc60bfed6fa09",
      "cdn_url": "https://packages.konghq.com/public/kuma-binaries-preview/raw/names/kuma-linux-amd64/versions/2eff9a513/kuma-0.0.0-preview.v2eff9a513-linux-amd64.tar.gz",
      "downloads": 0,
      "filename": "kuma-0.0.0-preview.v2eff9a513-linux-amd64.tar.gz",
      "is_downloadable": true,
      "is_primary": true,
      "is_synchronised": true,
      "signature_url": "https://packages.konghq.com/public/kuma-binaries-preview/VxGAi7uDsVcQ/gpg.dRgIn3iV9Hwk.asc",
      "size": 108976378,
      "slug_perm": "dRgIn3iV9Hwk",
      "tag": "pkg"
    }
  ],
  "format": "raw",
  "format_url": "https://api.cloudsmith.io/v1/formats/raw/",
  "identifier_perm": "VxGAi7uDsVcQ",
  "indexed": true,
  "license": null,
  "name": "kuma-linux-amd64",
  "namespace": "kong",
  "namespace_url": "https://api.cloudsmith.io/v1/namespaces/kong/",
  "num_files": 13,
  "package_type": 1,
  "release": null,
  "repository": "kuma-binaries-preview",
  "repository_url": "https://api.cloudsmith.io/v1/repos/kong/kuma-binaries-preview/",
  "security_scan_status": "Awaiting Security Scan",
  "security_scan_status_updated_at": null,
  "security_scan_started_at": null,
  "security_scan_completed_at": null,
  "self_html_url": "https://cloudsmith.io/~kong/repos/kuma-binaries-preview/packages/detail/raw/kuma-linux-amd64/2eff9a513/",
  "status_url": "https://api.cloudsmith.io/v1/packages/kong/kuma-binaries-preview/VxGAi7uDsVcQ/status/",
  "signature_url": "https://packages.konghq.com/public/kuma-binaries-preview/VxGAi7uDsVcQ/gpg.dRgIn3iV9Hwk.asc",
  "size": 108976378,
  "slug": "kuma-000-previewv2eff9a513-linux-amd64targz-0r1q",
  "slug_perm": "VxGAi7uDsVcQ",
  "subtype": "file",
  "summary": null,
  "tags": {
    "info": [
      "amd64",
      "linux"
    ]
  },
  "tags_immutable": {
  },
  "type_display": "file",
  "uploaded_at": "2024-05-20T20:25:58.409387Z",
  "uploader": "kuma-github-actions",
  "uploader_url": "https://api.cloudsmith.io/v1/users/profile/kuma-github-actions/",
  "version": "2eff9a513",
  "version_orig": "2eff9a513",
  "vulnerability_scan_results_url": "https://api.cloudsmith.io/v1/vulnerabilities/kong/kuma-binaries-preview/VxGAi7uDsVcQ/"
}
@lobkovilya lobkovilya added triage/pending This issue will be looked at on the next triage meeting kind/improvement Improvement on an existing feature labels Jun 3, 2024
@lahabana lahabana added triage/accepted The issue was reviewed and is complete enough to start working on it and removed triage/pending This issue will be looked at on the next triage meeting labels Jun 3, 2024
@github-actions github-actions bot added the triage/stale Inactive for some time. It will be triaged again label Sep 2, 2024
Copy link
Contributor

github-actions bot commented Sep 2, 2024

This issue was inactive for 90 days. It will be reviewed in the next triage meeting and might be closed.
If you think this issue is still relevant, please comment on it or attend the next triage meeting.

@jakubdyszkiewicz jakubdyszkiewicz removed the triage/stale Inactive for some time. It will be triaged again label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/improvement Improvement on an existing feature triage/accepted The issue was reviewed and is complete enough to start working on it
Projects
None yet
Development

No branches or pull requests

3 participants