Skip to content

Getting "failed to fetch Helm repository index" 403 Forbidden with Artifactory Saas as helm repository #976

@ttarando

Description

@ttarando

Hi there,

I'm getting below error when trying to create HelmRepository:

$ k get helmrepository
NAME               URL                                                             AGE   READY   STATUS
helm-charts-test   https://artifactory.mydomain.com/artifactory/helm-charts-test   96s   False   failed to fetch Helm repository index: failed to cache index to temporary file: failed to fetch https://artifactory.mydomain.com/artifactory/helm-charts-test/index.yaml : 403 Forbidden 

Manifests

helm repository

apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
  name: helm-charts-test
spec:
  interval: 10m
  url: https://artifactory.mydomain.com/artifactory/helm-charts-test
  secretRef:
    name: helm-charts-creds

creds secret

apiVersion: v1
kind: Secret
metadata:
  name: helm-charts-creds
data:
  username: xxxxxxxxxx
  password: xxxxxxxxxxxxxxxx

username and password were created using

echo -n "username" | base64

I also tried both api-key and identity token as password as well as URL with and without api/helm so https://artifactory.mydomain.com/artifactory/helm-charts-test and https://artifactory.mydomain.com/artifactory/api/helm/helm-charts-test getting the same result every time.

Adding helm repo manually with helm add works just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/helmHelm related issues and pull requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions