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

CoderMCPServer delete and RBAC test follow-ups

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

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

@ThomasK33 がすでに取り組んでいます。

2026年10月14日 から。

評価

この issue はまだ評価されていません。

説明

Follow-ups from the final assessments of #368 (CoderMCPServer delete path), #376 (test S9) and #377 (test S11). None blocks the activation. Line numbers refer to main after #368.

Delete path

  1. A marker-only object waits forever when its pinned Coder organization is deleted while the control plane lives. With only a create marker (no status.configID), the delete reads the organization's MCP server configs (findMCPServerSlug, internal/controller/codermcpserver_controller.go:492). Any list error, including Coder's own 404 for the deleted organization, gives CoderUnavailable, so the finalizer stays. Fix: treat Coder's own 404 on that list (isCoderResourceNotFound) as absence. A proxy 404 must still wait.
  2. Missing tests:
    • No operator access on delete: the wait branch at internal/controller/codermcpserver_delete.go:61.
    • A marker-only delete when the operator is not a site owner: internal/controller/codermcpserver_delete.go:107.
    • A marker-only delete when the config list fails.
  3. A manual finalizer removal leaves the object's sentCredentials entry in memory until the operator restarts. The entry holds only hashes, not values. The release path removes it, but a hand-removed finalizer skips that path.

RBAC test S9 (#376)

  1. S9 reads only config/rbac/role.yaml. It must scan every config/rbac/*.yaml for rules that reach core Secrets, and also pin config/rbac/clusterrolebinding.yaml, so a new Role or binding cannot widen Secret access without a golden-copy change.

Admission test S11 (#377)

  1. The comment of TestCoderMCPServerStatusPolicy says the policy "denies the status writes of every other test". It denies only status writes of CoderMCPServer objects. Correct the comment.

Refs #155


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high • Cost: $220.71

主要言語
Go
スター
5
フォーク
3
平均マージ
3時間
マージ済み PR(30日)
192

環境構築

はじめの一歩

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

coder/coder-k8s のほかの issue

coder/coder-k8s の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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