GeezerVison is showing github.com — secrets-plane S5a: broker refresh leg + fleet secrets refresh verb by developing-today-fleet[bot] · Pull Request #16433 · developing-today/code
Conversation
Part of #13948
S5 section 5.4 slice 1 (of the S5 client surface): the broker records which leg served the last successful refresh and the client reports it.
Broker (fleet-queue/secrets_broker.rs):
- new State.last_refresh_leg: peer | upstream-delta | upstream-full, set on success only, survives failures
- published on GET /health and GET /peer/status (null before first success)
- oracle test: leg null pre-success, verbatim post-record, on both surfaces
Client transport (fleet-secrets/lib.rs):
- DirectBrokerSource.post_refresh + health; BrokerSource.post_refresh + health (framed POST /refresh + GET /health)
- generalize direct GET helper to method+path, framed request to request_with_method
CLI (fleet/secrets.rs):
- fleet secrets refresh: POST /refresh (202), poll health until refreshing clears (120s bound, 500ms interval), report leg + secrets + watermark
- predates-leg broker reports unknown; non-serving settled broker exits 3
- no args, no flags; help text + usage; oracle tests for report parsing and arg contract
Spike note (open question 4, write identity BY NAME): 1Password write identity is the service-account token resolved by OpTokenRunner::from_environment — OP_SERVICE_ACCOUNT_TOKEN env, else fleet home .config/op/service-account-token or .config/1password/service-account-token; vault via FLEET_OP_VAULT / [secrets] op_vault. No secret values touched. Mirror-write (put dual-write) is NOT in this slice; next slice.
Tests: fleet-queue secrets_broker 47 pass, fleet-secrets 70 pass, fleet bin secrets 22 pass (incl 5 new refresh/report tests + 1 leg test). No secret names or values in output, logs, or diff.
Worker does NOT merge — Archer merges from the ready-to-merge record on #13948.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-28T04:56:35Z",
"session_id": "ses_e5de0fa21ccffeYvsOUXfFkl1n",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/code",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/code",
"repo": "developing-today/code",
"branch": "main",
"sha": "6fd30c93b62a4b6fba19e6444c7d69f343fb93a1"
},
"auth_subject": "oc-code-06",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Part of #13948
S5 section 5.4 slice 1: the broker records which leg served the
last successful refresh (peer | upstream-delta | upstream-full)
and publishes it on GET /health and GET /peer/status; the client
gains fleet secrets refresh, which POSTs /refresh, polls health
until refreshing clears, and reports leg + set size + watermark.
Counts only, never names or values. A broker predating the leg
field reports unknown so refresh keeps working across a
mixed-fleet rollout. Oracle tests cover leg publication,
health-report parsing, and the verb's no-arg contract.
coderabbitai
Bot
commented
Nov 28, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Important
Review skipped
Bot user detected.
To trigger a single review, invoke the @coderabbitai review command.
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
ab5e0b55-1225-4ea2-9925-153e1f56cc44
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Part of #13948
S5 section 5.4 slice 2 (client-only, no broker change): explicit
cache controls on fleet secrets get. --upstream drops the local
direct leg and resolves through the broker network path + stores;
--no-cache drops every broker leg and goes straight to the stores.
The two are mutually exclusive (usage error, never silent
precedence); list rejects both (a broker listing is already the
cache contents).
fleet-secrets: CacheBypass enum + Resolver::chain_for_with_bypass;
chain_for(None) is byte-identical to the old chain_for. A
OnePassword selection holds no broker legs, so bypass is a no-op
there. New source_names accessor (leg names only, never values).
Oracle tests: bypass chain composition (broker legs drop, store
legs stay, 1password no-op) + flag parse/conflict contract.
|
S5b stacked: get --upstream / --no-cache cache controls (client-only, no broker change). --upstream drops the local direct leg, --no-cache drops every broker leg; mutually exclusive; list rejects both. CacheBypass + chain_for_with_bypass in fleet-secrets; chain_for(None) is byte-identical to the old chain_for. Oracle tests: bypass composition + flag parse/conflict. Suites: fleet-secrets 71 pass, fleet bin secrets 23 pass, fleet-queue broker 47 pass.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Lane 2337-F (alpha DRIVE landings, 2026-11-27 23:37 CST) claim: verify-then-merge under standing merge authority. Head 7d3c484 re-verified OPEN/non-draft/CLEAN/MERGEABLE; body + ALL comments + full diff read firsthand (3 files: fleet-queue secrets_broker, fleet-secrets lib, fleet secrets CLI). Secrets scan: diff references secrets by name/env-var name only — no literal credential values found (only leg labels peer/upstream-delta/upstream-full, counts, and a dummy test token). No exact-head verification run exists (rollup = CodeRabbit/Proof SKIPPED only; code Actions head_sha runs = 0), so dispatching ONE fleet-command run pinned to this exact head for the three affected crates. Merge only on a passing run whose job log shows Target HEAD = 7d3c484.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Lane 2337-F verification evidence — gate PASS on exact head 7d3c484:
fleet-command run 46115755178 https://github.com/developing-today/fleet/actions/runs/46115755178 completed SUCCESS; job log Target HEAD = 7d3c484 (exact). Results: fleet-secrets 71 passed / 0 failed; fleet-queue --lib 190 passed / 0 failed (incl. the new refresh_leg_is_published_on_health_and_peer_status oracle test); fleet --bin fleet 277 passed / 0 failed (incl. the new refresh/report + cache-flag oracle tests).
Path to green (all on the same exact head, failures were venue/command-shape only, never the changed code): run 46113648178 — fleet-secrets 71/71 + fleet-queue lib 190/190 passed, then the unrelated link_cli integration test failed NotFound on a repo-queue binary the venue does not build; run 46114163152 — same two suites passed, fleet bin build hit openssl-sys (build image lacks OpenSSL); run 46114905554 — nix openssl multi-output path bug in my OPENSSL_LIB_DIR; run 46115755178 with nixpkgs#openssl.out/.dev OPENSSL_* — full SUCCESS above.
Secrets scan (reiterated): full diff read firsthand — secrets referenced by name/env-var name only, no literal credential values. Merging under standing merge authority.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|