fix/boot-safety-vault-and-arc #81

Merged
clawdie merged 2 commits from fix/boot-safety-vault-and-arc into main 2026-11-19 15:27:15 +01:00
Owner
No description provided.
Extract validate_server_url() in clawdie-vault-fetch and enforce it both
for caller-supplied env overrides (fail-fast before reading BOOTSTRAP_FILE)
and immediately after recomputing SERVER from BOOTSTRAP_FILE, closing the
window where a bootstrap VAULT_SERVER=http://, BW_SERVER=http://, or
malformed scheme (e.g. ftp://) bypassed scheme checks and reached bw config
server. Also ensures CLAWDIE_VAULT_ALLOW_INSECURE_HTTP=1 emits its warning
when the http:// URL comes from the bootstrap file.

Add 6 synthetic fake-bw regression tests to tests/vault-credentials-test.sh.
fix(sysctl): clamp uncapped/over-ceiling vfs.zfs.arc.max during verify --boot
Some checks failed
format-check / gates (pull_request) Failing after 27s
337b1222f1
On <=4 GiB VMs/hosts, the baked 4 GiB vfs.zfs.arc.max in /etc/sysctl.conf
fails OpenZFS with EINVAL (arc.max >= hw.physmem), leaving live
vfs.zfs.arc.max=0 (uncapped; c_max ~75% of RAM). Because clawdie-sysctl
verify --boot only checked security.bsd.*, it exited 0 without clamping
ARC.

Add _reconcile_arc_max() to cmd_verify() so verify --boot clamps live
vfs.zfs.arc.max to _effective_arc_max_bytes() (physmem/2 on <=4 GiB
hosts) when live ARC is 0 or above target, updates /etc/sysctl.conf when
persisted ARC exceeds target, preserves any operator-tightened non-zero
cap, and skips cleanly when ZFS is absent.

Add 4 GiB bhyve boot, tighter-cap preservation, and non-ZFS regression
tests to scripts/tests/clawdie-profile-env-test.sh.
clawdie deleted branch fix/boot-safety-vault-and-arc 2026-11-19 15:27:16 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
clawdie/clawdie-iso!81
No description provided.