Run the Broker Locally
Goal
Start a local broker with an explicit trust boundary, the built-in auth Layer,
and a file connection for development or integration testing.
Recipe
- Read the current configuration skeleton in the
- Build binaries and storage plugins with
make dist. - Create a local config with a UDS listener, explicit auth configuration, an
[ovstorage] Layer graph, and a file [[connections]] entry. For a
trusted-local smoke test, auth = "anonymous" is the smallest explicit
choice; use kind = "builtin-auth" when testing policy behavior.
- Create the file connection's root directory.
- Start the daemon:
```sh
OVSTORAGE_PLUGIN_DIR="$(pwd)/dist/plugins" \
./dist/bin/ovstorage-broker --config "$XDG_RUNTIME_DIR/broker.toml"
```
- Exercise it through a
broker-clientconnection or the broker integration
tests under ovstorage-remote/ovstorage-broker/tests/.
- Send SIGHUP on Unix after config edits. Send SIGTERM to exercise drain-first
shutdown.
Common mistakes
- Omitting listener auth; current hosts fail startup instead of selecting an
implicit mode.
- Setting TLS on UDS or peer credentials on TCP.
- Pointing
OVSTORAGE_PLUGIN_DIRat an untrusted or incomplete directory. - Using the retained policy
pluginfield as though it selected a cdylib. - Editing the vendored
ovstorage-services/subtree for broker-only work.