feat(enroll): live enrollment queue — Create/Approve/Reject, LINK + attestation, level-gated#53
Merged
Merged
Conversation
…ttestation, LINK material
# Conflicts: # src/gen/fleet/cryptos/fleet/v1/fleet_pb.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What and why
Phase 4 (web) of FM enrollment slice B — the final piece. Turns the mock enrollment surface live against the manager's enrollment RPCs (#23).
enrollment.ts: refreshed vendored api client;EnrollmentRequestgainskind(LINK|SUBORDINATE) +pinnedKeySha256;create/approve/rejectawait the live Connect RPCs in live/live-auth then re-pull the queue (mock path preserved). LINK approve carries the re-supplied connection material.getEnrollmentnow branches onfleetMode()so the detail page resolves live requests.Closes #52
Verification
How this was verified
Whole-branch review confirmed the mock/live seam (separate stores, both branch on fleetMode, errors propagate), RPC wiring matches the generated proto field-for-field, level gating is consistent + honestly framed as UX (server enforces), and the tests are genuine (not render-only). Follow-up (Minor, pre-existing + shared with node-detail): live deep-link to a detail page needs a loading state instead of bouncing before the first poll resolves.