Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#976 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
go, kubernetes
領域
devops

調査の方向性

HelmRepository マニフェストと、それが参照する認証情報 Secret から始め、次に、コントローラーのリポジトリ取得動作を、レポートに記載されている手動の Helm リポジトリコマンドと比較します。403 レスポンスを再現し、Artifactory リポジトリのインデックスを正常に取得するために必要なコントローラー側の変更を特定します。HelmRepository が 403 エラーなしで Ready になれば完了です。

索引モデルが issue の本文から書いたものです。

説明

area/helm

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.

主要言語
Go
スター
283
フォーク
252
平均マージ
1時間 6分
マージ済み PR(30日)
12

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

fluxcd/source-controller のほかの issue

fluxcd/source-controller の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。