Commit Graph
43 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 ab747bfa47 change: cut over to the content-named store and delete the legacy store
The runtime stores each volume in one content-named layout on the filer:
immutable chunks, segments and roots are ordinary filer files, and one
HEAD entry per volume carries every conditional commit. A holder claims
HEAD under its granted epoch and claim id, cuts in its own session,
commits by HEAD generation and position, and is fenced when its identity
moves. Catalog, restore, snapshot, retention, cleaning, verify and volume
delete run through the layout kernel; the master mints the layout
identity, reads HEAD proofs and holds the delete reservation and lease
barrier. The legacy store, its intents and its compatibility paths are
removed; existing stores are recreated, not converted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 14:59:23 -08:00
pingqiuandClaude Opus 5.5 ce5b5f691a chart: refuse an admin or blockmaster Secret for the CSI node or status operator
The chart sees Secret names, not roles: rendering fails when
tls.clientSecrets.csiNode or .operatorStatus names the CSI controller's,
the failback executor's or blockmaster's own Secret. A test renders the
chart with each such override and expects the refusal. The operator
guide says the CSI node's certificate must have the viewer role in the
role file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 01:02:44 -08:00
pingqiuandClaude Opus 5.5 cf09289a57 k8s: server ids are checked per DNS label; the cert helper reissues and keeps ids
The launcher and the alpha certificate helper both refuse a server id
whose Secret name has an empty or malformed DNS label (a..b, a.-b, a
label over 63 characters). The helper reissues a leaf that no longer
verifies against its CA (the CA was regenerated), and keeps the server
ids issued by earlier runs in the role file and the applied Secrets.
Node certificates are client-only, so they carry no subjectAltName. The
operator guide says how to upgrade a blockmaster started with
--insecure-external-bind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 00:49:10 -08:00
pingqiuandClaude Opus 5.5 f7f3b56298 k8s: each in-cluster client gets its own certificate with the least role
The CSI node and the status operator mount viewer certificates; the CSI
controller (it deletes volumes) and the failback executor mount admin
ones. The alpha certificate helper issues one certificate, role-file line
and Secret per client, and the chart takes one Secret per client
(tls.clientSecrets). A chart-render test fails when a client mounts a
Secret other than its own, when an admin Secret appears outside the CSI
controller and the failback executor, or when the role file gives a
client more than its role. A node's refused reattach event is one log
line and is not retried.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 00:41:00 -08:00
pingqiuandClaude Opus 5.5 ea6fcd5b59 docs: the operator guide's certificate example uses a documentation address
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 21:10:31 -08:00
pingqiuandClaude Opus 5.5 db2067a2da test: every operator or admin method is strict unless named with its reason
The strict-method guard is inverted: a new operator or admin method added
without Strict fails, and ReportClusterEvent (event log append only) is the
one named exception. The guide says the attempt line survives a blockmaster
crash, not a host crash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 19:10:30 -08:00
pingqiuandClaude Opus 5.5 b824366163 feat(auth): mutating operator and admin calls write their audit attempt first or are refused (strict rules); /status/audit counts dropped lines
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:38:24 -08:00
pingqiuandClaude Opus 5.5 3007058e46 test(auth): guard: the development-mode bypass has one production caller; docs: two role-file lines with one node id are two keys of one server
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:33:14 -08:00
pingqiu af3493ed0f Merge remote-tracking branch 'origin/main' into feat/phase0-auth
# Conflicts:
#	cmd/blockvolume/chunk_maintenance.go
#	core/host/master/services.go
#	core/host/volume/host.go
#	docs/design/invariants.md
2026-11-24 14:21:44 -08:00
pingqiu 043df80794 docs: require one blockmaster per store 2026-11-24 11:43:02 -08:00
pingqiuandClaude Opus 5.5 fbcc89a5e6 docs: hosts' clocks stay within the clock-skew bound, or the lease bound does not hold
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:07:25 -08:00
pingqiuandClaude Opus 5.5 1962369a92 docs: caller identity term, control API authorization row, operator guide authentication section
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:28:45 -08:00
pingqiuandClaude Opus 5.5 2a80101273 fix: one owner for the startup bound; a failing granted attach is bounded
The host owns the startup wait's one bound: it keeps the wait's start and
opens the window at the first reply at or after it; the run of replies
(and the window) ends on a transport, credentials or identity refusal;
/status shows the same bound. The provider asks the host for the bound
given its own start, and checks it on the attach retry path too: a
granted attach that keeps failing no longer holds the lease for ever
without serving. An identity refusal ends on an accepted identity-checked
call (the run of replies restarts there) or after 30 s of replies with no
new identity refusal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 00:52:11 -08:00
pingqiuandCodex dfe64e1658 docs: state flat image references and shared-space retention
Co-Authored-By: Codex <noreply@openai.com>
2026-11-23 19:52:57 -08:00
pingqiuandClaude Opus 5.5 3bd8e3302d fix(blockvolume): a volume record not read in create mode is refused before any store exists
INV-VOL-GEOMETRY-FLAGS-RECORD-001: in create mode a ReadVolume error was
taken as an absent record, so a wrong --durable-blocks could still create a
wrong-size store when the record could not be read. The error is now
classified (one type check): the filer failed the read (remote unavailable,
deadline) -> exit 75, retried: 'the volume record of V could not be read
(<cause>); no local store was created; retrying'; the record is there but
does not decode -> exit 78, not a retry loop: 'the volume record of V is
unreadable (corrupt: <cause>); no local store was created; restore or
recreate the record'. An absent record (not found) keeps the create path.
A first start with the filer down was already safe: it ends at the startup
filer check (exit 1) before this one.

