You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6d8bed5
Browse filesBrowse the repository at this point in the historyBrowse files
feat(drivers): deliver the admission policy in Configure
The gateway owns allow_driver_config and resource_admission. It validates
them, removes them from the forwarded driver table, and sends the policy
in a new Configure field. The launched drivers reject the keys in their
tables and apply the policy from Configure.
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Copy file name to clipboardExpand all lines: crates/openshell-driver-podman/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -176,4 +176,4 @@ The gateway passes the `[openshell.drivers.podman]` table on stdin and gateway m
176
176
177
177
`serve` resolves the Podman socket from `OPENSHELL_PODMAN_SOCKET`, `socket_path`, or discovery, and pings it before it binds. It exits 69 when Podman is not reachable and 78 when the table is invalid. Until `Configure` succeeds, `ComputeDriver` calls return `UNAVAILABLE` and the driver creates no networks, volumes, or secrets. `preflight` validates the table without contacting Podman.
178
178
179
-
The gateway port and name, trusted runtime images, and OTLP settings come from `Configure`. Trusted runtime images from the gateway's environment take precedence over the table, as they did when the driver ran in process. The gateway supplies `gateway_port` and the CA, so the table rejects `gateway_port`and `guest_tls_ca`. `grpc_endpoint` remains an optional override, and an `https://` endpoint needs the gateway CA.
179
+
The gateway port and name, trusted runtime images, and OTLP settings come from `Configure`. Trusted runtime images from the gateway's environment take precedence over the table, as they did when the driver ran in process. The gateway supplies `gateway_port` and the CA, so the table rejects `gateway_port`, `guest_tls_ca`and the admission keys (`allow_driver_config`, `resource_admission`), which the gateway delivers in `Configure`. `grpc_endpoint` remains an optional override, and an `https://` endpoint needs the gateway CA.
`settings_from_table`in`src/settings.rs` is the only place the table is parsed and validated. `serve` exits 78 on an invalid table. The driver binds its socket and answers `GetLaunchInfo` at once, but `ComputeDriver` calls return`UNAVAILABLE` and no VM state is created until`Configure` succeeds. `preflight` validates the table and exits.
352
+
`settings_from_table`in`src/settings.rs` is the only place the table is parsed and validated. `serve` exits 78 on an invalid table. The table rejects `guest_tls_ca`, `gateway_port` and the admission keys, which the gateway supplies in`Configure`. The driver binds its socket and answers `GetLaunchInfo` at once, but `ComputeDriver` calls return`UNAVAILABLE` and no VM state is created until`Configure` succeeds. `preflight` validates the table and exits.
0 commit comments