Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

CoderMCPServer delete and RBAC test follow-ups

未关闭
#378 0 条评论 0 个 reaction 已指派 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 小时
30 天内合并 PR
192

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

coder/coder-k8s 的其他 Issue

查看 coder/coder-k8s 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。