diff --git a/seaweed-block/docs/design/agent-workspace-design.md b/seaweed-block/docs/design/agent-workspace-design.md index 3c963d30ad..b220b40369 100644 --- a/seaweed-block/docs/design/agent-workspace-design.md +++ b/seaweed-block/docs/design/agent-workspace-design.md @@ -415,7 +415,6 @@ Not done yet: - **The control plane (blockmaster)** authenticates with mutual TLS when it is configured (required off loopback): client certificates verified against `--tls-client-ca`, pinned roles from `--role-file` (viewer, operator, admin, node), and an append-only `--audit-log` ([operator guide](../operator-guide.md#authenticate-the-control-api)). - **No authentication** on the status and chunk control endpoints (loopback-only by default), the replication channel or the filer client. Anyone who can reach the filer can read or change any volume's entries ([core known issues](block-design.md#24-known-issues-and-work-in-progress)). - No encryption of chunks in SeaweedFS or of traffic to it. -- The NVMe/TCP H2CData bound check can wrap and panic the process on one malformed PDU; it is reachable from loopback ([core known issues](block-design.md#24-known-issues-and-work-in-progress)). - ublk at high density: unprivileged per-volume servers need a privileged control broker, which is not done. ## 9. Invariants diff --git a/seaweed-block/docs/design/block-design.md b/seaweed-block/docs/design/block-design.md index 7855d9d102..ce95568d4c 100644 --- a/seaweed-block/docs/design/block-design.md +++ b/seaweed-block/docs/design/block-design.md @@ -374,7 +374,6 @@ The reason is an unhealthy, not-eligible fact; blockmaster does not promote or s These are tracked for fixes. Most were raised by an independent review of this repository. Gaps specific to one product line are in that line's document: [agent workspace known gaps](agent-workspace-design.md#14-known-gaps) and [Kubernetes known gaps](kubernetes-block-design.md#12-known-gaps). -- **NVMe/TCP H2CData offset overflow.** The `DATAO + length` bound check is done in 32-bit arithmetic and can wrap, so one malformed PDU can panic the process (`core/frontend/nvme/session.go` `recvH2CData`). Reachable from loopback by default. **Planned fix:** 64-bit arithmetic, offset and R2T consistency checks, and bounds on wire-supplied allocations. - **Process notes in source comments.** #162 removed reviewer names and decision timestamps from code comments. A few comments still cite internal review labels (for example "ruling F1") where a neutral design rationale would be clearer. - **fsync latency.** #173 removed the idle group-commit wait: a lone `Sync` no longer waits out the collection delay, and guest `fsync` fell from about 5.5 ms to a median of 3.23 ms against 2.74 ms local (ublk; see [workspace measurements](../workspace-measurements.md)). Remaining lead: the checkpoint superblock `fsync` runs under the exclusive store lock, stalling reads and writes each flush cycle. - **Forged records in user data.** WAL records are not bound to a store incarnation or lap, so bytes inside user data that happen to decode as a valid record could be replayed by the defensive scan. **Planned:** an incarnation nonce and lap in the next format, plus a clean-shutdown marker in the meantime. diff --git a/seaweed-block/docs/releases/v1.1.2.md b/seaweed-block/docs/releases/v1.1.2.md index 828ce9934b..18ee6ef135 100644 --- a/seaweed-block/docs/releases/v1.1.2.md +++ b/seaweed-block/docs/releases/v1.1.2.md @@ -304,6 +304,22 @@ Unchanged from v1.1.1. No data is lost. A fix is planned for a later v1.1.x rele HTTP 409 with `apiVersion: 1`, the same `cutID`, `code: "detach_aborted"` and `retryable: true` confirms this abort. The retained handle still occupies the detach slot until about `--timeout` plus 5 s after the abort. Wait for that retention to expire before retrying the plain detach; if the retry answers `cut_busy` with reason `detach_in_progress`, wait and retry after expiry. This GET does not start another operation. Handles are transient: HTTP 404 `unknown_cut_id` (including after expiry or a holder restart), a failed query, or an unsettled answer does not confirm an abort. In that case keep guest I/O stopped, preserve the CLI output and holder logs, and [settle the unknown detach outcome](../volume-lifecycle.md#symptoms) before resuming I/O or moving the volume. A definite retryable CLI answer for this case is planned for v1.1.3. +## Network trust + +**Network trust.** blockmaster's control API authenticates callers with mutual TLS and authorizes them by role +(viewer, operator, admin, node) when `--tls-cert`, `--tls-key`, `--tls-client-ca` and `--role-file` are all set; +without them it accepts only loopback connections. Nothing else has authentication or encryption of its own: +- the volume host's status and chunk control HTTP endpoints, which listen on loopback unless + `--allow-external-status-bind` is set; +- the replication channel between replicas (replicated volumes, preview); +- the connection to the SeaweedFS filer and volume servers: anyone who can reach the filer can read or change any + volume's metadata and chunks, which are stored unencrypted; +- the NVMe/TCP target, which listens on loopback unless `--allow-external-nvme-bind` is set. The iSCSI target needs + CHAP (`--iscsi-chap-username`, `--iscsi-chap-secret`) to listen off loopback; its traffic is not encrypted. + +Run these on a trusted network only, and keep blockmaster's key files, role file and audit log readable only by its +service user. + ## Upgrade notes - **Order:** the CLI first, then blockmaster, then each holder, as in