Skip to content

fix(swarm): CLI falls back to its own dir when the node's swarm dir is not writable (v0.3.58) - #352

Merged
ralyodio merged 1 commit into
masterfrom
fix/swarm-cli-dir
Nov 12, 2026
Merged

ralyodio merged 1 commit into
masterfrom
fix/swarm-cli-dir

Conversation

@ralyodio

Copy link
Copy Markdown
Collaborator

A root worker creates <storage.root>/swarm as root:root 0755, so a user's c0mpute swarm failed with Permission denied (os error 13) (seen on vienna right after v0.3.57 rolled out). The CLI now probes the shared dir, its topic dirs and files, and falls back to <data dir>/swarm with a note. It still syncs and gossips through its own node.

Tested on vienna: new writable_dirs unit test; live swarm ls and a create → post → show → leave round trip on the real network.

🤖 Generated with Claude Code

…s not writable (v0.3.58)

A root worker creates <storage.root>/swarm as root:root 0755; a user's
`c0mpute swarm` then failed with Permission denied. The CLI now probes the
shared dir (and its files) and uses <data dir>/swarm when it cannot write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

ThreatCrush Security Scan

16 finding(s)

HIGH/CRITICAL: 1 | MEDIUM: 11 | LOW: 4

Severity Rule Location
HIGH js-ssrf-outbound-request apps/web/public/sw.js:24
MEDIUM js-unescaped-html-sink apps/web/src/app/blog/[slug]/page.tsx:53
MEDIUM js-unescaped-html-sink apps/web/src/app/layout.tsx:109
MEDIUM sql-template-interpolation apps/web/src/lib/chat/convo-store.ts:116
MEDIUM sql-template-interpolation apps/web/src/lib/chat/convo-store.ts:117
MEDIUM sql-template-interpolation apps/web/src/lib/chat/push.ts:476
MEDIUM sh-remote-script-execution scripts/dev-setup.sh:25
MEDIUM sh-eval-expansion scripts/dev-setup.sh:35
MEDIUM sh-remote-script-execution scripts/install.sh:185
MEDIUM sh-remote-script-execution scripts/install.sh:210
MEDIUM sh-remote-script-execution scripts/install.sh:408
MEDIUM sh-remote-script-execution scripts/install.sh:450
LOW py-ssrf-outbound-request examples/business-strategist-agent/chat.py:37
LOW py-ssrf-outbound-request examples/business-strategist-agent/train.py:54
LOW secret-generic-credential node/crates/c0mpute-core/src/webhook.rs:1171
LOW py-path-traversal node/crates/c0mpute-core/tests/fixtures/fake-infernet-text:29

Snippets are redacted; ThreatCrush never prints matched credential material.

@ralyodio
ralyodio merged commit c38abc2 into master Nov 12, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant