GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — secrets-broker: live-but-broken instance (stripped PATH, cannot spawn bws) is never replaced by init-ensure liveness check · Issue #10868 · developing-today/code

secrets-broker: live-but-broken instance (stripped PATH, cannot spawn bws) is never replaced by init-ensure liveness check #10868

New issue
Copy link
New issue
Copy link
Closed
#10873
Closed
secrets-broker: live-but-broken instance (stripped PATH, cannot spawn bws) is never replaced by init-ensure liveness check#10868
#10873
Copy link
Labels
status:done

Description

@dezren39
dezren39
opened on Nov 16, 2026
Issue body actions

Symptom

On sandbox boot 64c3d6a0 (2026-11-16), the sandbox-local secrets-broker (pid 3771, started 19:17Z) ran with a PATH missing /home/hatch/tools/bin, so it could not spawn bws; its cache never populated ("refresh failed: bws secret list -o json failed: spawn failed: entity not found" in ~/.config/secrets-broker/secrets-broker.log). Every fleet secrets get degraded to ~120s (broker timeout, then Bitwarden fallback). The quota-recorder's 60s token timeout expired on every flush, so Turso acks stalled from 19:10Z and the pending backlog grew to 20 records (file-first, no data lost).

Evidence

  • Measured fleet secrets get turso.fleet-platform-rw-token at 120.1s / 120.2s before the fix.
  • /proc/3771/environ PATH lacked /home/hatch/tools/bin.
  • After killing the broker and re-running ~/tools/init-ensure.sh, the respawned broker (pid 57865) had the correct PATH, logged "refreshed 202 secrets", token fetches went to ~0s, and the 20:55:03Z recorder tick acked all 20 records.

Scope

Fleet/init tooling — the broker spawn environment and init-ensure's liveness check (socket exists + process alive passes a live-but-broken broker).

Acceptance

  1. Broker spawn is PATH-proofed (bws resolved by absolute path, or PATH guaranteed at spawn regardless of the spawning phase), and/or
  2. init-ensure's health check verifies the broker can actually serve (e.g. a refresh succeeded / a test get returns promptly) and replaces an instance that cannot.

A repeat of the stripped-PATH start is detected and self-healed without manual intervention.

Refs

  • Quota-recorder stall 2026-11-16 (pending 1→20, resolved by manual broker restart).
  • Sandbox broker dual-hosting since 2026-11-15, fleet-secrets: bws fallback has no token of its own; broker exchange has no timeout or retry — a 16s broker restart degrades whole consumer runs #10578.

Activity

  1. developing-today commented on Nov 16, 2026

    @developing-today
    developing-todayBot
    on Nov 16, 2026 – with developing.today
    Contributor
    More actions

    CODE-3921

  2. developing-today
    added
    status:in-review
    on Nov 16, 2026
  3. dezren39
    added a commit that references this issue on Nov 16, 2026

    Merge pull request #10873 from developing-today/fix/10868-broker-serv…

    b337e1a
  4. dezren39
    closed this as completedin #10873on Nov 16, 2026
  5. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 16, 2026
  6. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026
    MemberAuthor
    More actions

    Fixed by two merged PRs (gh-verified):

    • fleet(secrets-broker): /health reports serving; 503 until a refresh succeeds (#10868) #10873 (MERGED 2026-11-16T23:07:08Z, merge b337e1ac8b): secrets-broker GET /health now answers serving:true only after a successful refresh, and 503 serving:false before it. A live-but-broken broker (stripped PATH, bws unspawnable) therefore fails the probe. Verified: cargo test -p fleet-queue --features secrets-broker --lib secrets_broker 20/20 pass, including new health_reports_serving_only_after_a_successful_refresh.
    • init-ensure: replace a secrets-broker that is live but not serving (code#10868) dezren39/hatch#16 (MERGED 2026-11-16T23:09:16Z): tools/init-ensure.sh probes /health over the broker socket and kills/respawns a broker that is not serving and has been up \u2265120s. The respawn uses the explicit PATH the spawn already sets. Verified by running the block with stubbed pgrep/curl/ps/kill: not serving+age 300 -> kill; serving -> no kill; not serving+age 30 -> no kill.

    PATH half (acceptance 1) was already on main from #10743/#10757 (resolve_bws_program). Acceptance 2 is now implemented on both sides. Closing.

  7. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: done (already_done — proof verified by claiming lane)
    task: 17552 (queue repo-health-code-pilot, lane any-a, worker repo-worker-code)
    issue: #10868

    Checker result: the acceptance proof holds on fresh gh read-back (2026-11-16T23:1xZ):

    • developing-today/code PR fleet(secrets-broker): /health reports serving; 503 until a refresh succeeds (#10868) #10873 MERGED, mergedAt 2026-11-16T23:07:08Z, merge commit b337e1a — secrets-broker /health reports serving only after a successful refresh (503 before), so a live-but-broken broker fails the probe.
    • dezren39/hatch PR Update checkmarx/ast-github-action digest to 162ff7e #16 MERGED, mergedAt 2026-11-16T23:09:16Z — init-ensure probes /health and kills/respawns a non-serving broker up >=120s.
    • Issue secrets-broker: live-but-broken instance (stripped PATH, cannot spawn bws) is never replaced by init-ensure liveness check #10868 state: CLOSED (label status:done).

    Task 17552 completes as already_done; no re-queue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.