Skip to content

Reboot-safe local install, Routes say who may call, operator keys ask first - #136

Merged
qfeuilla merged 1 commit into
mainfrom
tangle-secrets-rule
Nov 26, 2026
Merged

qfeuilla merged 1 commit into
mainfrom
tangle-secrets-rule

Conversation

@qfeuilla

Copy link
Copy Markdown
Contributor

Fixes from a user report on a local install (WSL2 + Docker Desktop).

  • Reboot: the runtime's start line runs weft daemon prepare first: it waits for Docker (no deadline, a log line every 30 s) and brings up the install's database and the object store through the same ensure_stores a start uses. The object store's S3 keys moved from a host file bind mount (which broke when Docker started the container before WSL's files were reachable) into the weft-object-store-config volume. systemd stops a crash loop after 10 starts in 5 minutes; weft daemon start clears it. A stop during prepare stops prepare too.
  • Route / Socket: auth is required with no default. A program that leaves it out fails to build, with the choices in the message; the runtime refuses a missing one too. Every fixture, doc and Tangle skill now writes auth: "none" where it was implied. The editor asks for auth instead of saying anyone may call.
  • Operator keys: weft token mint-operator replaces weft token mint --operator, and each Tangle copy's permission config asks before it.
  • CLI: output to a closed pipe ends quietly with exit 0 instead of a panic.
  • Tangle: a secret the user has not handed over stays out of its sight, and it never routes around a permission rule or sandbox with a graph or script.

CHANGELOG has the update steps (add auth: "none" before weft maintenance off). VS Code extension bumped to 0.2.293.

Tested locally: everything CI runs, ./setup.sh on the branch install, and e2e api_reply::the_project_answers_at_its_own_address, live_chat::websocket_echoes_with_turn_counter, api_auth::api_keys_and_a_signing_secret_gate_their_routes.

… first

- weft daemon prepare: before the runtime starts (any service manager, a
  reboot included) it waits for Docker and brings up the install's
  database and the object store; the object store's keys live in a Docker
  volume instead of a host file; systemd stops a crash loop after ten
  starts in five minutes.
- Route and Socket: auth is required with no default; a program that
  leaves it out fails to build, naming the choices.
- weft token mint-operator replaces mint --operator, so assistant
  permission rules can let scoped tokens through and ask for admin keys.
- The CLI ends quietly when whatever reads its output has gone.
- Tangle: never reads a secret the user kept back, and never routes
  around a permission rule or sandbox with a graph or a script.
@qfeuilla
qfeuilla merged commit a965f02 into main Nov 26, 2026
27 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