feat(gateway): define resource admission at the gateway level with a typed policy
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 22/100
Direzione di ricerca
Start by reading DriverAdmissionConfig in openshell-core and following where the gateway extracts allow_driver_config and resource_admission from each [openshell.drivers.<name>] table; then read the Configure and GetCapabilities message definitions that carry resource_admission_policy_json and the v1:-prefixed reply. Use the driver_dir deprecated-alias handling as the model for the new [openshell.gateway.resource_admission] table and its warning. Done means the typed policy round-trips, the mismatch rejection still fires, and tests cover legacy location, new location and the round trip. This is a protocol change with a deprecation window, so agree the message shape with a maintainer before editing.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
User Story
I operate the gateway with Docker, Podman or VM compute drivers and configure resource admission (allow_driver_config and resource_admission) for them. I directly encountered, while reviewing the launched-driver contract, that these gateway-level rules live in each driver's own table and travel to drivers as JSON text. This affects how clearly operators configure admission and how safely the protocol carries it.
Problem Statement
allow_driver_config and resource_admission are one shared policy type (DriverAdmissionConfig in openshell-core), enforced by the gateway and re-checked by each driver. It is configured under [openshell.drivers.<name>], so an operator repeats it per driver. The gateway pulls the two keys out of every driver table, and the launcher sends them to the driver as a JSON string (resource_admission_policy_json in Configure). The driver reports its effective policy back in GetCapabilities as another JSON string (resource_admission_policy, prefixed v1:), which the gateway compares with its own.
Impact / Why This Matters
The same policy is written in several places and carried as untyped text in two protocols. A typo or a format change is caught only at parse time, and the placement suggests a per-backend setting when it is a gateway rule.
Desired Workflow
Operators define resource admission once, under the gateway table (for example [openshell.gateway.resource_admission]). The driver-table location keeps working as a deprecated alias with a warning, as driver_dir does. The gateway sends the policy to launched drivers in a typed resource_admission_policy message in Configure, and drivers report it in GetCapabilities as the same typed message, so the gateway compares messages. The JSON fields are deprecated for one protocol version and then removed. Kubernetes and external drivers keep working through the existing capability handshake.
Acceptance Criteria
- A gateway-level admission table is documented and takes precedence over the deprecated driver-table keys.
ConfigureandGetCapabilitiescarry a typed policy.resource_admission_policy_jsonis deprecated for one protocol version and then removed.- The gateway rejects a driver whose reported policy differs from its own, as it does today.
- Tests cover the legacy driver-table location, the new location and the typed round trip.
Related: #5384, #5385. Deferred from the launcher PR.
- Lingua principale
- Rust
- Stelle
- 21.5k
- Fork
- 2.1k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NVIDIA/OpenShell
-
state:triage-needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
-
state:triage-needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
bug: Ready=False/PodTerminating is treated as a terminal sandbox failureForse già presa @TaylorMutch l’ha presa 9 giorni fa. Apertastate:accepted state:pr-opened
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
state:triage-needed
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
-
state:triage-needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Tutte le issue di NVIDIA/OpenShell
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
autofixer: follow-up
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
tursodatabase/turso#12531 ·
I maintainer di solito rispondono entro 1 giorno
-
bug help wanted ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
userFRM/egui-charts#4292 ·
I maintainer di solito rispondono entro 1 giorno
-
CHANGELOG.md out of dateApertaIssue-Bug Need-Review
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
PowerShell/DSC#1832 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno