Vaultwarden secrets + live seed import (5 review concerns addressed) #67
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/vault-seed-fetch-fixed"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Vaultwarden fetch + per-agent live seed import, with the 5 review concerns from the earlier audit addressed. Brings the
secrets-out-of-the-boxfeature onto currentmain(it had only existed on an unmerged feature branch).Includes
clawdie-vault-fetch— language-neutralbwbridge. Reads a 0600~/.config/vault-bootstrap.env, pulls secrets by item name (bw get password, nojq), printsKEY=VALUEor--write-envupserts 0600. Exit codes:0ok /1broken /3no bootstrap (skip) /4nobw.clawdie-live-seed— extends theCLAWDIESEEDFAT32 importer from anauthorized_keysallowlist to a per-agent directory convention (env,harness.toml,soul/,ssh/authorized_keys). Live USB activates the first agent dir; extras stage only.build.sh+packages/npm-globals.txt— stageclawdie-vault-fetchand pin@bitwarden/cli@2026.5.0for offline bundling.The 5 review concerns, addressed
_seed_split_envroutesBW_*out of.envinto~/.config/vault-bootstrap.env(SEED_VAULT_BOOTSTRAP_REL), the pathclawdie-vault-fetchactually reads. "Seed bootstrap → fetch out of the box" now lines up without an explicit--bootstraparg.COLLECTION_IDdropped — items fetched by name viabw get password, fail-closed on ambiguity. Documented that item names must be unique in the visible vault._seed_agent_name_okrejects leading-dot dirs (.Spotlight-V100,.fseventsd);_seed_agent_has_payloadrequires a recognized payload so an empty/stray dir can't become active./var/db/clawdie/seed/<agent>only;_seed_stage_agentnever writes a home or SSH keys.clawdie-vault-fetchnowstat-checks the bootstrap file and refuses group/world-readable unlessVAULT_ALLOW_INSECURE_BOOTSTRAPis set.Security note
Plaintext secrets on the seed is an operator decision — seeded sticks are secret-bearing media. Mitigations: 0600 landing files, optional
/shredconsume-and-wred, bootstrap-mode enforcement.Checks
Companion
Land with clawdie-ai
fix/vault-fetch-contract-docs— it rewritesVAULTWARDEN-SETUP.mdto document the name-based retrieval contract this helper implements. They should merge together so the contract stays consistent across repos.Not yet wired (intentional follow-ups)
/var/db/clawdie/seed/<agent>; nothing reads it back into a live agent workspace yet.Co-Authored-By: Hermes & Sam <hello@clawdie.si>