Bind Provider refresh operations and material references to expected resource identities
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 12/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- grpc, rust
研究方向
Start with proto/openshell.proto around the refresh RPC request messages, which carry the Provider name, credential key, request ID and material Secret names. Then trace how the Gateway resolves a shared Secret to its immutable ID and where the reauthorization epoch is created. Done means the design of expected-identity fields and the refusal path before credential material is read is agreed, not that code is written.
由索引模型根據 Issue 內容生成。
描述
User Story
I use OpenShell Provider refresh to keep account grants and shared client material inside a Workspace. I need a refresh operation to affect the exact Provider, refresh authorization, and material Secret that my application previously registered.
Problem Statement
Refresh configuration, rotation, and deletion select a Provider by Workspace and Provider name. A configuration's material Secret references also use Secret names. A caller cannot condition the operation on its expected immutable Workspace, Provider, or material Secret identity, or distinguish an earlier refresh authorization from a replacement authorization on the same Provider.
Impact / Why This Matters
If an administrator deletes and recreates a named Provider or Secret, a delayed configure request can write a long-lived grant to the replacement Provider or bind a replacement Secret. On the same Provider, reauthorization can replace the current grant while a delayed rotate or delete still targets the new authorization. Existing request IDs provide replay protection but do not express which registered resource the caller intended.
Proposed Design
Let callers specify the expected identities for the Workspace, Provider, and each shared material Secret during refresh configuration. When replacing, rotating, or deleting refresh configuration, let callers also select the exact refresh authorization or its version. Refuse a request before reading or mutating credential material when any expected identity differs. Keep current request-ID replay behavior. The desired workflow is: record the identity returned when each object is created; configure and operate on that exact registered authorization; explicitly obtain new identities after replacement.
Acceptance Criteria
- Configuration succeeds against the expected Workspace, Provider, and shared material Secrets.
- Recreating a Provider or material Secret under the same name causes a stale configuration request to fail before grant storage or Secret binding.
- Reauthorizing the same Provider causes a stale rotate, replacement, or delete for the previous authorization to fail.
- Unrelated Providers, Secrets, and refresh authorizations are unaffected.
- Idempotent request replay remains supported without duplicating credential material.
Alternatives Considered
A GET immediately before mutation cannot condition the server-side operation on the object observed. Unique naming conventions and application-side locks do not protect against authorized object replacement outside the caller. Middleware or interceptors could participate if OpenShell can pass the exact expected and actual identities to the same atomic operation.
Agent Investigation
At upstream commit 1fca4c8b2ee3, refresh RPC requests carry a Provider name, credential key, request ID, and material Secret names. The Gateway resolves a shared Secret to an immutable ID internally, but the caller cannot require the previously registered ID. The refresh implementation creates an authorization epoch on reauthorization; the public request does not select that epoch. Related: Provider CRUD identity #5931, Workspace Secret identity #5961.
Checklist
- I've reviewed existing issues and the published docs.
- This is a design proposal, not a "please build this" request.
- 主要語言
- Rust
- 星號
- 21.5k
- 分支
- 2.1k
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
NVIDIA/OpenShell 的其他 Issue
-
state:triage-needed
難度 2/5 1-3 小時 新手友好度 86/100
-
state:triage-needed
難度 2/5 1-3 小時 新手友好度 78/100
-
bug: Ready=False/PodTerminating is treated as a terminal sandbox failure可能已有人在做 @TaylorMutch 於 9 天前認領。 未關閉state:accepted state:pr-opened
難度 2/5 1-3 小時 新手友好度 78/100
-
state:triage-needed
難度 1/5 1-3 小時 新手友好度 78/100
-
state:triage-needed
難度 2/5 1-3 小時 新手友好度 62/100
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 2 天內回覆
-
autofixer: follow-up
難度 2/5 1-3 小時 新手友好度 78/100
tursodatabase/turso#12531 ·
維護者通常 1 天內回覆
-
bug help wanted ui
難度 2/5 1-3 小時 新手友好度 82/100
userFRM/egui-charts#4292 ·
維護者通常 1 天內回覆
-
Issue-Bug Need-Review
難度 1/5 1-3 小時 新手友好度 85/100
PowerShell/DSC#1832 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