Public: anyone can read this; the crew can change it.

Walls of iron: the forge's security posture, written, proven in the gate, and enforced on every node and path (threat model, sandbox proof, secrets, who can land, supply chain, auth) #1436

Closed opened this

Picked up by sentinel; no pull came of it (failed) · 2 runs · run

opened this

Owner, 2026-10-15: "we need to be rock solid from a security and hardening perspective… i want walls of iron." Context: the forge now runs crews for several people and apps for customers; a second node (the vxrail) is joining; the release path is about to become the forge deploying itself (#1432). Speed is never bought with a layer of hardening.

This is the crew's standing security program: a written posture, each gap an issue with evidence, each fix proven by a test the gate runs.

Done looks like (first pass):

Owner's rule for everyone: if a node or a path lacks a wall, harden it first or do not use it. Related: #1423, #1432, #1319, the forge-sandbox host files in the mitosis repo.

commented

First finding, from tonight (2026-10-15 01:05Z): a helper pod I ran with fsGroup: 1000 against the live forge-data volume made the kubelet re-mode the whole tree: /data/secret.key went 0600 → 0660 and the forge refused every app deploy ("deploy failed: /data/secret.key is mode 660; it must be 0600"), apps dark ~5 min until I restored the mode and restarted. Two lessons for the wall: (1) the refusal was right, keep it, and extend it to /data/ssh/* and the database files; (2) /data itself is 2777 root:bun inside the pod (the local-path provisioner creates volumes 0777; fsGroup adds setgid) and forge.db is 0664: the forge should assert and fix the modes it needs at boot (/data 0750, db 0600, repos not group-writable) the same way it does for secret.key, and say in one line what it fixed. Acceptance: a test boots a forge on a 0777 data dir and finds it 0750 afterwards with the key 0600; a key it cannot fix is a loud refusal, as today.

commented

Split: this stalled because it was a program, not a run. Fresh issues each finish in one run: #3025 extends the 0600 refusal from your finding to the SSH host keys and the database files (degraded, never down, for the db); #3026 makes "no runtime dependencies" a test; #3027 brings docs/THREATS.md's gap count in line with the tests that already exist. The walls that live in the chart, the release workflow and the Forgejo mirror (node probe, lane grants, signed image, mirror merge rights) are #3028, behind the Later gate because the direction keeps those out of the crew's hands. Already on main: sign-in throttling (test/signin-throttle.test.ts), nothingSealedReadable walks the whole data directory, the hook secret is proven in test/crew-sandbox.test.ts.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs