GeezerVison is showing github.com — fleet-cert: add trust bundle commands by dezren39 · Pull Request #14475 · developing-today/code
Conversation
dezren39
commented
Nov 24, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
fleet cert trust library and CLI surface:
trust assemble
prove self-signed root anchors
select all / classical / PQ
pin exact fingerprints and verify bundle/store drift
export consumer-targeted PEM + install/verify/remove manifest
The ssh target is refused (OpenSSH CA trust is not X.509). export and install-plan are documentation/output only; no live trust-store mutation is included.
Evidence
- Before: no trust assembly, pinning, consumer export, or drift-check surface.
After: cargo test -p fleet-cert passes: 19 unit tests, 9 hierarchy integration tests, and 3 OCSP integration tests.
- Trust tests cover all/classical/PQ membership, pin drift, missing/extra store anchors, export hash/PEM round-trip, OpenSSL parsing, and SSH policy refusal.
Merge Danger
Door: Two-way; the library and CLI additions can be reverted without changing existing trust stores.
Blast Radius: Low; scoped to the fleet-cert crate and its CLI/docs/tests.
Closes #13725
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.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 29 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
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:
77eead07-49c1-47da-96a2-996e423c33fb
Commits
-
Reviewing files that changed from the base of the PR and between 26795ce and 8241699.
Files selected for processing: 6
-
pkgs/fleet/crates/fleet-cert/README.md
pkgs/fleet/crates/fleet-cert/src/chain.rs
pkgs/fleet/crates/fleet-cert/src/cli.rs
pkgs/fleet/crates/fleet-cert/src/lib.rs
pkgs/fleet/crates/fleet-cert/src/trust.rs
pkgs/fleet/crates/fleet-cert/tests/hierarchy.rs
- 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.
This was referenced Nov 25, 2026
|
Merge-watch salvage note — closing as superseded by main (protocol §8)
Merge-watch recheck (queue task 23980) against current main e79730eb9373aeacc8318fa9fb634604d928c0d9:
- GitHub mergeable verdict:
unknown/null on repeated REST + GraphQL probes.
- Mergibility verdict: conflicting. Both this branch (head
8241699201a67d4133b964b7b9d38340271037d9) and current main carry pkgs/fleet/crates/fleet-cert/src/trust.rs with entirely different content, and both define a trust_cmd in cli.rs with a different trust export signature — a textual and semantic collision, not a rebase-refresh case.
- Superseding work: main's BT-2 trust implementation for broker-tls BT-2: trust-bundle consumption for broker clients (versioned, two-phase rollover, ack in health) #14400 (
trust export | stage | ack | activate | retire | status) already provides trust-bundle assembly/export from root-set bundles, root fingerprints, and fail-closed bundle/store drift checks.
Unique to this PR — salvage candidates for a follow-up on #13725 (not "nothing unique"):
- Explicit pinset workflow:
trust pin / trust verify --pins <pinset.json> (pin exact fingerprints, verify bundle/store drift against the pinset).
- Consumer-targeted export:
trust export --target <consumer> with per-consumer install/verify/remove manifest guidance, and the ssh target refusal (OpenSSH CA trust is not X.509).
trust inspect verb and self-signed-proof anchor admission (re-parse + signature proof; the role label alone never admits an anchor).
- Tests: pin drift, missing/extra store anchors, export hash/PEM round-trip, OpenSSL parsing, SSH policy refusal (in
tests/hierarchy.rs + trust.rs on this branch).
Reconciling those into main's BT-2 trust module is fresh design work, explicitly out of scope for this merge-watch packet, so this PR is closed rather than refreshed. Issue #13725 stays open for that follow-up. Branch queue/23502-trust-verbs is retained for salvage.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 26, 2026
dezren39
added a commit
that referenced
this pull request
Nov 26, 2026
…into BT-2 (#15624)
Port the unique work from closed PR #14475 beside main's BT-2 trust
module as fleet_cert::trust_consumer: signature-proven anchor
selection over a root set, trust pin / verify --pins | --store,
trust export --target <consumer> with per-consumer install/verify/
remove guidance, trust install-plan, and the ssh refusal. Existing
trust verbs now accept --json.
Part of #15612
Co-authored-by: Claude <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
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.
|