Implemented and deployed (Drew's directive 2026-11-05: "broker should go get the secret pass through"). PR #6292, merged as 6f5df29; deployed by nixos-rebuild switch --flake ~/git/code#amd from the primary checkout; the broker unit now runs the new store build (ExecStart path changed, service restarted 10:34:10 CST, initial refresh 124 secrets).
Broker (fleet-queue/secrets_broker): GET /secret/<name> on a loaded cache reads through on a miss — bws secret list to resolve key→id, then bws secret get, the same two calls the refresh makes, scoped to the one name. A hit is installed into the cache and served. Concurrent misses for the same name are single-flighted through a per-name gate (leader fetches, waiters share the result), so the vault never takes a stampede. Not-found still 404s; a Bitwarden failure is a loud 502 (never a silent 404-as-if-absent); neither outcome is cached, so the next miss retries the source. Cache hits, the 900s refresh cycle, and the not-loaded 503 are unchanged. (bws has no get-by-name, so list+get is the closest faithful single-name pass-through.)
Client (fleet-secrets): an empty string is never a successful resolution. BrokerSource and BwsSource reject an empty value at construction, and the Resolver chain treats an empty value as a source failure and moves on — fleet secrets get can no longer exit 0 with an empty value while its sources failed. This failure mode was live this morning: the sandbox client transiently returned empty-with-exit-0 for globalping.api-token during this task's own baseline (it self-recovered on re-reads; the broker and laptop reads were correct throughout).
Tests: fleet-secrets 11/11 (4 new: chain skips an empty value to the next source; an all-empty chain fails loudly naming the empty read; the bws source rejects an empty value; the broker source rejects an empty value over a scripted socket). fleet-queue 22 lib tests (4 new read-through tests: install-on-fetch + subsequent cache hit, not-found never cached, failure never cached, 8 concurrent missers fetch exactly once). Full workspace suite green; fmt clean on both files. (cargo clippy fails identically on unmodified main in this environment — profile-rustc vs nix-built rmeta, E0514 — pre-existing and unrelated.)
End-to-end verification (all post-deploy, values reported as length/fingerprint only):
- (a) Throwaway secret
test.read-through-6275 minted in Bitwarden at 10:34:57 CST, after the broker's 10:34:29 refresh (last_refresh_unix 1793896469). An immediate broker GET returned HTTP 200 with the value while last_refresh was still 1793896469 — no refresh intervened — and the cache count rose 124 → 125 (the read-through installed it). From the sandbox, fleet secrets get test.read-through-6275 produced exactly the minted value (stdout sha256 5e426129… matched the expectation computed at mint time). The throwaway was then deleted from Bitwarden, a refresh was triggered, and the broker dropped back to 124 secrets with the name at 404.
- (b) A genuinely missing name fails loudly everywhere: broker HTTP 404 (after a real read-through attempt), sandbox client exit 3, laptop client exit 3.
- (c) Regression:
globalping.api-token and github.project-token return identical stdout sha256 fingerprints from sandbox and laptop, before and after the deploy (c33c499a… / 2b3ad7c3…).
- (d) The broker journal shows the mechanism working:
secrets-broker: read-through: fetched "test.read-through-6275" from Bitwarden on a cache miss (10:35:02) and read-through: "definitely-missing-name-xyz" is not in Bitwarden.
Residual: the sandbox's installed fleet binary is still the stale rev tracked by #5760; it picks up the client half when that refresh lands. In the meantime the broker side no longer originates the miss-window, and a broker-source failure now surfaces to any client as a non-200 the chain can fall back from.