feat(m0.6-r2): host-owned plugin handle authority
- add PluginHandleTable with owner, run id and generation scoping - reject forged, cross-owner, cross-run and post-unload handles - reject any plugin_handle returned by plugin or foreign-kernel output, including nested values - add ADR-0014 and update value-wire/security specs
This commit is contained in:
1 parent
d940013f35
commit
7797d78d86
8 files changed
+276
-9
No files matched your search
+7
-4
@@ -272,10 +272,13 @@ Neither command executes project code. Specifically:
|
||||
3. Network capability exists in the model but no host operation uses it; there
|
||||
is no `--allow-net` flag.
|
||||
4. Write-path symlink TOCTOU (see §2.1).
|
||||
5. Plugin worker isolation and a plugin capability bridge are unimplemented;
|
||||
only trusted in-process native plugins are possible.
|
||||
6. `plugin_handle` wire values are structurally reconstructable (see
|
||||
`value-wire.md` §4.1); no unforgeable capability token.
|
||||
5. Plugin worker isolation is unimplemented; only trusted in-process native
|
||||
plugins are possible. The capability broker exists, but no vendor handler is
|
||||
shipped.
|
||||
6. `plugin_handle` wire values are structurally reconstructable, but host
|
||||
authority comes only from the `PluginHandleTable` owner/run/generation
|
||||
check; untrusted plugin/foreign output containing a handle is rejected
|
||||
(ADR-0014, `value-wire.md` §4.1).
|
||||
7. Budgets do not cover all allocation paths (for example list/table growth
|
||||
inside the interpreter is bounded only by fuel and memory).
|
||||
8. `--json` run output includes the full program stdout string; that is the
|
||||
|
||||
+4
-2
@@ -127,8 +127,10 @@ The following are **not** bounded by `WireLimits` in
|
||||
`plugin_handle.plugin`/`export` are not checked against
|
||||
`max_string_bytes`;
|
||||
* a `plugin_handle` decoded from wire data is a structurally reconstructed
|
||||
`Value::PluginHandle`; this build does not carry an unforgeable capability
|
||||
token. Host code must therefore treat a plugin handle as opaque *intent* and
|
||||
`Value::PluginHandle`; it is **not** an authorization token. The host owns a
|
||||
`PluginHandleTable` with owner/run/generation scope (ADR-0014), and plugin or
|
||||
foreign output containing any handle is rejected with
|
||||
`plugin_handle.untrusted`. Host code must therefore treat a plugin handle as opaque *intent* and
|
||||
re-authorize any operation, not as proof of prior authorization. The header
|
||||
comment "cannot be forged from wire data" is aspirational for this point and
|
||||
should be fixed or reworded in a future ADR.
|
||||
|
||||
Reference in new issue
Block a user