Only attach floating IPs to instances that belong to the cluster
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 72/100
調査の方向性
Read internal/provider/load_balancer.go and internal/provider/instances_v2.go, starting with EnsureLoadBalancer, UpdateLoadBalancer, and getInstance. Trace how the configured project and node identity are available when checking the ProviderID instance. Done when out-of-project or node-mismatched instances cannot receive floating IPs, and the ProviderID lookup rejects instances outside the configured project.
索引モデルが issue の本文から書いたものです。
説明
Context
EnsureLoadBalancer and UpdateLoadBalancer (internal/provider/load_balancer.go) pick the first node by name and pass the instance ID from its Spec.ProviderID straight to FloatingIpAttach. Nothing checks that the instance belongs to the cluster. Anyone who can register a Node with a name that sorts first can point every LoadBalancer floating IP at an instance of their choosing.
Nexus already rejects attaching a floating IP to an instance in another project, so the reachable targets are other instances in the CCM's project.
getInstance (internal/provider/instances_v2.go) has a related gap. When a node has a ProviderID, it looks up the instance by ID without a project. That means InstanceExists, InstanceShutdown, and InstanceMetadata accept an instance from any project the token can see.
Scope
- Before attaching a floating IP, confirm the target instance is in the configured project and corresponds to the node, for example by checking that the instance name matches the node name.
- In
getInstance, check the instance's project against the configured project on the ProviderID path too.
Done when
A node whose ProviderID points at an instance outside the configured project, or at an instance that doesn't match the node, never receives a floating IP and isn't reported as existing.
- 主要言語
- Go
- スター
- 6
- フォーク
- 2
- 平均マージ
- 2時間 47分
- マージ済み PR(30日)
- 6
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
oxidecomputer/oxide-cloud-controller-manager のほかの issue
-
Kubernetes Cloud Controller Manager (CCM)
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Kubernetes Cloud Controller Manager (CCM)
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Documentation Kubernetes Cloud Controller Manager (CCM)
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
Documentation Kubernetes Cloud Controller Manager (CCM)
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
-
Bug Kubernetes Cloud Controller Manager (CCM)
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
oxidecomputer/oxide-cloud-controller-manager の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
hivecommons/hive#19912 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
siyuan-note/siyuan#21692 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
rudderlabs/rudder-server#7641 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ossf/package-analysis#1222 ·
メンテナーはふだん 1 日以内に返信