From 57d6fe020732cd1d13bb1923fa7ecf86a6ce2209 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Thu, 26 Nov 2026 04:14:44 -0800 Subject: [PATCH] docs: authentication requires --audit-log; the replicated start shows it With the four mutual-TLS flags, blockmaster refuses to start without --audit-log. The replicated start runs with authentication (its failover needs an admin certificate), so it carries the four flags and --audit-log. Co-Authored-By: Claude Opus 5.5 --- seaweed-block/docs/operator-guide.md | 6 ++++-- seaweed-block/docs/standalone-deployment.md | 11 +++++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/seaweed-block/docs/operator-guide.md b/seaweed-block/docs/operator-guide.md index 594a0bf27b..b55c515ff3 100644 --- a/seaweed-block/docs/operator-guide.md +++ b/seaweed-block/docs/operator-guide.md @@ -54,7 +54,9 @@ one live blockvolume per volume ([one process per volume](releases/one-process-p ## Authenticate the control API `blockmaster` authenticates every gRPC call with mutual TLS when it starts with all four of `--tls-cert`, -`--tls-key`, `--tls-client-ca` and `--role-file`. Without them it is in development mode: plaintext, loopback only, +`--tls-key`, `--tls-client-ca` and `--role-file`. With them `--audit-log ` is required: without it blockmaster +refuses to start (`authentication needs --audit-log: every changing call is recorded before it runs, and is refused +when it cannot be`). Without the four it is in development mode: plaintext, loopback only, and it logs `UNAUTHENTICATED CONTROL API on (development mode)` once a minute. **Upgrading:** `--insecure-external-bind` is refused at start; drop it, and give a blockmaster that listens off-host the four mutual-TLS flags. @@ -62,7 +64,7 @@ is refused at start; drop it, and give a blockmaster that listens off-host the f `viewer`, `operator`, `admin` (people and tools; each includes the one before it) or `node` (a volume host; its id is its `--server-id`). A certificate's CN must equal its line's id. A node may act only for its own server id. Two lines with one node id are two keys of one server (for a rotation: add the new line, move the host to the new certificate, remove the old line), never two hosts: one server id names one host. A forced move needs `admin`. `kill -HUP` reloads the file. A removed line is refused from the next call, and its open streams -end at the reload. A malformed file keeps the previous table and says so in the log. `--audit-log ` appends +end at the reload. A malformed file keeps the previous table and says so in the log. The audit log appends one JSON line per person's call, per role-file reload and per refused node call (at most once a minute per certificate and method). A changing call (create, delete, place, revoke, move, register a binding, failback) is written as an attempt before it runs: if the line cannot be written within 2 s the call is refused as "audit diff --git a/seaweed-block/docs/standalone-deployment.md b/seaweed-block/docs/standalone-deployment.md index c60457ba2b..29b5aae6c1 100644 --- a/seaweed-block/docs/standalone-deployment.md +++ b/seaweed-block/docs/standalone-deployment.md @@ -140,14 +140,21 @@ Do these steps before you start blockvolume: - `--failback-runtime-rpc`: the operator's failover (`sw-block ops failover`, below) calls it. Without it there is no manual failover. - The single-replica start above needs neither. + The failover needs an admin client certificate, so this blockmaster runs + with authentication: the four mutual-TLS flags and `--audit-log`, which is + required with them (see + [Authenticate the control API](operator-guide.md#authenticate-the-control-api)). + The single-replica start above needs none of these. ```bash blockmaster --authority-store /var/lib/sw-block-master/authority \ --lifecycle-store /var/lib/sw-block-master/lifecycle \ --cluster-spec /etc/sw-block/cluster-spec.yaml --expected-slots-per-volume 3 \ --lifecycle-product-loop-interval 100ms --failback-runtime-rpc \ - --listen 127.0.0.1:9180 + --tls-cert /etc/sw-block/tls/master.crt --tls-key /etc/sw-block/tls/master.key \ + --tls-client-ca /etc/sw-block/tls/ca.crt --role-file /etc/sw-block/tls/roles \ + --audit-log /var/lib/sw-block-master/audit.log \ + --listen 192.0.2.10:9180 ``` **Replicated volumes in this release:**