Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-25108

[HELM] Remote repository cache - Partial URL rewriting when different domains

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 7.15.3
    • Fix Version/s: None
    • Component/s: Artifactory
    • Labels:
    • Severity:
      Medium

      Description

       

      Description 

      Hello,

      As Jfrog is closing https://chartcenter.io/ we are trying to manually proxify all needed helm chart repositories.

      Unfortunatly arfitfactory only supports charts cache when the domain of the URL to download the targz file matches the the repository domain.

      Steps to reproduce

      1. Create an Helm remote repository :
        1. Repository key : charts-jenkins-remote
        2. URL : https://charts.jenkins.io/
      2. Create an Helm virtual repository:
        1. Repository : charts-jenkins
        2. Repositories : charts-jenkins-remote
      3. Download generated index.yaml of charts-jenkins

      => Some URLS are rewritten, and some are not :

       

      ...
      
      urls:
        - https://github.com/jenkinsci/helm-charts/releases/download/jenkins-3.2.0/jenkins-3.2.0.tgz ==> KO
      
      ...
      
      urls:
        - https://<MY-ARTIFACTORY>/api/helm/charts-jenkins/jenkins-2.5.4.tgz ==> OK

       

      Analysis

      If you have a look at the original index.yaml file (from the remote repository) you will see that they since jenkins 2.6.0 they now point directly to github generated artifact instead of hosting it within their helm repo website.

      Remote repository URL : https://charts.jenkins.io/

      Case 1 : The target tgz uses the same http domain

      Source URL : https://charts.jenkins.io/jenkins-2.5.4.tgz

      Rewritten URL : https://<MY-ARTIFACTORY>/api/helm/charts-jenkins/jenkins-2.5.4.tgz

      ==> OK

       

      Case 2 : The target tgz uses a differnt http domain

      Source URL : https://github.com/jenkinsci/helm-charts/releases/download/jenkins-3.2.0/jenkins-3.2.0.tgz

      Rewritten URL : https://github.com/jenkinsci/helm-charts/releases/download/jenkins-3.2.0/jenkins-3.2.0.tgz

      ==> KO

       

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              valley.antoine Antoine Valley
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-25108 -
                  SYNCHRONIZED
                  • Last Sync Date: