AI provider and MCP create adoption: use a secret nonce instead of the object UID
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 45/100
Rechercherichtung
Start by reading #423 and #253 to understand lost-create recovery and current adoption via coder-k8s:<object UID>. Locate the CoderAIProvider and CoderMCPServer create paths and the cleanup ConfigMap in the operator namespace. Implement nonce generation before create, store it only in cleanup record, restrict adoption to matching nonce; done when UID adoption is replaced and tests pass.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Follow-up from #423 (#422 item 1), maintainer decision "Option A" on that PR.
Gap. After a lost create answer, the CoderAIProvider and CoderMCPServer create paths adopt a Coder resource whose display name is the operator's temporary display name coder-k8s:<object UID>. The operator records that resource's ID, applies the spec to it, and later deletes it by that ID. The object UID is visible to anyone who can read the Kubernetes object. A Coder user who creates a resource with that exact display name inside the window can therefore get it adopted, overwritten, and later deleted. The window normally ends at the next successful read, about 5 s after the lost answer. It stays open while the object stalls with NameConflict or SlugConflict.
Why it was kept in #423. Adoption is the only recovery for a lost create answer (#253) and for a late commit after the marker was cleared. Removing it would make every lost create answer stall with a false conflict on the object's own resource.
Proposal (Option C). Replace the UID in the temporary display name with a random secret nonce. Generate it before the create, store it only in the cleanup record (ConfigMap in the operator namespace, which users cannot read), and adopt only a resource whose display name carries that nonce. Migration: records without a nonce keep today's behavior until their object is next created.
Refs #422, #423, #253
Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high
- Vorherrschende Sprache
- Go
- Sterne
- 5
- Forks
- 3
- Ø Merge
- 2 Std. 49 Min.
- Gemergte PRs (30 T.)
- 206
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus coder/coder-k8s
-
CoderWorkspacePool: count bound and used members only when their owner matches the pool's ownerOffen
Schwierigkeit 3/5 Ein halber Tag Anfängerfreundlichkeit 62/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 Ein halber Tag Anfängerfreundlichkeit 45/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 30/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 8/100
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in coder/coder-k8s
Ähnliche Issues
-
needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
stacklok/toolhive-catalog#1890 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
integrations/terraform-provider-github#3719 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Wayfinder sample agents don't reach the Data Plane on the quickstart packEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. OffenType/Bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
thunder-id/thunderid#6402 ·
Maintainer antworten meist innerhalb von 1 Tag
-
GoStratumEngineOffenaddition
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
awesome-selfhosted/awesome-selfhosted-data#3290 ·
Maintainer antworten meist innerhalb von 1 Tag
-
log4j2.xml from orchestration.extraConfiguration is rendered twice, and the install fails when orchestration.log4j2 is also setEvtl. vergeben @irisfield hat das heute übernommen. Offenplatform/local
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
camunda/camunda-platform-helm#7854 ·
Maintainer antworten meist innerhalb von 1 Tag