Tests: unit, both classes (a failing LookupEntry -> 75 for a wrong and a
right flag, the record read; a corrupt VOLUME entry -> 78);
TestCorruptRecordIsRefusedBeforeTheStoreIsCreated (filer up, the VOLUME
entry undecodable: 78 and no store for both flags; restored: 78 for the
wrong flag, the right flag serves); TestFirstStartWithTheFilerDownCreatesNoStore
(guard). The ledger row and the operator guide say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 16:38:57 -08:00
pingqiuandClaude Opus 5.5 f1227debce fix(blockvolume): refuse geometry flags that disagree with the volume record before creating a store
INV-VOL-GEOMETRY-FLAGS-RECORD-001. A create-mode start whose
--durable-blocks/--durable-blocksize disagree with the volume record exits 78
(no restart) with a line naming both geometries, before the durable provider
is built, so no local store of the wrong size is created. An existing local
store is never rechecked against the flags (its geometry is checked at
attach, as before); a missing record keeps the create path; an unreadable
record falls through to the attach check.

Tests: TestGeometryFlagsRefusalComparesTheRecord (unit);
TestWrongGeometryFlagIsRefusedBeforeTheStoreIsCreated (real binaries, red on
the previous main: exit 75 after 35 s and a wrong-size store). The cure for a
store an earlier release left stays: TestWrongGeometryCureAsWritten plants
that store from a readable text fixture of a 2129a736 capture (sha256 checked
per file); the operator guide scopes the cure to such a store.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:51:02 -08:00
pingqiuandClaude Opus 5.5 1cbbc213ec docs: operator guide: how long a snapshot may wait for a host slot with many volumes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:04:21 -08:00
pingqiuandClaude Opus 5.5 924f933873 docs: operator guide: a snapshot refused for a busy host slot is retried with the same request id
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 13:52:55 -08:00
pingqiuandClaude Opus 5.5 8877cc6d3e docs: scope the wrong-geometry cure to a volume's first start
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 12:14:22 -08:00
pingqiuandClaude Opus 5.5 d565e7e140 docs: stop first, then the guard, then remove; name the message; what the guard does not cover
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 12:11:10 -08:00
pingqiuandClaude Opus 5.5 dea5e6a6dc docs: operator guide: the cure for a start with the wrong --durable-blocks, guard first
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 12:10:37 -08:00
pingqiuandClaude Opus 5.5 4ed3368da8 docs: operator guide command table: the skew-bound refusal and its binary test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 10:14:39 -08:00
pingqiuandClaude Opus 5.5 bf8d101c82 docs: operator guide command table: the procedures the procedure gate found run (headroom, disk full, store outage) and the ones not run in 1.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 10:10:50 -08:00
pingqiuandClaude Opus 5.5 8e313361a3 docs: a target refused for local room does not block its source, and keeps its data
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 09:31:25 -08:00
pingqiuandClaude Opus 5.5 093435fcbe docs: hold the source-delete sentence until its data check has run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 08:51:08 -08:00
pingqiuandClaude Opus 5.5 9cdde83092 docs: a target refused for local room also recovers on another durable root of the same host, and does not block its source's deletes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 08:48:38 -08:00
pingqiuandClaude Opus 5.5 a0910e8dbf docs: store-outage bullet says only what was measured
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 07:50:39 -08:00
pingqiuandClaude Opus 5.5 2b491706c2 docs: operator guide: what a store outage does to a volume, as measured
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 07:46:52 -08:00
pingqiuandClaude Opus 5.5 6297deedc1 docs: a target refused for local room has one way out, freeing space; a forced move is refused for it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 07:36:31 -08:00
pingqiuandClaude Opus 5.5 a4d495fa90 docs: headroom refusal precedes the store, not every sidecar; it exits 1 and the unit retries; the way out for a refused target
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 07:14:23 -08:00
pingqiuandClaude Opus 5.5 1fe7c24ef4 docs: the create-time headroom refusal in the operator guide; release note
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 02:34:49 -08:00
pingqiuandClaude Opus 5.5 69a52a1b79 docs: operator guide: size the local disk, what a Linux guest sees when it fills, and where --host-limit-dir goes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 02:34:48 -08:00
pingqiu 384d2002e6 docs: describe configured fence-exit budget and scheduling premise 2026-11-22 23:45:08 -08:00
pingqiu c3fb807558 blockmaster: derive minimum workspace skew from fence exit bound 2026-11-22 23:37:27 -08:00
Ping Qiu 329ded8fae Merge pull request #470 from seaweedfs/train/20261123-29
release: OSS train 29 (heartbeat order per slot #453; permanent recovery cause at the guest gate #464; delete refusal names its cure #448; fork deadline before metadata writes #454)
2026-11-22 21:51:25 -08:00
Ping Qiu b55a765426 Merge pull request #465 from seaweedfs/docs/master-clock-safety-premise
docs: require slewed blockmaster clocks for live leases
2026-11-22 21:17:15 -08:00
pingqiu 814fb36a92 docs: trace per-slot heartbeat ingest guards and freshness default 2026-11-22 20:44:09 -08:00
pingqiuandClaude Fable 5.2 800b392428 docs: state the SeaweedFS durability premise
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 20:31:26 -08:00
pingqiu 20fafb4927 docs: state live-lease blockmaster clock safety premise 2026-11-22 18:30:36 -08:00
pingqiu 69e5951dc6 docs: state the heartbeat slot clock limit 2026-11-22 17:20:13 -08:00
pingqiuandClaude Opus 5.5 cb73f9e10d docs: operator guide: host lock setup, the returning old host's retries, the per-host limit, the systemd tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:24:00 -08:00
pingqiuandClaude Opus 5.5 17f5c86924 docs: iSCSI is supported in v1.0, and the Kubernetes CSI default
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:21:00 -08:00
pingqiuandClaude Opus 5.5 bc86aeeab0 docs: operator guide, the entry page for standalone v1.0 volumes
What v1.0 supports and the layout rule (blockmaster off every volume
host, and why), install, sizing, the recovery point and what publishes
it, snapshots and the two-step space return, moving and returning a
volume, the steps after a host loss, the stated limits, and every command
on these pages with the test that runs it. The README links it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:41:50 -08:00