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

Recent change in eksctl might break source-controller discovery of OCI HelmRepositories on AWS ECR

オープン
#1,901 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
38/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
aws, kubernetes

調査の方向性

まず、AWS ECR OCI HelmRepository の動作と、提供されている eksctl ClusterConfig の例を確認します。AWS の権限について説明している source-controller のユーザー向けドキュメントを特定し、必要な ecr:ListImages 権限と IAM ServiceAccount の設定を文書化します。eksctl のポリシー変更後にユーザーが Discovery を正常に設定できれば完了です。

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

説明

Not really a bug, but something to be (or make users) aware of, if running on AWS EKS and using AWS ECR:

Until now, eksctl added a full ReadOnly AWS Policy to all nodes, thus also inherited by source-controller, that among others grants ecr:ListImages permissions.

Recently, they changed it to a more narrow "PullOnly" policy, that lacks this ListImages permission: https://github.com/eksctl-io/eksctl/pull/8386

Thus source-controller no longer can discover versions of Helm charts in AWS ECR OCI HelmRepositories (and just logs a 403 Permission Denied)

That change is a good thing, but users now have to give the flux-system/source-controller that permission "back" by making it an IAM ServiceAccount.

Example for eksctl ClusterConfig (that policy is the same as the new PullOnly policy, just with added ecr:ListImages):

...
    - metadata:
        name: "source-controller"
        namespace: "flux-system"
      attachPolicy: {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": [
                    "ecr:GetAuthorizationToken",
                    "ecr:BatchGetImage",
                    "ecr:ListImages",
                    "ecr:GetDownloadUrlForLayer",
                    "ecr:BatchImportUpstreamImage"
                ],
                "Resource": "*"
            }
          ]
        }
...

With that, it seems to work again for me.

主要言語
Go
スター
283
フォーク
258
平均マージ
1日 17時間
マージ済み PR(30日)
15

環境構築

はじめの一歩

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

fluxcd/source-controller のほかの issue

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

似ている issue

Go の issue をもっと見る

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

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