Bind Provider refresh operations and material references to expected resource identities

Ouverte
#5,966 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
12/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
grpc, rust

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

state:triage-needed
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.
Langage dominant
Rust
Étoiles
21.5k
Forks
2.1k
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de NVIDIA/OpenShell

Toutes les issues de NVIDIA/OpenShell

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.