Navigation

    Inedo Community Forums

    Forums

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. hashim.abu-gellban_3562
    3. Posts
    H
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by hashim.abu-gellban_3562

    • RE: Download/ upload a NuGet package using cmd with ProGet Key or Username/ password

      Hi Alana,

      I found the issue of the url provided from the former forum. It should be "nuget" instead of "feeds", as follows:
      $url = "https://myprogetserver/nuget/mynuggets/package/mypackage/1.0.0"

      The complete PowerShell is as follows:

      $user = 'api'
      $pass = 'abcdefg12345'
      $pair = "$($user):$($pass)"
      $encodedCreds = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes($pair))
      $basicAuthValue = "Basic $encodedCreds"
      $Headers = @{
          Authorization = $basicAuthValue
      }
      
      $url = "https://myprogetserver/nuget/mynuggets/package/mypackage/1.0.0"
      $destination = "c:\mypackages\mypackage-1.0.0.zip"
      Invoke-WebRequest -Uri $url -OutFile $destination -Headers $Headers
      

      Thanks,
      Hashim

      posted in Support
      H
      hashim.abu-gellban_3562
    • RE: Download/ upload a NuGet package using cmd with ProGet Key or Username/ password

      The Following is the reply from Steve https://forums.inedo.com/topic/3956/download-a-nuget-package-using-cmd/2?_=1710614207806

      I see a few issues here...

      First, the URL you're using is not correct; the easiest way to to find the url by clicking the "download package link" in the ProGet UI. It will look like this: /nuget/your-feed-name/package/your-package-name/your-version-number

      Second, you're downloading a file - so you want to use a powershell command like this:

      $url = "https://myprogetserver/feeds/mynuggets/package/mypackage/1.0.0"
      $destination = "c:\mypackages\mypackage-1.0.0.zip"
      Invoke-WebRequest -Uri $url -OutFile $destination
      Best,
      Steve

      I tried api/{your-key} but it did not work.
      $url = "https://myprogetserver/feeds/mynuggets/package/mypackage/1.0.0/mykey"
      $destination = "c:\mypackages\mypackage-1.0.0.zip"
      Invoke-WebRequest -Uri $url -OutFile $destination

      I would like to download the package as mypackage.zip file. I do not need to install it.
      Is this correct? "https://myprogetserver/feeds/mynuggets/package/mypackage/1.0.0/mykey"

      Thanks,
      Hashim

      posted in Support
      H
      hashim.abu-gellban_3562
    • Download/ upload a NuGet package using cmd with ProGet Key or Username/ password

      Re: Download a NuGet package using cmd

      Q1: How can I pass the API key or username and password using the example provided of my old forum?

      Q2: How can I upload a NuGet package to a ProGet feed using similar API?

      Can you provide me with PowerShell script for that as in the referenced in my old forum?

      posted in Support
      H
      hashim.abu-gellban_3562
    • RE: What is SAML Identifier

      @atripp Thank you!

      posted in Support
      H
      hashim.abu-gellban_3562
    • What is SAML Identifier

      I am following the link: https://docs.inedo.com/docs/various-saml-azure-ad

      Configuration Azure AD (Microsoft Entra ID) > 5/b/i: Click "Add Identifier" and enter an identifier (e.g proget-saml)

      My Question is: What is the Identifier? How can I get it from ProGet? Or it can be any unique number. Can you help us?

      posted in Support
      H
      hashim.abu-gellban_3562
    • Download a NuGet package using cmd

      I followed "https://docs.inedo.com/docs/proget-feeds-nuget" to download the package as follows:

      #https://«proget-server»/«feed-name»/«packageName»/«versionNumber[optional]»
      $headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
      $headers.Add("X-ApiKey", "xyz")

      $response = Invoke-RestMethod 'https://ip:port/feedname/nuget-paclkage-name/version' -Method 'GET' -Headers $headers
      $response | ConvertTo-Json

      I got the error:
      Invoke-RestMethod :
      Not Found

      My question, how can I download a NuGet package as file (e.g., zip)?

      posted in Support
      H
      hashim.abu-gellban_3562
    • RE: ProGet API to get the operating systems of all Docker images

      @dean-houston said in ProGet API to get the operating systems of all Docker images:

      curl -X GET https://proget-url/v2/feedName/repositoryName/tags/list

      Thank you for your help!

      I passed X-ApiKey to the API Key Authorization in Postman, but I got the following error:

      "errors": [
          {
              "code": "UNAUTHORIZED",
              "message": "Anonymous is not permitted to perform the Feeds_ViewFeed task for the                 current scope.",
          ...
          }
      

      ]

      What should I pass for authorization?

      posted in Support
      H
      hashim.abu-gellban_3562
    • ProGet API to get the operating systems of all Docker images

      Hi All,

      I used the API (/api/json/DockerImages_GetTags) to get all Docker images and their properties. However, I could not find any API that can get the Docker images' OSs (Windows/ Linux). Can you provide me with the API that get the OSs of docker images?

      posted in Support
      H
      hashim.abu-gellban_3562
    • RE: Clair: VulnerabilitySource

      Thank you! The Clair Docker container is running.

      In the documentation there is the following step:
      Once you have created a vulnerability source, you will then need to add that vulnerability source to your container registry. You would do that by clicking Manage Registry in your container registry, and clicking the Add button on vulnerability sources

      I cannot find the Manage Registry/ Container registry. Can you help?

      posted in Support
      H
      hashim.abu-gellban_3562
    • RE: Clair: VulnerabilitySource

      Thank you for your update! Did you install Clair as a Docker for version 2? Can you share the steps to update the connect string for the database (config file to point to the proper Postgres instance and password) since I could not find where to update in config file?

      posted in Support
      H
      hashim.abu-gellban_3562
    • RE: Clair: VulnerabilitySource

      Hi Rich,

      ProGet Version is 2022.24 (Build 5). The issue is of the steps to install Clair. Can you let me know which Clair version is compatible of this ProGet version? If you have a chance installing Clair, let me know the steps. It seems the documentation (https://docs.inedo.com/docs/proget-compliance-clair) is not enough.

      Thank you,
      Hashim

      posted in Support
      H
      hashim.abu-gellban_3562
    • Clair: VulnerabilitySource

      I tried to follow the https://docs.inedo.com/docs/proget-compliance-clair but it gives issue with the database connection string in running the Clair Docker.

      I changed the steps as follows:

      mkdir $PWD/clair_config
      

      This will fix no database connection https://github.com/quay/clair/issues/317:

      curl -L https://raw.githubusercontent.com/coreos/clair/2c5f1d30346cccb4f68c2e02f9337c7786025bb6/config.example.yaml -o $PWD/clair_config/config
      
      sudo docker run -d -e POSTGRES_PASSWORD="" -p 5432:5432 -e POSTGRES_HOST_AUTH_METHOD=trust postgres:9.6
      
      sudo docker run -e HTTP_PROXY=*** -e HTTPS_PROXY=*** --net=host -d -p 6060-6061:6060-6061 -v $PWD/clair_config:/config quay.io/coreos/clair:v2.1.2 -config=/config/config
      

      When I run VulnerabilityDownloader, I get the following error:

      Fetching updates for Clair_Index_Docker...
      Persisted object is not a VulnerabilitySource.
      
      posted in Support
      H
      hashim.abu-gellban_3562
    • 1 / 1