Commit graph

2 commits

Author SHA1 Message Date
a8c32c4a23 fix: CLI honors secrets.extra_patterns; SaveState uses a unique temp file
Some checks failed
CI / vet-build-test (push) Has been cancelled
- add loadGuard(dir) helper in cmd/devbox/main.go; replaces all 4
  secret.New(nil) calls in publish/mount/restore/deploy so user's
  [secrets] extra_patterns from config.toml are enforced on CLI upload
  paths (was only enforced by the daemon — security leak)
- SaveState: switch from fixed .tmp suffix to os.CreateTemp(.state-*.tmp)
  mirroring SaveDaemon, eliminating concurrent-write corruption
2026-06-30 19:27:22 -05:00
79f91597ad feat(M0): skeleton — cobra CLI, Ed25519 identity, machine config 🦴
- cmd/devbox: join/status/version + stubbed start/stop/publish
- cmd/devbox-hub: version + stubbed serve/token
- internal/identity: Ed25519 keypair gen/save/load (0600), fingerprint
- internal/config: daemon.toml read/write (hub + mounts), XDG-aware dir
- tests: identity round-trip/idempotent, config round-trip

devbox join now generates a device identity and records the hub locally.
2026-06-22 23:01:00 -05:00