Commit Graph
3157 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 8165ac9414 test(auth): T10 renewal-path cost at 32 volumes; the per-call check never waits for a reload
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 14:28:40 -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
Ping Qiu c54ba73cd9 Merge pull request #560 from seaweedfs/docs/public-rule-comment-names
docs: describe public rules in comments
2026-11-24 13:38:17 -08:00
Ping Qiu 725fecbe6a Merge pull request #557 from seaweedfs/feat/oss-layout-read
layout: resolve an image root -> segment -> chunk
2026-11-24 12:58:41 -08:00
Ping Qiu c52efbb5ee Merge pull request #551 from seaweedfs/fix/no-reassign-on-unknown-primary
fix(master): never reassign on a current primary that did not answer
2026-11-24 12:52:28 -08:00
pingqiu aad7a19906 docs: describe public rules in comments 2026-11-24 12:32:05 -08:00
pingqiu 8aaf3e4c7d Merge remote-tracking branch 'origin/main' into fix/no-reassign-on-unknown-primary
# Conflicts:
#	docs/design/invariants.md
2026-11-24 12:29:42 -08:00
Ping Qiu 154e4bc666 Merge pull request #518 from seaweedfs/test/1.0.1-live-holder-delete-red
fix: a volume whose holder never claimed HEAD is deletable
2026-11-24 12:27:41 -08:00
pingqiuandClaude Opus 5.5 7581ad7781 layout: resolve an image root -> segment -> chunk
Reader opens a root of a volume and resolves a chunk index through the
shard's segment to its ref, then reads the bytes from the pool of the
volume the ref names (a restore's source for a foreign chunk). An index
the root does not name reads as zeros; a root, segment or chunk the root
reaches but the store lacks is ErrMissing, never zeros; bytes that do
not hash to their name, or a segment holding another shard, are
ErrCorrupt; a failed fetch is neither. DecodeRoot now checks the error
of its re-encoding as DecodeSegment does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 12:14:26 -08:00
pingqiu 0aa6dcd24e Merge remote-tracking branch 'origin/main' into fix/1.0.1-live-holder
# Conflicts:
#	docs/design/invariants.md
2026-11-24 12:02:48 -08:00
pingqiuandClaude Opus 5.5 a70893e6f2 docs: ledger row INV-PROMOTE-UNKNOWN-CURRENT-001 with its regression tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:58:01 -08:00
Ping Qiu 346fd4bf1c Merge pull request #555 from seaweedfs/feat/oss-layout-pure
layout: content names, shard paths and manifest encodings
2026-11-24 11:58:00 -08:00
pingqiuandClaude Opus 5.5 08266ff2cf docs: NeverStarted r2 results keep the exact configuration names
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:57:20 -08:00
pingqiuandClaude Opus 5.5 d74944ae2e docs: the delete and re-run edges in M2; pinned NeverStarted r2 results in the spec index
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:57:02 -08:00
Ping Qiu 499663ad42 Merge pull request #554 from seaweedfs/docs/masterwait-single-master-store
docs: require one blockmaster per store
2026-11-24 11:50:40 -08:00
pingqiuandClaude Opus 5.5 75ec20ba7e layout: content names, shard paths and manifest encodings
A pure package for the content-named store layout: a chunk is named by
its index and the SHA-256 of its bytes and lives under
pool/<index/10000>/; a manifest is split into one segment per shard
(seg/<shard>-<sha256>) and a root naming them (root/<sha256>). Encodings
are canonical: decoding refuses any bytes Encode would not write, so an
object has one encoding and one name. Present and MissingOwn look names
up only: an entry that exists is complete, and a failed lookup is an
error, never absent. Nothing uses the package yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:48:46 -08:00
pingqiu 043df80794 docs: require one blockmaster per store 2026-11-24 11:43:02 -08:00
Ping Qiu cba3fae34a Merge pull request #535 from seaweedfs/fix/master-wait
fix: a workspace primary waits for an unreachable master instead of exiting
2026-11-24 11:25:13 -08:00
pingqiuandClaude Opus 5.5 9c77bc66f1 test: guard: the node registry is written only by the start-up import
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:08:35 -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
Ping Qiu da5accc062 Merge pull request #552 from seaweedfs/test/head-readers
test: enumerate every HEAD reader and pin its absent-HEAD behaviour
2026-11-24 10:53:19 -08:00
Ping Qiu 9f98eb0e3b Merge pull request #550 from seaweedfs/test/interrupt-every-step
test: kill volume delete, fork and restore at every step and re-run
2026-11-24 10:46:06 -08:00
pingqiuandClaude Opus 5.5 6c620a4165 docs: the Kubernetes alpha manual failover names the failback path
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:45:02 -08:00
pingqiuandClaude Opus 5.5 5d0c9d8cec test: enumerate every HEAD reader and pin its absent-HEAD behaviour
A source scan lists every non-test function in core/ and cmd/ that reads
a volume's HEAD (ReadHead, GetHead, GetHeadRoot, getHeadRoot, headExists,
or a LookupEntry of HEAD) and fails when a reader is added or removed
without classifying it. Each reader names what it does when HEAD is
absent and the probe that pins it; readers that take an absent HEAD for
an empty one are marked GAP, so a change to that behaviour flips their
probes on purpose.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:43:19 -08:00
pingqiuandClaude Opus 5.5 3bb1cfb1e9 test, docs: a missing primary pod is unknown: no automatic reassign; Kubernetes alpha failover is manual
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:37:36 -08:00
pingqiuandClaude Opus 5.5 aec5d41c54 test: kill volume delete, fork and restore at every step and re-run
A trace-driven matrix: each command is run once through a recording
filer to enumerate its filer writes (its step boundaries); then for every
write it is killed before the write reaches the filer and after it
applied with its reply lost, the catalog restarted, and the command
re-run (twice) with the same request id. The end state and the data are
checked: the volume deleted and refused, or the fork's or restore's
image reading back byte for byte. A killed fork's copy intent may outlive
the replay; the test checks it is that request's and that the copy sweep
past the deadline settles it with the image intact. A step added to a
command is covered without editing the test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:37:30 -08:00
pingqiuandClaude Opus 5.5 3aafd4e1f1 fix(master): never reassign on a primary that did not answer its status probe
An unknown fact is not a failed one: the unsupported promotion path now
moves the line only on the current primary's own not-ready report, like
the supported path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:28:49 -08:00
pingqiuandClaude Opus 5.5 af8473c561 test: red: the unsupported path reassigns when the current primary does not answer its status probe
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:28:00 -08:00
pingqiuandClaude Opus 5.5 0d51336a28 docs: the availability window of an interrupted never-started delete
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:20:48 -08:00
pingqiuandClaude Opus 5.5 aa53f203b3 test: a new delete token meeting a deleting HEAD is admitted by the verdict
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:19:52 -08:00
pingqiuandClaude Opus 5.5 39ebfe2a81 docs: the live-holder delete row cites the exhaustive r2 model and what it leaves out
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:16:21 -08:00
pingqiuandClaude Opus 5.5 9ec7ed8214 docs: the caller identity term is on #548
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:29:45 -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
Ping Qiu c7b8c0f78c Merge pull request #546 from seaweedfs/test/537-slow-precopy-budget-outcome
test(durable): accept bounded slow precopy readiness outcomes
2026-11-24 09:20:14 -08:00
pingqiuandClaude Opus 5.5 0f0da4a7f0 blockcsi: --master-tls-cert/--master-tls-key/--master-ca; tests for tool TLS identity
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:20:02 -08:00
Ping Qiu 7e3c720768 Merge pull request #545 from seaweedfs/test/537-takeover-attach-budget
test(durable): accept bounded takeover readiness refusal
2026-11-24 09:19:36 -08:00
pingqiuandClaude Opus 5.5 70f5fa2acf docs: a new token on a committed reservation also skips the verdict
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:18:49 -08:00
pingqiuandClaude Opus 5.5 979b859ae5 auth: DevCall marks in-process handler calls in tests as development mode
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:13:56 -08:00
Ping Qiu 06dabf547d Merge pull request #544 from seaweedfs/test/537-cold-precopy-loaded-context
test(durable): quarantine unresolved cold precopy accounting
2026-11-24 09:13:15 -08:00
pingqiuandClaude Opus 5.5 dc359e16c8 sw-block: mutual TLS to blockmaster from SW_BLOCK_TLS_CERT/_KEY/_CA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:12:42 -08:00
pingqiuandClaude Opus 5.5 7b96570505 feat(auth): the append-only audit log
Phase 0, S6: AuditLog writes one JSON line per event: every operator and
admin call (accepted or refused, including a handler's RequireRole
refusal), refused node calls at most once a minute per (fingerprint,
result, method), and every role-file reload with its outcome; accepted
node calls are not recorded. blockmaster --audit-log turns it on (with
authentication only).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:07:36 -08:00
pingqiuandClaude Opus 5.5 ec049adacb feat(master): node calls only for their own server id; forced move needs admin
Phase 0, S5: heartbeat, assignment stream (every volume), renewal and ACK
require the caller's certificate id to be the request's server id
(auth.RequireNode); the registered-host address checks stay beside it.
QueryVolumeStatus admits a node only for a volume whose line it
holds. A forced MoveWorkspace needs an admin. Development mode admits as
before. T2 starts its master.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:05:58 -08:00
pingqiuandClaude Opus 5.5 51edb0571e fix: a rerun of a held delete is not decided again
A delete admitted as never started that stopped before it marked HEAD,
after which the holder claimed HEAD, was refused at the master on every
rerun, before the catalog step that gives the reservation back: the
volume stayed reserved for ever. A rerun whose token already holds the
reservation (or a committed one) now skips the verdict; the catalog
step's HEAD fence refuses the live HEAD and gives back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:58:44 -08:00
pingqiuandClaude Opus 5.5 2efb9131dd test: a rerun of an admitted delete after the holder claimed HEAD (red)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:58:06 -08:00
pingqiuandClaude Opus 5.5 98b46ecad3 test: phase 0 red: forced move needs an admin; a node acts only for its own id
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:47:33 -08:00
pingqiuandClaude Opus 5.5 2b9d446d57 feat(blockvolume): mutual TLS on the master links
Phase 0, S4 (volume side): --master-tls-cert, --master-tls-key and
--master-ca put the volume host's master link and the GC epoch pull on
mutual TLS (the filer links are unchanged). The start is refused when the
node certificate's CN differs from --server-id, when the set is partial,
or together with --allow-external-status-bind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:46:37 -08:00
pingqiuandClaude Opus 5.5 e125c52624 feat(blockmaster): mutual TLS and the role file
Phase 0, S4 (master side): --tls-cert, --tls-key, --tls-client-ca and
--role-file together turn on mutual TLS and per-call authorization; a
partial set, or authentication with --insecure-external-bind, is refused;
the authenticated listener may bind any address. SIGHUP reloads the role
file (a bad file keeps the previous table and says so). The start-up line
gives the master's own certificate's expiry; development mode repeats its
UNAUTHENTICATED warning once a minute.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:44:10 -08:00
pingqiuandClaude Opus 5.5 54855c1e25 feat(link): mutual TLS for the master links only
Phase 0, S4 (transport): TLSFiles (cert, key, CA: all or none, checked at
start), ServerCredentials (client certificate required and verified to the
CA), ClientCredentials, DialMaster (TLS or development-mode plaintext), and
a 24 h connection age. Both sides read their certificate at every
handshake, so a rotated file takes effect without a restart. Dial (the
SeaweedFS filer links) is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:41:01 -08:00
pingqiu 44498a3ec8 test(durable): pin virtual post-pause expiry to its readiness allowance 2026-11-24 08:39:07 -08:00
pingqiu 7b67e49c3a test(durable): release timely takeover before its own CAS allowance 2026-11-24 08:36:47 -08:00