Plugin trust: what to install, and from whom
Installing a plugin is a trust decision. This page states exactly what that decision buys you, and what it does not. How plugins are built, distributed and loaded is in plugins.
The two lanes
| Native lane | Sandboxed (WASM) lane | |
|---|---|---|
| What runs | A .NET assembly loaded into the backend process | A WebAssembly guest behind a host-function ABI |
| Isolation | None. The load context is for hot-reload, not containment | Real. A memory cap and a per-call time limit on every module |
| Capabilities | Declared permissions are consent and an audit trail | Each capability is a host function callable only when granted |
| Reach | The process's database connection, cache and key ring, by ordinary reflection | Only what was granted |
| Use for | Code from a publisher you would trust to run any program on your server | Community code |
Reeve.Application, Reeve.Infrastructure and Reeve.Domain are deliberately absent from the
shared-assembly list, so a native plugin cannot bind their types through the normal loader path. Plugins
are also never handed a raw cache connection, HTTP client factory, data-protection provider or service
provider, and the facades they do get are built from their grant. For a native plugin all of that narrows
accidental coupling and closes the obvious paths. It is not a security boundary: in-process code that
wants those objects can reach them by reflection. The facades are a real boundary only for the WASM lane.
Neither is the SDK's internal surface: the published Reeve.PluginAbstractions grants internal access to the
host's assembly names, which any plugin assembly can take.
Native plugins are not isolated from each other either.
For a native plugin, the permission model is consent and audit, not containment (constraint).
Signing
Releases are signed with Ed25519 over the artefact's content hash. Verification runs before the anomaly acknowledgement, so consent, acknowledged anomalies and auto-update approval can never bypass a signature requirement.
- A key pinned on a repository wins outright. The operator's globally trusted key list is not consulted for that repository at all. A deliberate narrowing must not be silently undone.
- With no pin, every active trusted key is tried, oldest trust decision first.
- The trusted and revoked keys are read through one source on every verification, so a trust or a revoke takes effect on
every replica on its next read, with no restart. The plugin loader applies the revoked-key rule with the same read.
The source is the table, or, when the deployment declares
Managed:TrustedKeys, the validated lists the replica holds in memory, which its own configuration reload swaps; the choice is fixed until the next restart and a managed list is not writable through the API. - The recorded signature verdicts of the installed plugins (the Verified badge and the update anomaly check) are refreshed by one owned job, never by the request that wrote a key. A trust or revoke through the API wakes the job, so the verdicts follow within seconds (at most 30 seconds when the wake is lost); a declared change is picked up on the job's next 30-second check. Verification and the loader do not wait for it: a revoke is in force at once.
- A repository with no key at all yields "unsigned", never "verified".
- A key a publisher's index advertises is only a proposal: whoever can replace the index could replace the key, so only an operator trusts or pins one. A proposed key rotation waits for the operator rather than auto-applying.
- The one exception is rooted in the host build, not in an index: the official Reeve publisher key ships with the
host as a row of the trusted list, so first-party releases verify from the first boot. The operator can revoke
it and nothing writes it back; a deployment that declares
Managed:TrustedKeystrusts it only if it lists it (the official publisher key).
Signature enforcement is off by default: an install proceeds and the verification status is recorded
and badged. With Plugins:RequireSignature on, an unverified native install is refused whichever provider
it comes from (a GitHub release, a GitLab release or an OCI registry), before the host inspects the
assembly; the partial artefact is removed and no instance row is created. Plugins:RequireSignatureWasm is
the same rule for the WASM lane, and it also applies when a replica re-pulls a WASM module, from the
repository or from the cluster's stored copy. The digest an index names for an OCI artefact proves only that
the bytes are the ones the index meant; it says nothing about who built them, so it never stands in for a
signature.
The catalogue's verified badge is computed from Plugins:VerifiedPublicKeys and the built-in official publisher key,
and only for an installation whose signature verified. A plugin author cannot
set it from the manifest, and there is no author-declared quality tier or certification programme: a
self-declared tier signals nothing, and provenance is the only trust signal. Signatures are not forced on
every plugin, because the project runs no key infrastructure for third-party authors; the update-review path
handles a takeover instead.
A signed plugin still has full in-process power once loaded. A signature tells you who built the artefact, not what it does.
Permissions and the install gate
A manifest declares the permissions, device-type scope and outbound host patterns the plugin wants.
At install the operator sees the request and grants explicitly; the stored grant is clamped to what
the manifest asked for, so an unattended update can never silently widen it
(constraint). A code outside the
closed set is refused. A plugin that talks to an MQTT broker requests mqtt.outbound.
A permission marked required is a hard precondition, not advice. A plugin that cannot function without a capability should not reach a half-working installed state that reports unhealthy forever.
- An operator-initiated install whose grant withholds a required permission is refused outright and
audited. The install answers 422 and a permissions edit that drops a granted required code answers 409,
both with the reason
required_permissions_missingand the codes inmissingRequiredCodes. There is no override. - An unattended update that newly marks a permission required parks instead of installing, and so does one
that requests a network host its installed release did not (
hosts_changed). Approving that park grants only the new hosts; a host the owner withheld stays withheld. An unattended update never runs with a device type the installed release was not granted. When an installed release names its device types, none of them is granted, and the candidate asks for all types, it parks asdevice_types_need_choice, because the empty list would mean all types; so does any device-scoped candidate while the installed release's manifest cannot be read. Approving adds only the device types the candidate requests beyond the installed release.
Create and update apply asymmetric rules on purpose. Creating a grant applies an end-state rule: it must contain every required code. Updating one applies a transition rule: only removing a currently-granted required code is refused. Grants narrowed while a permission was still advisory stay editable instead of being permanently trapped.
Privileged workloads
Some plugins ship a container workload alongside the in-process half. Whether an update escalates privilege is computed server-side, by comparing the recorded consented profile against a profile derived from the release manifest and the resubmitted parameters (constraint). The browser cannot manufacture coverage: a parameter reaching a wider posture widens the candidate, which is the side tested for containment. Privileged fields are disclosed verbatim at consent rather than blocked by a deny-list, which would be both circumventable and paternalistic.
Coverage by a prior install is the only way to skip a fresh acknowledgement. The evaluation fails closed on a fresh install, a missing recorded profile, an added workload, or any derivation error, and it writes its own audit action when coverage is used.
Approving a privileged deployment needs workloads.approve, an Administrator-only code (see
authorization). Minting or revealing a live
workload credential needs it too, and is checked before any instance is resolved. A workload's parameter
reads use a default-deny mask: a value is returned only when the manifest positively proves it non-secret.
Operator caveat: the workload image digest is deliberately not a consent axis. A new build of an already-consented privileged plugin's workload auto-applies with no consent signal. The change is visible afterwards in the informational note and the audit trail, but nothing withholds it. Consent does not record which exact bytes were approved, because a digest axis would demand a manual acknowledgement for every release of every privileged plugin.
The Docker socket
The Docker workload provider drives the host's Docker daemon through /var/run/docker.sock. The Compose
stack leaves the socket out: it is mounted, together with the socket's group, only by the opt-in
docker-compose.docker-workloads.yml overlay (deployment).
Without it the Automatic provider setting resolves to Manual. The Helm chart never mounts a socket; its Kubernetes
provider works through a namespaced Role. The overlay refuses an unset DOCKER_GID.
What the socket grants. The socket is the daemon's full API with no authorisation of its own. Whoever can open it can create a container that is privileged, runs in the host's PID and network namespaces, and bind-mounts the host's root filesystem. That is root on the host, not a narrower Docker permission.
Who holds it. Everything that runs in the backend process: the host itself, every native plugin (see the two lanes) and every workflow script. A native plugin needs no permission to reach the socket; it opens the same file the provider does. A remote-code-execution bug in the backend, or in any library it loads, is root on the host too.
A read-only mount restricts nothing. :ro on the socket's bind mount stops the container from replacing
or removing the socket file. Connecting to a Unix socket is not a write to the filesystem, so every API call,
container creation included, still goes through.
A socket proxy cannot narrow it enough. A filtering proxy decides by HTTP method and path: it can refuse
/exec or /swarm, but the provider needs POST /containers/create, and the dangerous part of that call
is its JSON body (Privileged, Binds, CapAdd, Devices, PidMode, NetworkMode, UsernsMode). An
off-the-shelf proxy does not read the body. A proxy that did would still have to admit the privileged
settings an operator consents to for a privileged workload (see privileged workloads),
so it would admit them for any caller.
Hardening options, strongest first:
| Option | What it changes |
|---|---|
| The Manual provider | No socket at all. Reeve renders the workload artifacts and you run them with your own tooling |
| The Kubernetes provider | The backend holds a namespaced Role, not a node's daemon. The namespace's Pod Security Admission level decides how privileged a workload may be, and workloads can run in user namespaces (hostUsers: false) |
| A dedicated virtual machine | Run the whole stack on a VM that holds nothing else, so root on that host is root on a disposable machine. A remote daemon is not supported, so the daemon runs on the same VM |
| Rootless Docker, or rootless Podman | The daemon runs as an unprivileged user, so its socket grants that user, not root. Bind that socket to /var/run/docker.sock in the backend in place of the host's, and make sure the backend's user can open it. Device passthrough, host networking and privileged workloads are limited or unavailable; Podman is supported best-effort through its Docker-compatible socket |
userns-remap |
Root inside a container maps to an unprivileged host range, which contains a workload that breaks out. It does not contain a socket holder: the API lets a caller ask for UsernsMode: host and a privileged container |
Operator checklist
- Know the publisher. For the native lane this is the whole control. Would you run their other software on this host?
- Prefer the sandboxed lane for anything from the wider community.
- Turn on signature enforcement once your trusted key list reflects the publishers you actually use.
- Pin a key on a repository you want narrowed, and remember the pin is exclusive.
- Read the permission request, especially outbound hosts and any privileged workload.
- Grant the narrowest device-type scope the plugin needs.
- Watch the blocked-egress log after installing something new; see network egress.
- Review parked updates rather than approving them unread; a park means the release asked for something the current grant does not give.
- Leave the Docker socket out unless you run workloads on Docker. With it, every native plugin is root on the host; see the Docker socket.
Why a park or a refusal happened
| Outcome | Cause |
|---|---|
| The install is refused outright | A required permission was withheld in the submitted grant, or signature enforcement is on and the release did not verify |
| An update sits parked | The release newly marks a permission required that the current grant withholds, requests a network host the installed release did not, or the signing key changed, or the signature was dropped |
| Status reads "unsigned" | The release carries no signature, or no trusted or pinned key can check it; this is never upgraded to "verified" |
| A plugin reaches nothing on the network | Its host allowlist, an always-closed address, or an empty or invalid address in a field its config host token reads; see network egress |