GeezerVison is showing github.com — feat(fleet): secrets domain verb — broker-first get/list over fleet-secrets (step 6, #5554) by developing-today[bot] · Pull Request #5565 · developing-today/code
Conversation
developing-today
Bot
commented
Nov 4, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Closes the verb gap in the #5412 epic family — step 6, filed as #5554.
What
fleet secrets get <name> and fleet secrets list, the domain layer over the fleet-secrets platform (step 1 shipped the resolver; until now its only in-binary reference was a type assertion in main.rs):
- get —
Resolver::default_chain reused as-is: BrokerSource framed exchange through the session proxy to the laptops secrets-broker first; on broker error/unreachable/not-found, the bws fallback through the existing runner seam. Value to stdout only; the platforms value-free error shapes to stderr; exit 3 when both legs fail (3 = the dispatch domains unresolved-token precedent, fleet step 4: dispatch thin client domain over pm-stack #5432).
- list — names only from the brokers
GET /secrets, via a new BrokerSource::list_names(). Broker failure is loud (stderr + exit 3), deliberately no bws fallback: a vault enumeration is not the brokers cache listing, and silently substituting one listing for the other is how the step-3 framing break stayed invisible. (The one platform refactor: BrokerSource::request() factored out of resolve() so both verbs speak the identical exchange; resolve() behavior unchanged.)
Capability placement — flagged, per the step brief
The registry had no secrets capability or domain (only the secrets-broker daemon role). This PR adds Capability::Secrets (appended last in the enum, so every existing capability list renders byte-identically apart from the addition) and the secrets domain gated on it. Placement follows the design notes §2 table, which lists the secrets platform in both the full and serve builds: the secrets cargo feature is in full and in the serve aggregate, and in neither connect flavor — fleet-connect secrets … answers the exit-69 not-in-build stub, and the full build invoked as fleet-connect answers the narrowed stub (both smoke-checked). If the verb is expected inside fleet-connect later, that is a deliberate widening decision for the epic, not something this step assumes.
Verification
cargo test --workspace: green (incl. a new list_names round-trip over a temp socket and the registry invariants with the new capability/domain).
- Nix builds of all five outputs (fleet, fleet-serve, fleet-connect, fleet-connect-static, fleet-static): green.
smoke.sh: 71 passed, 0 failed — including a new hermetic secrets section: stub framed broker + stub bws whose value for the shared name differs from the brokers, proving broker-first by the returned value; broker 404 → bws fallback; broker down → bws fallback; broker down → list fails loud; unknown name → clean exit 3 through both legs.
- D7: fleet-connect 763,448 B; fleet-connect-static 910,752 B (gate ≤ 2 MiB; unchanged surface). Full 2,587,264 B, serve 2,472,560 B (recorded).
Live attribution on the sandbox (deployed build vs the real laptop secrets-broker, hash-compared against bws with the value in no log) runs post-merge as the deployment step and lands as evidence on #5554, together with the sandbox PATH state (~/tools/bin/fleet).
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
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.
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:
2b5c4d47-d794-4164-9d23-0a05b4b80bc1
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.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 4, 2026
This was referenced Nov 16, 2026
Reviewers
dezren39
Awaiting requested review from dezren39
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.
|