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 broker operator guide.
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; usekind = "builtin-auth"when testing policy behavior.Create the file connection's root directory.
Start the daemon:
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 underovstorage-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.