Bind Provider creation, update, and delete to exact resource identities
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 20/100
Direção de pesquisa
The Provider request messages are defined in proto/openshell.proto around lines 2392-2474; read those first, then the update and delete handlers in crates/openshell-server/src/grpc/provider.rs (lines 465-529 and 694-750). Trace how resource versions are currently checked and where the store is called, then identify tests for the gRPC provider service. Done means create/update/delete can enforce workspace incarnation, profile revision and provider ID preconditions before any credential write or delete, with an advertised capability and regression tests for same-name replacement.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Codex report. A controller that owns Provider registration and retirement needs the Gateway to enforce the resource identities the controller authorized. The Gateway can resolve a different resource under the same name between the controller's read and its write. This follows up on inactive issue #2722 and adds the registration and retirement cases.
Reproduction
I used OpenShell Gateway 0.1.10-dev.100+g152c59d31, a disposable SQLite store, and synthetic credentials.
- Create a Provider in a Workspace and record its ID and resource version.
- As another authorized Workspace administrator, delete it and create a Provider under the same name. The two IDs differ and both initial versions are
1. - Call
UpdateProviderwith the former Provider's ID, name, and version and a new synthetic credential. The Gateway returns the replacement's ID. An operator credential read confirms that the replacement received the update. - Call
DeleteProviderfor the same name. The Gateway deletes the replacement. The delete request has no field for the original ID.
Requested behavior
- On Provider creation, let the caller require the intended Workspace incarnation and profile revision. Refuse before storing material if either precondition fails.
- On Provider update and delete, let the caller require the intended Provider ID. If a same-name replacement exists, refuse before changing its credential or deleting it. Preserve the existing resource version check for updates to the same Provider.
- Expose a capability or RPC contract that lets clients require these guarantees before sending a write.
Provider request schema · Provider update implementation · Provider delete implementation
- Linguagem predominante
- Rust
- Estrelas
- 21.5k
- Forks
- 2.1k
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de NVIDIA/OpenShell
-
state:triage-needed
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
-
state:triage-needed
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
bug: Ready=False/PodTerminating is treated as a terminal sandbox failureTalvez já em andamento @TaylorMutch assumiu há 9 dias. Abertastate:accepted state:pr-opened
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
state:triage-needed
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 78/100
-
state:triage-needed
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Todas as issues de NVIDIA/OpenShell
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 2 dias
-
autofixer: follow-up
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
tursodatabase/turso#12531 ·
Mantenedores costumam responder em até 1 dia
-
bug help wanted ui
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
userFRM/egui-charts#4292 ·
Mantenedores costumam responder em até 1 dia
-
CHANGELOG.md out of dateAbertaIssue-Bug Need-Review
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 85/100
PowerShell/DSC#1832 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia